1. 修改 MenuDO 的字段,menuId 改成 id,menuName 改成 name

2. 添加 Menu 的创建、修改、删除接口
This commit is contained in:
YunaiV
2021-01-08 20:08:20 +08:00
parent dba723b8fc
commit ea4c9e4981
29 changed files with 503 additions and 237 deletions

View File

@ -437,7 +437,7 @@ export default {
roleKey: undefined,
roleSort: 0,
status: "0",
menuIds: [],
ids: [],
deptIds: [],
menuCheckStrictly: true,
deptCheckStrictly: true,
@ -535,14 +535,14 @@ export default {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.roleId != undefined) {
this.form.menuIds = this.getMenuAllCheckedKeys();
this.form.ids = this.getMenuAllCheckedKeys();
updateRole(this.form).then(response => {
this.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
this.form.menuIds = this.getMenuAllCheckedKeys();
this.form.ids = this.getMenuAllCheckedKeys();
addRole(this.form).then(response => {
this.msgSuccess("新增成功");
this.open = false;
@ -592,4 +592,4 @@ export default {
}
}
};
</script>
</script>