| | |
| | | } |
| | | }; |
| | | // 显示线条的id |
| | | this.showLineId = true; |
| | | this.showLineId = false; |
| | | } |
| | | |
| | | // 设置canvas |
| | |
| | | <div class="content_cent"> |
| | | <p class="title_into">详细参数情况</p> |
| | | <div class="clear"></div> |
| | | <el-form ref="form" label-width="100px"> |
| | | <el-form ref="form" label-width="110px"> |
| | | <el-col :span="4"> |
| | | <span>逆变模块</span> |
| | | </el-col> |
| | |
| | | </el-form> |
| | | <div class="clear"></div> |
| | | <div class="partition"></div> |
| | | <el-form ref="form" label-width="100px"> |
| | | <el-form ref="form" label-width="110px"> |
| | | <el-col :span="4"> |
| | | <span>受功电机</span> |
| | | </el-col> |
| | |
| | | chart: {}, |
| | | data(){ |
| | | return { |
| | | isOpen:false, |
| | | tableData:[], |
| | | formData:{ |
| | | thisInfo:{ |
| | |
| | | this.socket.onopen = this.onOpen; |
| | | this.socket.onerror = this.onError; |
| | | this.socket.onclose = this.close; |
| | | |
| | | } |
| | | }, |
| | | onMessage(res) { |
| | | let self = this; |
| | | let result = JSON.parse(res.data) |
| | | if(result.code == 1){ |
| | | this.isOpen = true; |
| | | // 表单赋值 |
| | | self.formData.thisInfo.cxFivePanelCurr = result.data.screenRTList[0].panelCurr + "A"; |
| | | self.echartsList[0].echartsCurr.push(result.data.screenRTList[0].panelCurr); |
| | |
| | | <p class="title_into">详细参数情况</p> |
| | | <div class="clear"></div> |
| | | <div class="detail_info">5000kVA进线屏</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="47px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.cxFivePanelCurr"></el-input> |
| | | </el-form-item> |
| | |
| | | </el-form> |
| | | </div> |
| | | <div class="detail_info">5000kVA出线屏</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="47px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.cxFivePanelCurr"></el-input> |
| | | </el-form-item> |
| | |
| | | <div class="clear"></div> |
| | | <div class="partition"></div> |
| | | <div class="detail_info">1号3200kVA出线</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="47px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.cxOnePanelVol"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="detail_info">2号3200kVA出线</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="47px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.cxTwoPanelVol"></el-input> |
| | | </el-form-item> |
| | |
| | | <div class="clear"></div> |
| | | <div class="partition"></div> |
| | | <div class="detail_info">电源输入 A排</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="47px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.volA"></el-input> |
| | | </el-form-item> |
| | |
| | | </el-form> |
| | | </div> |
| | | <div class="detail_info">电源输入 B排</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="47px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.volB"></el-input> |
| | | </el-form-item> |
| | |
| | | chart: {}, |
| | | data(){ |
| | | return { |
| | | isOpen:false, |
| | | tableData:[], |
| | | formData:{ |
| | | thisInfo:{ |
| | |
| | | this.socket.onopen = this.onOpen; |
| | | this.socket.onerror = this.onError; |
| | | this.socket.onclose = this.close; |
| | | |
| | | } |
| | | }, |
| | | onMessage(res) { |
| | | let self = this; |
| | | let result = JSON.parse(res.data) |
| | | if(result.code == 1){ |
| | | this.isOpen = true; |
| | | // 表单赋值 |
| | | self.formData.thisInfo.cxFivePanelCurr = result.data.screenRTList[0].panelCurr + "A"; |
| | | self.echartsList[0].echartsCurr.push(result.data.screenRTList[0].panelCurr); |
| | |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | .width_80{ |
| | | width: 80px; |
| | | } |
| | | .clear{ |
| | | clear: both; |
| | | } |
| | |
| | | } |
| | | .detail_info{ |
| | | float: left; |
| | | width: 22%; |
| | | width: 12%; |
| | | margin-right: 2%; |
| | | font-size: 12px; |
| | | padding-top: 2%; |
| | |
| | | .detail_info .el-form-item{ |
| | | margin-bottom:0; |
| | | } |
| | | .detail_form{ |
| | | width: 28%; |
| | | } |
| | | .right_box{ |
| | | width: 39%; |
| | | } |
| | |
| | | <div class="content_box"> |
| | | <div class="content_top"> |
| | | <p class="title_into">当前运行情况</p> |
| | | <el-form ref="form" label-width="100px"> |
| | | <el-form ref="form" label-width="120px"> |
| | | <el-form-item label="受试电机状态:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.ssdjzt" style="width:65px"></el-input> |
| | | </el-form-item> |
| | |
| | | chart: {}, |
| | | data(){ |
| | | return { |
| | | isOpen:false, |
| | | tableData:[], |
| | | formData:{ |
| | | thisInfo:{ |
| | |
| | | this.socket.onopen = this.onOpen; |
| | | this.socket.onerror = this.onError; |
| | | this.socket.onclose = this.close; |
| | | |
| | | } |
| | | }, |
| | | onMessage(res) { |
| | | let self = this; |
| | | let result = JSON.parse(res.data) |
| | | if(result.code == 1){ |
| | | this.isOpen = true; |
| | | // 表单赋值 |
| | | self.formData.thisInfo.cxFivePanelCurr = result.data.screenRTList[0].panelCurr + "A"; |
| | | self.echartsList[0].echartsCurr.push(result.data.screenRTList[0].panelCurr); |
| | |
| | | self.setOption(item,true); |
| | | }); |
| | | self.setEcharts(); |
| | | console.log(result) |
| | | }, |
| | | getTime(){ |
| | | var myDate = new Date(); //实例一个时间对象; |
| | |
| | | itemStyle: { |
| | | normal: { |
| | | color: function(value){ |
| | | console.log(value); |
| | | let color = "rgb(255,199,28)"; |
| | | if(value.data >=80){ |
| | | color = "red"; |
| | |
| | | width: 40%; |
| | | /* padding: 0.75rem 1rem; */ |
| | | } |
| | | .canvs_box{ |
| | | width: 100%; |
| | | height: 65%; |
| | | } |
| | | .diagram-content{ |
| | | height: 100%; |
| | | /* width: 100%; */ |
| | |
| | | } |
| | | .diagram-stc { |
| | | width: 100%; |
| | | /* height: 100%; */ |
| | | height: 100%; |
| | | overflow: hidden; |
| | | } |
| | | |
| | |
| | | z-index: 9; |
| | | overflow: hidden; |
| | | } |
| | | .diagram-stc /deep/ canvas,.diagram-flush /deep/ canvas{ |
| | | /* .diagram-stc /deep/ canvas,.diagram-flush /deep/ canvas{ |
| | | object-fit:fill !important; |
| | | } |
| | | .canvs_box{ |
| | | height: 65%; |
| | | } |
| | | } */ |
| | | |
| | | .list_box{ |
| | | height: 33.5%; |
| | | } |
| | |
| | | |
| | | const lineWidth = 2; |
| | | const lineStrokeColor = '#105b96'; |
| | | const frequencyWidth = 96; |
| | | const ACWidth = 124; |
| | | const parameterWidth = 85; |
| | | |
| | | |
| | | function girdCircuitDiagram(stc, flush) { |
| | | |
| | |
| | | let thisHeight = stc.scrollHeight; |
| | | diagram.width = thisWidth; |
| | | diagram.height= thisHeight; |
| | | console.log(diagram.width,diagram.height) |
| | | diagram.setCanvas(stc, flush); |
| | | |
| | | let start = [60, 100]; |
| | |
| | | [line7[1][0],line7[1][1]], |
| | | [line8[0][0], line8[0][1]] |
| | | |
| | | ] |
| | | ], |
| | | |
| | | }); |
| | | |
| | | |
| | |
| | | <p class="title_into">详细参数情况</p> |
| | | <div class="clear"></div> |
| | | <div class="detail_info">5000kVA进线屏</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="50px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.cxFivePanelCurr"></el-input> |
| | | </el-form-item> |
| | |
| | | </el-form> |
| | | </div> |
| | | <div class="detail_info">5000kVA出线屏</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="50px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.cxFivePanelCurr"></el-input> |
| | | </el-form-item> |
| | |
| | | <div class="clear"></div> |
| | | <div class="partition"></div> |
| | | <div class="detail_info">1号3200kVA出线</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="50px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.cxOnePanelVol"></el-input> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <div class="detail_info">2号3200kVA出线</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="50px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.cxTwoPanelVol"></el-input> |
| | | </el-form-item> |
| | |
| | | <div class="clear"></div> |
| | | <div class="partition"></div> |
| | | <div class="detail_info">电源输入 A排</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="50px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.volA"></el-input> |
| | | </el-form-item> |
| | |
| | | </el-form> |
| | | </div> |
| | | <div class="detail_info">电源输入 B排</div> |
| | | <div class="detail_info"> |
| | | <el-form ref="form" label-width="50px"> |
| | | <div class="detail_info detail_form"> |
| | | <el-form ref="form" label-width="60px"> |
| | | <el-form-item label="电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.volB"></el-input> |
| | | </el-form-item> |
| | |
| | | chart: {}, |
| | | data(){ |
| | | return { |
| | | isOpen:false, |
| | | tableData:[], |
| | | formData:{ |
| | | thisInfo:{ |
| | |
| | | this.socket.onopen = this.onOpen; |
| | | this.socket.onerror = this.onError; |
| | | this.socket.onclose = this.close; |
| | | |
| | | } |
| | | }, |
| | | onMessage(res) { |
| | | let self = this; |
| | | let result = JSON.parse(res.data) |
| | | if(result.code == 1){ |
| | | this.isOpen = true; |
| | | // 表单赋值 |
| | | self.formData.thisInfo.cxFivePanelCurr = result.data.screenRTList[0].panelCurr + "A"; |
| | | self.echartsList[0].echartsCurr.push(result.data.screenRTList[0].panelCurr); |
| | |
| | | } |
| | | .detail_info{ |
| | | float: left; |
| | | width: 22%; |
| | | width: 18%; |
| | | margin-right: 2%; |
| | | font-size: 12px; |
| | | padding-top: 2%; |
| | |
| | | .detail_info .el-form-item{ |
| | | margin-bottom:0; |
| | | } |
| | | .detail_form{ |
| | | width: 28%; |
| | | } |
| | | .right_box{ |
| | | width: 39%; |
| | | } |
| | |
| | | <template> |
| | | <div class="body_box"> |
| | | <!-- 大功率整流电源监控 --> |
| | | <div class="tipTitle">开关柜监控</div> |
| | | <div class="left_Box"> |
| | | |
| | |
| | | <div class="content_box"> |
| | | <div class="content_top"> |
| | | <p class="title_into">当前运行情况</p> |
| | | <el-form ref="form" label-width="120px"> |
| | | <el-form ref="form" label-width="125px"> |
| | | <el-form-item label="大功率整流电源:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.dglzldy" style="width:100px"></el-input> |
| | | </el-form-item> |
| | |
| | | chart: {}, |
| | | data(){ |
| | | return { |
| | | isOpen:false, |
| | | tableData:[], |
| | | formData:{ |
| | | thisInfo:{ |
| | |
| | | let self = this; |
| | | let result = JSON.parse(res.data) |
| | | if(result.code == 1){ |
| | | this.isOpen = true; |
| | | // 表单赋值 |
| | | self.formData.thisInfo.cxFivePanelCurr = result.data.screenRTList[0].panelCurr + "A"; |
| | | self.echartsList[0].echartsCurr.push(result.data.screenRTList[0].panelCurr); |
| | |
| | | const frequencyWidth = 96; |
| | | const ACWidth = 124; |
| | | const parameterWidth = 85; |
| | | const hideStatus = false; |
| | | |
| | | |
| | | function girdCircuitDiagram(stc, flush) { |
| | |
| | | points: [ |
| | | start, |
| | | [start[0], start[1]+200] |
| | | ] |
| | | ], |
| | | hide: hideStatus, |
| | | }); |
| | | |
| | | let line2 = diagram.line({ |
| | |
| | | points: [ |
| | | [line1[1][0],line1[1][1]], |
| | | [line1[1][0]+260, line1[1][1]] |
| | | ] |
| | | ], |
| | | hide: hideStatus, |
| | | }); |
| | | |
| | | let line3 = diagram.line({ |
| | |
| | | points: [ |
| | | [line2[1][0]+30,line2[1][1]], |
| | | [line2[1][0]+130, line2[1][1]] |
| | | ] |
| | | ], |
| | | hide: hideStatus, |
| | | }); |
| | | let line4 = diagram.line({ |
| | | id: 'line4', |
| | |
| | | points: [ |
| | | [line2[1][0],line2[1][1]-10], |
| | | [line2[1][0], line2[1][1]+10] |
| | | ] |
| | | ], |
| | | hide: hideStatus, |
| | | }); |
| | | |
| | | let line5 = diagram.line({ |
| | |
| | | points: [ |
| | | [line3[0][0],line3[0][1]-10], |
| | | [line3[0][0], line3[0][1]+10] |
| | | ] |
| | | ], |
| | | hide: hideStatus, |
| | | }); |
| | | |
| | | let line6 = diagram.line({ |
| | |
| | | points: [ |
| | | [line3[1][0],line3[1][1]], |
| | | [line3[1][0], line3[1][1]-220] |
| | | ] |
| | | ], |
| | | hide: hideStatus, |
| | | }); |
| | | |
| | | let line7 = diagram.line({ |
| | |
| | | points: [ |
| | | [line6[1][0],line6[1][1]], |
| | | [line6[1][0]-40, line6[1][1]] |
| | | ] |
| | | ], |
| | | hide: hideStatus, |
| | | }); |
| | | |
| | | let arc1 = diagram.arc({ |
| | |
| | | points: [ |
| | | [line7[1][0]-30,line7[1][1]], |
| | | [line7[1][0]-300, line7[1][1]] |
| | | ] |
| | | ], |
| | | hide: hideStatus, |
| | | }); |
| | | let arc2 = diagram.arc({ |
| | | id: 'arc2', |
| | |
| | | [line7[1][0],line7[1][1]], |
| | | [line8[0][0], line8[0][1]-10] |
| | | |
| | | ] |
| | | ], |
| | | hide: hideStatus, |
| | | }); |
| | | |
| | | |
| | |
| | | <div class="content_box"> |
| | | <div class="content_top"> |
| | | <p class="title_into">当前运行情况</p> |
| | | <el-form ref="form" label-width="100px"> |
| | | <el-form ref="form" label-width="120px"> |
| | | <el-form-item label="受试电机状态:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.ssdjzt" style="width:65px"></el-input> |
| | | </el-form-item> |
| | |
| | | <el-input size="mini" v-model="formData.thisInfo.dqdy" style="width:60px"></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-col :span="10"> |
| | | <el-form-item label="额定电压:"> |
| | | <el-input size="mini" v-model="formData.thisInfo.eddy" style="width:60px"></el-input> |
| | | </el-form-item> |
| | |
| | | chart: {}, |
| | | data(){ |
| | | return { |
| | | isOpen:false, |
| | | tableData:[], |
| | | formData:{ |
| | | thisInfo:{ |
| | |
| | | let self = this; |
| | | let result = JSON.parse(res.data) |
| | | if(result.code == 1){ |
| | | this.isOpen = true; |
| | | // 表单赋值 |
| | | self.formData.thisInfo.cxFivePanelCurr = result.data.screenRTList[0].panelCurr + "A"; |
| | | self.echartsList[0].echartsCurr.push(result.data.screenRTList[0].panelCurr); |
| | |
| | | z-index: 9; |
| | | overflow: hidden; |
| | | } |
| | | .diagram-stc /deep/ canvas,.diagram-flush /deep/ canvas{ |
| | | /* .diagram-stc /deep/ canvas,.diagram-flush /deep/ canvas{ |
| | | object-fit:fill !important; |
| | | } |
| | | } */ |
| | | .canvs_box{ |
| | | height: 65%; |
| | | } |