From 65a7b33f4aec300148b6be3531327482592d4de6 Mon Sep 17 00:00:00 2001
From: wangyufei <2267742828@qq.com>
Date: Mon, 22 Jul 2024 18:37:30 +0800
Subject: [PATCH] =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/SearchHigh/src/SearchHigh.vue | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/components/SearchHigh/src/SearchHigh.vue b/src/components/SearchHigh/src/SearchHigh.vue
index e7aba727d..427d5fca2 100644
--- a/src/components/SearchHigh/src/SearchHigh.vue
+++ b/src/components/SearchHigh/src/SearchHigh.vue
@@ -24,7 +24,7 @@
-
@@ -265,6 +265,18 @@ const buttonBaseClick = (val) => {
}
}
+watch(()=>popoverVisible.value,()=>{
+ if(popoverVisible.value){
+ getDictOptions()
+ }
+})
+const allDictOptions = ref({}) //所有下拉框选项
+const getDictOptions = ()=>{
+ let selectList = searchOption_high.value.filter(item=>getInputType(item.field) == 'select')
+ selectList.forEach(item=>{
+ allDictOptions.value[item.field] = getStrDictOptions(item.dictType)
+ })
+}
// 初始化下拉option值
const initSelectOptions = (item) => {
return getStrDictOptions(searchOption_high.value.find(searchOptionItem => (searchOptionItem.field == item)).dictType)