From 6b6eff08baa3d052b66fd2e68f1ac0d8495f6f8a Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 29 八月 2024 17:35:33 +0800
Subject: [PATCH] 修改历史数据获取逻辑

---
 src/components/search/OptionType.vue |   23 ++++++-----------------
 1 files changed, 6 insertions(+), 17 deletions(-)

diff --git a/src/components/search/OptionType.vue b/src/components/search/OptionType.vue
index 5b9334f..644898d 100644
--- a/src/components/search/OptionType.vue
+++ b/src/components/search/OptionType.vue
@@ -1,8 +1,8 @@
 <template>
-  <el-form-item label="绫诲瀷">
+  <el-form-item v-show="isShow" label="绫诲瀷">
     <el-select
       :model-value="modelValue"
-      @change="handleChange"
+      @update:model-value="handleChange"
       placeholder="绫诲瀷"
       size="small"
       class="w-80"
@@ -18,6 +18,7 @@
 </template>
 
 <script>
+import { typeList } from '@/constant/device-type';
 export default {
   props: {
     modelValue: String
@@ -25,24 +26,13 @@
   emits: ['update:modelValue'],
   data() {
     return {
-      typeList: [
-        {
-          label: '杞﹁浇',
-          value: '0a'
-        },
-        {
-          label: '鏃犱汉鏈�',
-          value: '0b'
-        },
-        {
-          label: '鏃犱汉鑸�',
-          value: '0c'
-        }
-      ]
+      typeList: typeList(),
+      isShow: import.meta.env.VITE_DATA_MODE != 'jingan'
     };
   },
   methods: {
     handleChange(value) {
+      // todo 鏍规嵁璁惧绫诲瀷鍒囨崲鍦板浘杞藉叿鐨勫浘鏍囥��
       this.$emit('update:modelValue', value);
     }
   },
@@ -51,4 +41,3 @@
   }
 };
 </script>
-<style scoped></style>

--
Gitblit v1.9.3