From bea6e46bb3d93c644a5d0c0c01f7ac429f4cd89a Mon Sep 17 00:00:00 2001 From: Brian Lee Date: Wed, 24 Jul 2024 16:38:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=AB=98=E7=BA=A7=E6=A3=80=E7=B4=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 13 +- .env.production | 8 +- components.d.ts | 1 + src/views/final/comp/NewFilterModal.vue | 224 +++++++------- .../home/aside/comp/modals/NewFilterModal.vue | 286 +++++++++--------- src/views/task/modal/NewFilterModal.vue | 255 ++++++++-------- 6 files changed, 407 insertions(+), 380 deletions(-) diff --git a/.env.development b/.env.development index 796dee5..aed51cb 100644 --- a/.env.development +++ b/.env.development @@ -14,7 +14,12 @@ VITE_BASE_URL = / VITE_DROP_CONSOLE = true # 跨域代理,可以配置多个,请注意不要换行 -VITE_PROXY=[["/api","http://47.93.59.251:8311/jeecg-boot"]] +#VITE_PROXY=[["/api","http://localhost:9090/foodapi"]] +#VITE_PROXY=[["/api","http://81.70.154.131:8311/jeecg-boot"]] +VITE_PROXY=[["/api","http://81.70.154.131:9000/jeecg-boot"]] +#VITE_PROXY=[["/api","http://aiocr-test.prevailcloud.com:8330/jeecg-boot"]] +#VITE_PROXY=[["/api","http://aiocr-uat.prevailcloud.com:8311/jeecg-boot"]] +#VITE_PROXY=[["/api","http://aiocr.prevailcloud.com:8311/jeecg-boot"]] # API 接口地址 VITE_GLOB_API_URL = @@ -23,7 +28,11 @@ VITE_GLOB_API_URL = VITE_GLOB_UPLOAD_URL= # 图片前缀地址 -VITE_GLOB_IMG_URL="http://47.93.59.251:8311/jeecg-boot" +#VITE_GLOB_IMG_URL="http://81.70.154.131:8311/jeecg-boot" +VITE_GLOB_IMG_URL="http://81.70.154.131:9000/jeecg-boot" +#VITE_GLOB_IMG_URL="http://aiocr-test.prevailcloud.com:8330/jeecg-boot" +#VITE_GLOB_IMG_URL="http://aiocr-uat.prevailcloud.com:8311/jeecg-boot" +#VITE_GLOB_IMG_URL="http://aiocr.prevailcloud.com:8311/jeecg-boot" # 接口前缀 VITE_GLOB_API_URL_PREFIX = /api diff --git a/.env.production b/.env.production index e2d11bf..aeeeaf0 100644 --- a/.env.production +++ b/.env.production @@ -17,12 +17,16 @@ VITE_GLOB_API_URL = VITE_GLOB_UPLOAD_URL= # 图片前缀地址 +# 测试环境 +#VITE_GLOB_IMG_URL="http://81.70.154.131/api" +VITE_GLOB_IMG_URL="http://81.70.154.131:9000/api" # 客户uat #VITE_GLOB_IMG_URL="http://aiocr-uat.prevailcloud.com/api" +# 客户test +#VITE_GLOB_IMG_URL="http://aiocr-test.prevailcloud.com:8330/api" # 客户生产 #VITE_GLOB_IMG_URL="http://aiocr.prevailcloud.com/api" -# 测试环境 -VITE_GLOB_IMG_URL="http://81.70.154.131/api" + # 接口前缀 VITE_GLOB_API_URL_PREFIX = /api diff --git a/components.d.ts b/components.d.ts index 6458938..1f3bc4d 100644 --- a/components.d.ts +++ b/components.d.ts @@ -29,6 +29,7 @@ declare module 'vue' { NGi: typeof import('naive-ui')['NGi'] NGrid: typeof import('naive-ui')['NGrid'] NGridItem: typeof import('naive-ui')['NGridItem'] + NIcon: typeof import('naive-ui')['NIcon'] NImage: typeof import('naive-ui')['NImage'] NInput: typeof import('naive-ui')['NInput'] NMessageProvider: typeof import('naive-ui')['NMessageProvider'] diff --git a/src/views/final/comp/NewFilterModal.vue b/src/views/final/comp/NewFilterModal.vue index b69c114..8175afe 100644 --- a/src/views/final/comp/NewFilterModal.vue +++ b/src/views/final/comp/NewFilterModal.vue @@ -66,10 +66,10 @@ const rules: FormRules = { message: '请选择逻辑关系', trigger: 'blur', }, - conditions: { - // required: true, - - }, + // conditions: { + // // required: true, + + // }, } const formRef = ref(null) @@ -104,6 +104,12 @@ function handleSumbit(e: MouseEvent) { } }) + for (const index in list) { + console.info(list) + if (list[index].searchvalue == undefined || list[index].searchvalue == '') + return + } + const param: FilterCondition = { searchname: formValue.name!, type: 1, @@ -123,7 +129,7 @@ function formatValue(searchfield: string, searchvalue: any) { const end = formatToDate2(searchvalue[1]) return `${start}-${end}` } - if (searchfield != 'izyear' && Array.isArray(searchvalue)) + if (searchfield != 'izyear' && Array.isArray(searchvalue)) return searchvalue.join(',') return searchvalue @@ -303,12 +309,12 @@ defineExpose({ maxlength="15" @keydown.enter.prevent /> - -
- - - - - + + + + + + + - - - - - + + + - -
- - 添加筛选条件 -
-
+
+ 请选择过滤条件 +
+ + +
+ + 添加筛选条件 +
+ - -
+