【修改】角色菜单集合复选框回显不正确

pull/2/head
cks 2022-03-23 15:21:34 +08:00
parent cefcff6524
commit 2e97442187
1 changed files with 10 additions and 9 deletions

View File

@ -392,16 +392,17 @@ export default {
// menuOptions // menuOptions
this.menuOptions = []; this.menuOptions = [];
this.menuOptions.push(...this.handleTree(response.data, "id")); this.menuOptions.push(...this.handleTree(response.data, "id"));
//
listRoleMenus(id).then(response => {
//
this.form.menuCheckStrictly = true
//
this.$refs.menu.setCheckedKeys(response.data);
// 使
this.form.menuCheckStrictly = false
})
}); });
//
listRoleMenus(id).then(response => {
//
this.form.menuCheckStrictly = true
//
this.$refs.menu.setCheckedKeys(response.data);
// 使
this.form.menuCheckStrictly = false
})
}, },
/** 分配数据权限操作 */ /** 分配数据权限操作 */
handleDataScope(row) { handleDataScope(row) {