修改路径图的组织树获取接口

This commit is contained in:
BOE\10867418
2023-08-17 15:03:29 +08:00
parent 8c2b8b8944
commit 46c4b4305e

View File

@@ -11,9 +11,9 @@
placeholder="请选择归属组织"
:allowClear="allowClear"
:fieldNames="{
label: 'name',
value: 'id',
children: 'treeChildList',
label: 'orgName',
value: 'organizationId',
children: 'childList',
}"
>
</a-cascader>
@@ -173,12 +173,10 @@ export default {
const getOrgList = async () => {
const res = await api.userGetUserOrg({});
if (res) {
state.option = res.data?.result?.list;
state.orgId = res.data?.result?.treeNodeList;
state.resetOrgId = res.data?.result?.treeNodeList;
res.data?.result?.userType === 1
? (state.allowClear = true)
: (state.allowClear = false);
state.option = res.data?.result;
state.orgId = state.option[0]?.organizationId;
state.resetOrgId = state.option[0]?.organizationId;
state.allowClear = false
getTableData();
}
};