wuyouming666
2023-11-30 8dfb37b10ffb2fcb41c85b3fa266d1ef2874aebc
CanadaMes-ui/src/views/Electrical/Sign.vue
@@ -21,7 +21,7 @@
    <div style="padding-right: 30px;display: flex;flex-wrap: wrap;" class="neir">
      <div class="kuai_sb" v-for="item in record.xyData" :key="item.name">
        <el-col class="deng" :class="getStatusClass(item.value)"></el-col>
        <el-input v-model="item.name" style="width: 280px;" class="in_mc"></el-input>
        <el-input v-model="item.name" style="width: 100%;" class="in_mc"></el-input>
      </div>
@@ -114,7 +114,7 @@
          this.record.params[0] = obj.sig[0];
          this.record.xyData = this.jsonData.sign;
          console.log(this.jsonData.sign)
          for (let a = 0; a < this.record.xyData.length; a++) {
            this.record.xyData[a].value = this.record.params[0][a];
@@ -149,10 +149,14 @@
    },
    //语言转换
    replaceChineseWithEnglish () {
      const translation = this.$t('Signlang');
      this.record.xyData = this.record.xyData.map(item => { return { name: translation[item.name] || item.name, value: item.value }; });
      //console.log(translation);
      if (translation != null) {
        this.record.xyData = this.record.xyData.map(item => { return { name: translation[item.name] || item.name, value: item.value }; });
        //console.log(translation);
      }
    }
  }
@@ -187,7 +191,7 @@
.kuai_sb {
  text-align: center;
  width: 25%;
  width: 15%;
  margin-bottom: 15px;
}
@@ -212,8 +216,8 @@
  background: #A0A0A0;
  border: 0.1875em solid white;
  border-radius: 50%;
  height: 5em;
  width: 5em;
  height: 4em;
  width: 4em;
  box-shadow: 0.375em 0.375em 0 0 rgba(214, 214, 214, 0.125);
}