From 2ddd42bbabc517b322fecb0005e8d8b00f48def0 Mon Sep 17 00:00:00 2001
From: LiuHao <liuhaoai545@gmail>
Date: 星期三, 19 四月 2023 21:04:24 +0800
Subject: [PATCH] update 修改列表搜索面板style
---
src/views/tool/gen/genInfoForm.vue | 19 +++++++++++++------
1 files changed, 13 insertions(+), 6 deletions(-)
diff --git a/src/views/tool/gen/genInfoForm.vue b/src/views/tool/gen/genInfoForm.vue
index d6efd61..54a9a19 100644
--- a/src/views/tool/gen/genInfoForm.vue
+++ b/src/views/tool/gen/genInfoForm.vue
@@ -67,11 +67,17 @@
<el-icon><question-filled /></el-icon>
</el-tooltip>
</template>
- <tree-select
- v-model:value="infoForm.parentMenuId"
- :options="menuOptions"
- :objMap="{ value: 'menuId', label: 'menuName', children: 'children' }"
- placeholder="璇烽�夋嫨绯荤粺鑿滃崟"
+ <el-tree-select
+ v-model="infoForm.parentMenuId"
+ :data="menuOptions"
+ :props="{ value: 'menuId', label: 'menuName', children: 'children' }"
+ value-key="menuId"
+ node-key="menuId"
+ placeholder="閫夋嫨涓婄骇鑿滃崟"
+ check-strictly
+ filterable
+ clearable
+ highlight-current
/>
</el-form-item>
</el-col>
@@ -270,11 +276,12 @@
}
})
}
+
/** 鏌ヨ鑿滃崟涓嬫媺鏍戠粨鏋� */
const getMenuTreeselect = async () => {
const res = await listMenu();
const data = proxy?.handleTree<MenuOptionsType>(res.data, "menuId");
- if (data) {
+ if (data) {
menuOptions.value = data
}
}
--
Gitblit v1.9.3