CTP 2 years ago
commit 31afd84da4

@ -336,8 +336,10 @@ export default {
this.$modal.confirm('是否确认删除名称为"' + row.deptName + '"的数据项?').then(function () {
return delDept(row.deptId);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
if (res.code === 20000) {
this.getList();
this.$modal.msgSuccess("删除成功");
} else this.$modal.msgError(res.message);
}).catch(() => {
});
}

@ -579,9 +579,12 @@ export default {
const roleIds = row.roleId || this.ids;
this.$modal.confirm('是否确认删除该角色?').then(function () {
return delRole(roleIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).then(res => {
if (res.code === 20000) {
this.getList();
this.$modal.msgSuccess("删除成功");
} else this.$modal.msgError(res.message);
}).catch(() => {
});
},

Loading…
Cancel
Save