From 1243fe1cadb5d9b56ffaee6b467d413147623503 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Thu, 11 Jul 2024 10:39:47 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90issues/6681=E3=80=91=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E4=B8=8D=E7=94=9F=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/Form/src/jeecg/components/JSearchSelect.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jeecgboot-vue3/src/components/Form/src/jeecg/components/JSearchSelect.vue b/jeecgboot-vue3/src/components/Form/src/jeecg/components/JSearchSelect.vue index abde23e1..baf44b57 100644 --- a/jeecgboot-vue3/src/components/Form/src/jeecg/components/JSearchSelect.vue +++ b/jeecgboot-vue3/src/components/Form/src/jeecg/components/JSearchSelect.vue @@ -49,6 +49,7 @@ import { defHttp } from '/@/utils/http/axios'; import { debounce } from 'lodash-es'; import { setPopContainer } from '/@/utils'; + import { isObject } from '/@/utils/is'; export default defineComponent({ name: 'JSearchSelect', @@ -353,7 +354,9 @@ //update-end-author:taoyan date:2022-8-15 for: VUEN-1971 【online 专项测试】关联记录和他表字段 1 // update-begin--author:liaozhiyang---date:20240523---for:【TV360X-26】下拉搜索控件选中选项后再次点击下拉应该显示初始的下拉选项,而不是只展示选中结果 const handleAsyncFocus = () => { - options.value.length && initDictCodeData(); + // update-begin--author:liaozhiyang---date:20240709---for:【issues/6681】异步查询不生效 + (isObject(selectedAsyncValue.value) || selectedAsyncValue.value?.length) && isDictTable.value && props.async && initDictTableData(); + // update-end--author:liaozhiyang---date:20240709---for:【issues/6681】异步查询不生效 attrs.onFocus?.(); }; // update-end--author:liaozhiyang---date:20240523---for:【TV360X-26】下拉搜索控件选中选项后再次点击下拉应该显示初始的下拉选项,而不是只展示选中结果