数据权限更新页面
This commit is contained in:
Binary file not shown.
@@ -626,16 +626,14 @@ function getDeptTree(roleId) {
|
||||
});
|
||||
deptOptions.value = proxy.handleTree(selectList, "id");
|
||||
|
||||
const deptIds = [];
|
||||
let deptIds = [];
|
||||
roleDeptTreeselect(roleId).then((response) => {
|
||||
|
||||
deptIds= response.data.map((x) => x.id)
|
||||
});
|
||||
|
||||
nextTick(() => {
|
||||
deptIds = response.data.map((x) => x.id);
|
||||
// nextTick(() => {
|
||||
if (deptRef.value) {
|
||||
deptRef.value.setCheckedKeys(deptIds);
|
||||
}
|
||||
// });
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user