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="select">
<a-select
<!-- <a-select
style="width: 100%"
placeholder="请选择组织"
v-model:value="orgId"
:options="option"
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 class="select">
<a-input
@@ -315,13 +324,13 @@ export default {
const getOrgList = async () => {
const res = await api.userGetUserOrg({});
if (res) {
const list = res.data?.result?.map((item) => {
return {
label: item.orgName,
value: item.orgId,
};
});
state.option = list;
// const list = res.data?.result?.map((item) => {
// return {
// label: item.orgName,
// value: item.orgId,
// };
// });
state.option = state.option = res.data?.result;
getOrgId();
}
};