This commit is contained in:
Lx 2025-08-12 16:57:43 +08:00
parent 94a9e18531
commit b1f8e5a8bb

View File

@ -205,6 +205,7 @@ import {DICT_TYPE, getDictDatas} from "@/utils/dict";
import {assignUserRole, listUserRoles} from "@/api/system/permission"; import {assignUserRole, listUserRoles} from "@/api/system/permission";
import {listSimpleRoles} from "@/api/system/role"; import {listSimpleRoles} from "@/api/system/role";
import {getBaseHeader} from "@/utils/request"; import {getBaseHeader} from "@/utils/request";
import { delDriver } from '@/api/rescue/driver'
export default { export default {
name: "SystemUser", name: "SystemUser",
@ -649,9 +650,9 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.id || this.ids; const ids = row.driverId;
this.$modal.confirm('是否确认删除员工编号为"' + ids + '"的数据项?').then(function () { this.$modal.confirm('是否确认删除员工编号为"' + ids + '"的数据项?').then(function () {
return delUser(ids); return delDriver(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");