From 2cffd9c7db5c3191cf172641c800e5a328d6f3af Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 10 七月 2025 17:30:57 +0800 Subject: [PATCH] 2025.7.10 修改动态溯源模块 --- src/components/search/OptionLocation.vue | 51 +++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 45 insertions(+), 6 deletions(-) diff --git a/src/components/search/OptionLocation.vue b/src/components/search/OptionLocation.vue index 71e5edc..857fc7a 100644 --- a/src/components/search/OptionLocation.vue +++ b/src/components/search/OptionLocation.vue @@ -25,12 +25,7 @@ emits: ['update:modelValue'], data() { return { - typeList: [ - { - label: '闀垮畞鍖�', - value: '310105' - } - ] + typeList: [] }; }, methods: { @@ -40,6 +35,50 @@ } }, mounted() { + let options = [ + { + label: '闀垮畞鍖�', + value: '310105' + }, + { + label: '闈欏畨鍖�', + value: '310106' + }, + { + label: '寰愭眹鍖�', + value: '310104' + }, + { + label: '閲戝北鍖�', + value: '310116' + } + // { + // label: '鏅檧鍖�', + // value: '310107' + // }, + // { + // label: '闂佃鍖�', + // value: '310112' + // }, + // { + // label: '瀹濆北鍖�', + // value: '310113' + // }, + // { + // label: '鍢夊畾鍖�', + // value: '310114' + // }, + ]; + + if (import.meta.env.VITE_DATA_MODE == 'jingan') { + options = [ + { + label: '闈欏畨鍖�', + value: '310106' + } + ]; + } + this.typeList = options; this.handleChange(this.typeList[0].value); } }; -- Gitblit v1.9.3