wu
2023-09-12 9041bf0365d5ef7f9215543c6bc2e51375802943
CanadaMes-ui/src/views/Electrical/Parameter.vue
@@ -22,7 +22,8 @@
  <el-input style="width: 280px; border:none;" class="in_mc" v-model="item.name" readonly></el-input> 
  <span style="margin-right: 5px; width: 50px;">{{ item.value }}</span>
  <span style="margin-right: 5px; font-size: 14px;">|</span>
  <input v-model="item.value2" type="number" style="width: 30px; margin-right: 5px; margin-top: 5px; font-size: 16px;">
        <input v-model="item.value2" type="number"
          style="width: 30px; margin-right: 5px; margin-top: 5px; font-size: 16px;">
</div>
    </el-form>
  </div>
@@ -102,7 +103,7 @@
  let isButtonDisabled = this.record.state.includes(1); 
  // 判断state中是否存在1
  console.log(isButtonDisabled)
          //console.log(isButtonDisabled)
  this.isButtonDisabled = isButtonDisabled; // 将判断结果保存到变量isButtonDisabled中
  for (let a = 0; a <= this.record.params[0].length - 1; a++) {
@@ -113,7 +114,7 @@
    }
  }
  console.log(this.record.xyData);
          //console.log(this.record.xyData);
  this.$forceUpdate();
};
  
@@ -130,7 +131,7 @@
    },
    send() {
      this.messagepack.data = this.record.xyData.map((item) => parseInt(item.value2)); // 转换为整数数组
      console.log(this.messagepack);
      //console.log(this.messagepack);
      socket?.send(JSON.stringify(this.messagepack));
    },
    handleChange(index, value) {
@@ -149,6 +150,7 @@
.el-input__inner {
  border: 1px solid black;
}
.in_mc{
  border:none;
@@ -162,6 +164,7 @@
#btn_div .el-button {
  float: right;
}
input[type="number"]::-webkit-inner-spin-button,
  input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
@@ -169,6 +172,7 @@
  }
  input[type="number"] {
    -moz-appearance: textfield; /* Firefox中禁用上下箭头 */
  -moz-appearance: textfield;
  /* Firefox中禁用上下箭头 */
  }
</style>