| | |
| | | </div> -->
|
| | |
|
| | | <div class="kuai_div" v-for="(item, index) in record.xyData" :key="index">
|
| | | <el-input v-model="item.name" style="width: 240px;" class="in_mc"></el-input>
|
| | | <el-input v-model="item.name" style="width: 240px;" class="in_mc" readonly></el-input>
|
| | | <el-switch v-model="item.value" active-value="1" inactive-value="0" @change="send()"></el-switch>
|
| | | </div>
|
| | | </el-form>
|
| | |
| | | let obj = JSON.parse(msg.data);
|
| | | this.record.params[0] = obj.params[0];
|
| | |
|
| | | for (let a = 0; a <= this.record.params[0].length; a++) {
|
| | | for (let a = 0; a <= this.record.params[0].length - 1; a++) {
|
| | | if (!this.record.xyData[a]) {
|
| | | this.record.xyData[a] = { name: this.record.canshu[a], value: this.record.params[0][a].toString() };
|
| | | } else {
|
| | |
| | | border: none;
|
| | |
|
| | |
|
| | | |
| | |
|
| | |
|
| | | }
|
| | | .el-input__inner {
|
| | | border: 1 solid black;
|
| | | }
|
| | |
|
| | | .in_mc {
|
| | |
|
| | | }
|
| | |
|
| | | .in_mc {
|
| | | .el-input__inner {
|
| | | border: none;
|
| | | }
|
| | | }
|
| | | </style> |