| | |
| | | ,subName: 'panel' |
| | | }, true); |
| | | |
| | | can.drawText({ |
| | | x: 1040, |
| | | y: 304, |
| | | txt: 'P13' |
| | | }); |
| | | |
| | | can.drawRect({ |
| | | strokeStyle: 'transparent', |
| | | startX: 1160 |
| | |
| | | ,subName: 'panel' |
| | | }, true); |
| | | |
| | | can.drawText({ |
| | | x: 1390, |
| | | y: 320, |
| | | txt: 'V501' |
| | | }); |
| | | |
| | | can.drawRect({ |
| | | strokeStyle: 'transparent', |
| | | startX: 1340 |
| | |
| | | ,height: 30 |
| | | ,subName: 'panel' |
| | | }, true); |
| | | |
| | | can.drawText({ |
| | | x: 1390, |
| | | y: 458, |
| | | txt: 'V502' |
| | | }); |
| | | |
| | | can.drawRect({ |
| | | strokeStyle: 'transparent', |
| | |
| | | ,subName: 'input' |
| | | }, true); |
| | | |
| | | /*can.drawText({ |
| | | x: 670, |
| | | y: 160, |
| | | txt: 'TRT01_T(℃)' |
| | | });*/ |
| | | |
| | | // index: 7 TRT01_R 阀厅湿度 |
| | | can.drawRect({ |
| | | strokeStyle: 'transparent', |
| | |
| | | height: 40 |
| | | ,subName: 'input' |
| | | }, true); |
| | | |
| | | /*can.drawText({ |
| | | x: 670, |
| | | y: 290, |
| | | txt: 'TRT01_R(%)' |
| | | });*/ |
| | | |
| | | /*can.drawText({ |
| | | x: 1270, |
| | | y: 392, |
| | | txt: 'PT11(bar)' |
| | | });*/ |
| | | } |
| | | // 画连线 |
| | | can.drawLine({ |
| | |
| | | if (this.G_data.length > 50) { |
| | | this.G_data.shift(); |
| | | } |
| | | this.$refs['G_dialog_id'].setOption(this.format(this.G_data)); |
| | | |
| | | this.$refs['G_dialog_id'] && this.$refs['G_dialog_id'].setOption(this.format(this.G_data)); |
| | | } |
| | | ,format (data) { |
| | | let xLabel = [], |