Compare commits

..

No commits in common. "79e42866ef99de5c14da335ee8154019aa1c68e5" and "084bd3d7ca694d490f564dc76eb5f5c90d4fa796" have entirely different histories.

View File

@ -205,7 +205,6 @@ 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",
@ -650,9 +649,9 @@ export default {
}, },
/** 删除按钮操作 */ /** 删除按钮操作 */
handleDelete(row) { handleDelete(row) {
const ids = row.driverId; const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除员工编号为"' + ids + '"的数据项?').then(function () { this.$modal.confirm('是否确认删除员工编号为"' + ids + '"的数据项?').then(function () {
return delDriver(ids); return delUser(ids);
}).then(() => { }).then(() => {
this.getList(); this.getList();
this.$modal.msgSuccess("删除成功"); this.$modal.msgSuccess("删除成功");