From 0237b053af26168fba9e6d4c3b6c49db690398b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=96=AA=E5=90=8D?= <942005050@qq.com> Date: Mon, 30 Oct 2023 10:53:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=9B=E9=80=89=E5=92=8C=E5=A4=B4=E9=83=A8?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E4=BF=AE=E6=94=B9=E8=B7=AF=E7=94=B1=E5=90=8D?= =?UTF-8?q?=E7=A7=B0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SearchHigh/src/SearchHigh.vue | 10 +++++++++- src/components/TableHead/src/TableHead.vue | 1 + 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/components/SearchHigh/src/SearchHigh.vue b/src/components/SearchHigh/src/SearchHigh.vue index b1340a8fa..c56d4c149 100644 --- a/src/components/SearchHigh/src/SearchHigh.vue +++ b/src/components/SearchHigh/src/SearchHigh.vue @@ -59,10 +59,18 @@ import * as tableColumnsFun from '@/utils/disposition/tableColumns' import * as defaultButtons from '@/utils/disposition/defaultButtons' import { DICT_TYPE, getStrDictOptions } from '@/utils/dict' +const props = defineProps({ + // 主组件name值 + routeName: { + type: String, + default: '' + } +}) + const message = useMessage() // 消息弹窗 const route = useRoute() // 路由信息 const popoverVisible = ref(false) -const searchOption_high = ref(tableColumnsFun[route.name]?.allSchemas.tableColumns.filter(item => (item.field != "action"))) +const searchOption_high = ref(tableColumnsFun[props.routeName?props.routeName:route.name]?.allSchemas.tableColumns.filter(item => (item.field != "action"))) const moreListData = ref({ filters:[] }) diff --git a/src/components/TableHead/src/TableHead.vue b/src/components/TableHead/src/TableHead.vue index 9a1c4dddc..9b0cadea2 100644 --- a/src/components/TableHead/src/TableHead.vue +++ b/src/components/TableHead/src/TableHead.vue @@ -33,6 +33,7 @@