|
|
@ -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 => {
|
|
|
|
this.getList();
|
|
|
|
if (res.code === 20000) {
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
this.getList();
|
|
|
|
|
|
|
|
this.$modal.msgSuccess("删除成功");
|
|
|
|
|
|
|
|
} else this.$modal.msgError(res.message);
|
|
|
|
|
|
|
|
|
|
|
|
}).catch(() => {
|
|
|
|
}).catch(() => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|