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="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();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user