This commit is contained in:
BOE\10867418
2023-03-13 17:44:16 +08:00
parent dd55c7dfb4
commit 157de87615

View File

@@ -4,13 +4,22 @@
<!-- 以下为顶部搜索框 --> <!-- 以下为顶部搜索框 -->
<div class="filter"> <div class="filter">
<div class="select"> <div class="select">
<a-select <!-- <a-select
style="width: 100%" style="width: 100%"
placeholder="请选择组织" placeholder="请选择组织"
v-model:value="orgId" v-model:value="orgId"
:options="option" :options="option"
allowClear allowClear
></a-select> ></a-select> -->
<a-cascader
:options="option"
placeholder="请选择组织"
@change="onChange"
v-model:value="orgId"
allowClear
style="width: 100%"
:fieldNames="{ label: 'name', value: 'id', children: 'treeChildList' }"
/>
</div> </div>
<div class="select"> <div class="select">
<a-input <a-input
@@ -315,13 +324,13 @@ export default {
const getOrgList = async () => { const getOrgList = async () => {
const res = await api.userGetUserOrg({}); const res = await api.userGetUserOrg({});
if (res) { if (res) {
const list = res.data?.result?.map((item) => { // const list = res.data?.result?.map((item) => {
return { // return {
label: item.orgName, // label: item.orgName,
value: item.orgId, // value: item.orgId,
}; // };
}); // });
state.option = list; state.option = state.option = res.data?.result;
getOrgId(); getOrgId();
} }
}; };