From 8d7f9672e81f2c7e93e4a960359c8395eda9fb22 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期二, 14 五月 2024 17:37:27 +0800
Subject: [PATCH] 1.修复点击折线图后高亮定位点错误问题; 2.新增“分析”按钮点击加载动画

---
 src/components/search/OptionDevice.vue |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/src/components/search/OptionDevice.vue b/src/components/search/OptionDevice.vue
index c16c1f0..6fc1b0a 100644
--- a/src/components/search/OptionDevice.vue
+++ b/src/components/search/OptionDevice.vue
@@ -31,10 +31,11 @@
     deviceList() {
       const t = this.type ? this.type : '0a';
       return [1, 2, 3].map((v) => {
-        const text = `${t}000000000${v}`;
+        const label = `${this.getDeviceType(t)}璁惧${v}鍙穈;
+        const value = `${t}000000000${v}`;
         return {
-          label: text,
-          value: text
+          label: label,
+          value: value
         };
       });
     }
@@ -49,6 +50,18 @@
   methods: {
     handleChange(value) {
       this.$emit('update:modelValue', value);
+    },
+    getDeviceType(t) {
+      switch (t) {
+        case '0a':
+          return '杞﹁浇';
+        case '0b':
+          return '鏃犱汉鏈�';
+        case '0c':
+          return '鏃犱汉鑸�';
+        default:
+          return '杞﹁浇';
+      }
     }
   },
   mounted() {

--
Gitblit v1.9.3