组织选择修改

This commit is contained in:
weixiaobo@boe.com.cn
2023-08-22 19:03:42 +08:00
parent ab12f070d6
commit 3df0281430
6 changed files with 21 additions and 18 deletions

View File

@@ -188,9 +188,12 @@ export default {
// let roleList = store.state.userInfo.roleList;
const res = await api.userGetUserOrg();
if (res) {
state.option = res.data?.result;
state.orgId = [state.option[0]?.organizationId];
state.resetOrgId = [state.option[0]?.organizationId];
// state.option = res.data?.result;
// state.orgId = [state.option[0]?.organizationId];
// state.resetOrgId = [state.option[0]?.organizationId];
state.option = res.data?.result.orgTreeList;
state.orgId = res.data?.result.treeNodeList;
state.resetOrgId = res.data?.result.treeNodeList;
state.allowClear = true;
getTableData();
}