From bdc375c177dfff0d940560d83d5e3741a23fcda8 Mon Sep 17 00:00:00 2001
From: quanyawei <401863037@qq.com>
Date: Mon, 09 Oct 2023 10:19:45 +0800
Subject: [PATCH] Merge branch 'feature_1.0'

---
 src/views/charts/index.vue |   80 +++++++++++++++-------------------------
 1 files changed, 30 insertions(+), 50 deletions(-)

diff --git a/src/views/charts/index.vue b/src/views/charts/index.vue
index 1b11a1d..c89cb1c 100644
--- a/src/views/charts/index.vue
+++ b/src/views/charts/index.vue
@@ -2,27 +2,11 @@
   <div style="width: 100%; height: 100%">
     <div class="topSelect">
       <!-- <el-cascader v-model="newMac" :options="options" clearable change-on-select :props="{ checkStrictly: true }" placeholder="������������" /> -->
-      <el-cascader
-        v-model="newMac"
-        :options="options"
-        :props="props"
-        collapse-tags
-        clearable
-        placeholder="������������"
-        style="width: 354px"
-      />
+      <el-cascader v-model="newMac" :options="options" :props="props" collapse-tags clearable placeholder="������������"
+        style="width: 354px" />
       <!-- <div> -->
-      <el-select
-        v-model="value"
-        placeholder="������������"
-        style="margin-left: 20px"
-      >
-        <el-option
-          v-for="(item, index) in newSensor"
-          :key="index"
-          :label="item.label"
-          :value="item.value"
-        />
+      <el-select v-model="value" placeholder="������������" style="margin-left: 20px">
+        <el-option v-for="(item, index) in newSensor" :key="index" :label="item.label" :value="item.value" />
       </el-select>
       <!-- </div> -->
       <!-- <el-radio-group v-model="radio1" style="margin-left:20px">
@@ -31,25 +15,12 @@
         <el-radio-button label="������" />
         <el-radio-button label="���������" />
       </el-radio-group> -->
-      <el-select
-        v-model="select1"
-        placeholder="���������"
-        style="margin-left: 20px; width: 200px"
-      >
-        <el-option
-          v-for="item in options1"
-          :key="item.value"
-          :label="item.label"
-          :value="item.value"
-        >
+      <el-select v-model="select1" placeholder="���������" style="margin-left: 20px; width: 200px">
+        <el-option v-for="item in options1" :key="item.value" :label="item.label" :value="item.value">
         </el-option>
       </el-select>
-      <component
-        :is="dataType"
-        style="padding-left: 0; margin-left: 20px; width: 160px"
-        @sendPickerChild="showPickerChild"
-        class="select11"
-      />
+      <component :is="dataType" style="padding-left: 0; margin-left: 20px; width: 160px"
+        @sendPickerChild="showPickerChild" class="select11" />
       <!--������������-->
       <el-button @click="selectData" class="btn1">������</el-button>
     </div>
@@ -141,12 +112,12 @@
       isSelect: false,
       options1: [
         {
-          label: '���������',
-          value: '���������',
-        },
-        {
           label: '������������',
           value: '������������',
+        },
+        {
+          label: '���������',
+          value: '���������',
         },
         {
           label: '������',
@@ -248,13 +219,13 @@
   // mounted() {
   //
   // },
-  beforeCreate() {}, // ������������ - ������������
-  beforeMount() {}, // ������������ - ������������
-  beforeUpdate() {}, // ������������ - ������������
-  updated() {}, // ������������ - ������������
-  beforeDestroy() {}, // ������������ - ������������
-  destroyed() {}, // ������������ - ������������
-  activated() {},
+  beforeCreate() { }, // ������������ - ������������
+  beforeMount() { }, // ������������ - ������������
+  beforeUpdate() { }, // ������������ - ������������
+  updated() { }, // ������������ - ������������
+  beforeDestroy() { }, // ������������ - ������������
+  destroyed() { }, // ������������ - ������������
+  activated() { },
   // ������������
   methods: {
     // ������������
@@ -287,7 +258,10 @@
                 if (lockLength < data[i].deviceData.length) {
                   newLineChartData.series.push({
                     data: [],
-                    // large: true,
+                    triggerLineEvent: true,
+                    emphasis: {
+                      focus: 'series'
+                    },
                     name: '',
                     type: 'line',
                     label: {
@@ -300,7 +274,8 @@
                 newLineChartData.series.push({
                   data: [],
                   name: '',
-                  // large: true,
+                  triggerLineEvent: true,
+                  emphasis: { focus: 'series' },
                   type: 'line',
                 })
               }
@@ -393,21 +368,25 @@
   display: flex;
   margin-bottom: 20px;
   padding: 20px 15px 0 15px;
+
   span:first-child {
     flex: 1;
   }
+
   div:last-child {
     width: 300px;
     line-height: 40px;
     padding-left: 6px;
   }
 }
+
 .topTitle {
   display: flex;
   justify-content: space-between;
   margin-bottom: 20px;
   padding: 0 15px;
 }
+
 .btn1 {
   margin-left: 1%;
   height: 40px;
@@ -416,6 +395,7 @@
 .select11 {
   width: 20% !important;
 }
+
 /deep/.el-date-editor .el-range-separator {
   width: 11%;
 }

--
Gitblit v1.8.0