CTP 2 years ago
commit 31afd84da4

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

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

Loading…
Cancel
Save