From ac14d632b4583b32f0cd11a5cc692d223b4b7968 Mon Sep 17 00:00:00 2001 From: yufei_wang <2267742828@qq.com> Date: Mon, 9 Sep 2024 16:54:06 +0800 Subject: [PATCH] =?UTF-8?q?HL-5914=E5=BA=93=E5=AD=98=E4=BD=99=E9=A2=9D?= =?UTF-8?q?=E9=AB=98=E7=BA=A7=E7=AD=9B=E9=80=89=E6=9F=A5=E6=89=BE=E6=8A=A5?= =?UTF-8?q?=E9=94=99500?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ src/components/SearchHigh/src/SearchHigh.vue | 2 +- src/hooks/web/useCrudSchemas.ts | 1 + src/views/wms/inventoryManage/balance/balance.data.ts | 2 ++ 4 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d73d0dd7b..eadbc6402 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,8 @@ dictType: DICT_TYPE.INVENTORY_STATUS, dictClass: 'string', dictAllOption:true,// true 字典中--下拉框中展示全选按钮 dictAllValue:'全选', // 全选按钮的value值 +hiddenSearchHigh?: boolean // 是否隐藏高级筛选 + **form表单查询弹窗配置** form: { labelMessage: '信息提示说明!!!', diff --git a/src/components/SearchHigh/src/SearchHigh.vue b/src/components/SearchHigh/src/SearchHigh.vue index ce55279e5..97e597314 100644 --- a/src/components/SearchHigh/src/SearchHigh.vue +++ b/src/components/SearchHigh/src/SearchHigh.vue @@ -115,7 +115,7 @@ const props = defineProps({ const message = useMessage() // 消息弹窗 const route = useRoute() // 路由信息 const popoverVisible = ref(false) -const searchOption_high = ref(props.allSchemas?.tableColumns.filter(item => (item.field != "action"))) +const searchOption_high = ref(props.allSchemas?.tableColumns.filter(item => (item.field != "action"&&!item.hiddenSearchHigh))) const moreListData = ref({ filters:[] }) diff --git a/src/hooks/web/useCrudSchemas.ts b/src/hooks/web/useCrudSchemas.ts index 5f6c183f9..914091ff4 100644 --- a/src/hooks/web/useCrudSchemas.ts +++ b/src/hooks/web/useCrudSchemas.ts @@ -14,6 +14,7 @@ import { cloneDeep, merge } from 'lodash-es' export type CrudSchema = Omit & { isSearch?: boolean // 是否在查询显示 + hiddenSearchHigh?: boolean // 是否隐藏高级筛选 search?: CrudSearchParams // 查询的详细配置 isTable?: boolean // 是否在列表显示 table?: CrudTableParams // 列表的详细配置 diff --git a/src/views/wms/inventoryManage/balance/balance.data.ts b/src/views/wms/inventoryManage/balance/balance.data.ts index c811382b0..5192f89e5 100644 --- a/src/views/wms/inventoryManage/balance/balance.data.ts +++ b/src/views/wms/inventoryManage/balance/balance.data.ts @@ -31,6 +31,7 @@ export const Balance = useCrudSchemas( table: { width: 150 }, + hiddenSearchHigh: true,// 高级筛选中隐藏 isSearch: true }, { @@ -40,6 +41,7 @@ export const Balance = useCrudSchemas( table: { width: 150 }, + hiddenSearchHigh: true,// 高级筛选中隐藏 isSearch: true }, {