From c40500d288339cd9b2200f8f909e3cd5471c0c22 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期五, 30 八月 2024 17:38:29 +0800
Subject: [PATCH] 1. 优化3D动画中风向的变化逻辑; 2. 修复折线图切换因子时,数据直接跳转至起始处的问题; 3. 折线图和表格加回风向因子; 4. 优化风向的均值计算为矢量计算,同时最大最小值不显示; 5. 新增表格数据导出功能;

---
 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