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