wu
2023-11-03 17b8d077f7efe3db20344987cdad9da9d9ab3de6
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;