| | |
| | | <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>
|
| | |
| | |
|
| | | 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++) {
|
| | |
| | | }
|
| | | }
|
| | |
|
| | | console.log(this.record.xyData);
|
| | | //console.log(this.record.xyData);
|
| | | this.$forceUpdate();
|
| | | };
|
| | |
|
| | |
| | | },
|
| | | 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) {
|
| | |
| | | .el-input__inner {
|
| | | border: 1px solid black;
|
| | | }
|
| | |
|
| | | .in_mc{
|
| | |
|
| | | border:none;
|
| | |
| | | #btn_div .el-button {
|
| | | float: right;
|
| | | }
|
| | |
|
| | | input[type="number"]::-webkit-inner-spin-button,
|
| | | input[type="number"]::-webkit-outer-spin-button {
|
| | | -webkit-appearance: none;
|
| | |
| | | }
|
| | |
|
| | | input[type="number"] {
|
| | | -moz-appearance: textfield; /* Firefox中禁用上下箭头 */
|
| | | -moz-appearance: textfield;
|
| | | /* Firefox中禁用上下箭头 */
|
| | | }
|
| | | </style>
|