mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 13:26:45 +08:00
修改路径图的组织树获取接口
This commit is contained in:
@@ -11,9 +11,9 @@
|
|||||||
placeholder="请选择归属组织"
|
placeholder="请选择归属组织"
|
||||||
:allowClear="allowClear"
|
:allowClear="allowClear"
|
||||||
:fieldNames="{
|
:fieldNames="{
|
||||||
label: 'name',
|
label: 'orgName',
|
||||||
value: 'id',
|
value: 'organizationId',
|
||||||
children: 'treeChildList',
|
children: 'childList',
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
</a-cascader>
|
</a-cascader>
|
||||||
@@ -173,12 +173,10 @@ export default {
|
|||||||
const getOrgList = async () => {
|
const getOrgList = async () => {
|
||||||
const res = await api.userGetUserOrg({});
|
const res = await api.userGetUserOrg({});
|
||||||
if (res) {
|
if (res) {
|
||||||
state.option = res.data?.result?.list;
|
state.option = res.data?.result;
|
||||||
state.orgId = res.data?.result?.treeNodeList;
|
state.orgId = state.option[0]?.organizationId;
|
||||||
state.resetOrgId = res.data?.result?.treeNodeList;
|
state.resetOrgId = state.option[0]?.organizationId;
|
||||||
res.data?.result?.userType === 1
|
state.allowClear = false
|
||||||
? (state.allowClear = true)
|
|
||||||
: (state.allowClear = false);
|
|
||||||
getTableData();
|
getTableData();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user