diff --git a/src/components/SearchHigh/src/SearchHigh.vue b/src/components/SearchHigh/src/SearchHigh.vue
index 728fbd500..62eb8ae89 100644
--- a/src/components/SearchHigh/src/SearchHigh.vue
+++ b/src/components/SearchHigh/src/SearchHigh.vue
@@ -23,11 +23,30 @@
-
+
-
+
+
+
@@ -68,6 +87,12 @@ UserApi.getUserListAll().then((res) => {
value: item.id
}
})
+ options.value = res.map((item) => {
+ return {
+ label: item.nickname,
+ value: item.id
+ }
+ })
})
const props = defineProps({
@@ -171,9 +196,9 @@ const getFilterable = (val) => {
const type = searchOption_high.value.find(item => (item.field == val))
// 下拉列表过长,去掉筛选功能
if (type?.field == 'creator' || type?.field == 'updater' || type?.field == 'worker') {
- return false
- }else{
return true
+ }else{
+ return false
}
}
// 判断数字输入框小数点位数
@@ -330,6 +355,21 @@ const changeDateTimePicker = (e, val,from) =>{
val.value = e.join(',')
}
}
+const loading = ref(false)
+const options = ref([])
+const remoteMethod = (query, array) => {
+ if (query) {
+ loading.value = true
+ setTimeout(() => {
+ loading.value = false
+ options.value = userListAll.value.filter((item) => {
+ return item.label.toLowerCase().includes(query.toLowerCase())
+ })
+ }, 200)
+ } else {
+ options.value = userListAll.value
+ }
+}
defineExpose({
popoverVisible