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)