mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 06:16:46 +08:00
1
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user