From 17b8d077f7efe3db20344987cdad9da9d9ab3de6 Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期五, 03 十一月 2023 15:21:11 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes

---
 CanadaMes-ui/src/views/Electrical/Action.vue |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/CanadaMes-ui/src/views/Electrical/Action.vue b/CanadaMes-ui/src/views/Electrical/Action.vue
index e7f938d..db3b8da 100644
--- a/CanadaMes-ui/src/views/Electrical/Action.vue
+++ b/CanadaMes-ui/src/views/Electrical/Action.vue
@@ -2,12 +2,11 @@
   <div class="app">
     <!--闈㈠寘灞戝鑸尯鍩�-->
     <el-breadcrumb separator-class="el-icon-arrow-right" class="el-breadcrumb">
-     
+      <router-link to="/Electrical/alarm" tag="el-button" type="text" active-class="blue-button">{{ $t('Alarm') }}</router-link>
+      <router-link to="/Electrical/State" tag="el-button" type="text" active-class="blue-button">{{ $t('State') }}</router-link>
+      <router-link to="/Electrical/Action" tag="el-button" type="text" active-class="blue-button">{{ $t('Action') }}</router-link>
       <router-link to="/Electrical/Parameter" tag="el-button" type="text" active-class="blue-button">{{ $t('Parameter') }}</router-link>
-    <router-link to="/Electrical/Action" tag="el-button" type="text" active-class="blue-button">{{ $t('Action') }}</router-link>
     <router-link to="/Electrical/Sign" tag="el-button" type="text" active-class="blue-button">{{ $t('Sign') }}</router-link>
-    <router-link to="/Electrical/State" tag="el-button" type="text" active-class="blue-button">{{ $t('State') }}</router-link>
-    <router-link to="/Electrical/alarm" tag="el-button" type="text" active-class="blue-button">{{ $t('Alarm') }}</router-link>
     </el-breadcrumb>
     <div>Action</div>
     <el-form label-width="100px" style="display: flex;flex-wrap: wrap;" :model="{ messagepack }">
@@ -26,7 +25,7 @@
   </div>
 </template>
  
-<script >
+<script > 
 import LanguageMixin from '../../lang/LanguageMixin'
 let socket;
 export default {
@@ -108,7 +107,7 @@
     }
   },
   created () {
-    this.init();
+    this.init(); 
   },
   methods: {
     setActiveButton(buttonName) {
@@ -140,6 +139,7 @@
           }
 
           let obj = JSON.parse(msg.data);
+          if (obj.params ){
           this.record.params[0] = obj.params[0];
 
           for (let a = 0; a <= this.record.params[0].length - 1; a++) {
@@ -149,7 +149,7 @@
               this.record.xyData[a].value = this.record.params[0][a].toString();
             }
           }
-
+        }
           // console.log(this.record.xyData);
           this.$forceUpdate();
         };
@@ -182,7 +182,7 @@
 </script>
  
  
-<style>
+<style scoped>
 .kuai_div {
   /* width: 30%; */
   margin-bottom: 30px;

--
Gitblit v1.8.0