|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
- <div>
|
|
|
- <el-row class="equipment commonWidth" v-if="devicedId == 'XDI1_R1'"><!--机房设备信息弹框-->
|
|
|
+ <div>
|
|
|
+ <el-row class="equipment commonWidth" v-if="XDI1_R1_h1">
|
|
|
<el-col class="top">
|
|
|
<el-col class="title">
|
|
|
<img src="../../../assets/image/arrow.png" alt="" />
|
|
@@ -10,13 +10,49 @@
|
|
|
<p class="close" @click="close"></p>
|
|
|
</el-col>
|
|
|
<el-col class="contain">
|
|
|
- <el-col class="title"><span class="type">红外1开关量:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">红外2开关量:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">红外3开关量:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">漏水1开关量:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">红外1开关:</span><span class="data">{{ data.num[0] == "1" ? "开" : "关" }}</span></el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row class="equipment commonWidth" v-if="devicedId == 'XDO_R1'"><!--机房设备信息弹框-->
|
|
|
+ <el-row class="equipment commonWidth" v-if="XDI1_R1_h2">
|
|
|
+ <el-col class="top">
|
|
|
+ <el-col class="title">
|
|
|
+ <img src="../../../assets/image/arrow.png" alt="" />
|
|
|
+ <span>干接点模块</span>
|
|
|
+ <img src="../../../assets/image/icon1.png" alt="" class="equipment-icon"/>
|
|
|
+ </el-col>
|
|
|
+ <p class="close" @click="close"></p>
|
|
|
+ </el-col>
|
|
|
+ <el-col class="contain">
|
|
|
+ <el-col class="title"><span class="type">红外2开关:</span><span class="data">{{ data.num[0] == "1" ? "开" : "关" }}</span></el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="equipment commonWidth" v-if="XDI1_R1_h3">
|
|
|
+ <el-col class="top">
|
|
|
+ <el-col class="title">
|
|
|
+ <img src="../../../assets/image/arrow.png" alt="" />
|
|
|
+ <span>干接点模块</span>
|
|
|
+ <img src="../../../assets/image/icon1.png" alt="" class="equipment-icon"/>
|
|
|
+ </el-col>
|
|
|
+ <p class="close" @click="close"></p>
|
|
|
+ </el-col>
|
|
|
+ <el-col class="contain">
|
|
|
+ <el-col class="title"><span class="type">红外3开关:</span><span class="data">{{ data.num[0] == "1" ? "开" : "关" }}</span></el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="equipment commonWidth" v-if="XDI1_R1_l1">
|
|
|
+ <el-col class="top">
|
|
|
+ <el-col class="title">
|
|
|
+ <img src="../../../assets/image/arrow.png" alt="" />
|
|
|
+ <span>干接点模块</span>
|
|
|
+ <img src="../../../assets/image/icon1.png" alt="" class="equipment-icon"/>
|
|
|
+ </el-col>
|
|
|
+ <p class="close" @click="close"></p>
|
|
|
+ </el-col>
|
|
|
+ <el-col class="contain">
|
|
|
+ <el-col class="title"><span class="type">漏水1开关:</span><span class="data">{{ data.num[0] == "1" ? "开" : "关" }}</span></el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="equipment commonWidth" v-if="XDO_R1">
|
|
|
<el-col class="top">
|
|
|
<el-col class="title">
|
|
|
<img src="../../../assets/image/arrow.png" alt="" />
|
|
@@ -26,10 +62,24 @@
|
|
|
<p class="close" @click="close"></p>
|
|
|
</el-col>
|
|
|
<el-col class="contain">
|
|
|
- <el-col class="title"><span class="type">声光报警:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">机房声光报警开关:</span><span class="data">{{ data.num[0] == "1" ? "开" : "关" }}</span></el-col>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ <el-row class="equipment commonWidth" v-if="WSD1_R1_1">
|
|
|
+ <el-col class="top">
|
|
|
+ <el-col class="title">
|
|
|
+ <img src="../../../assets/image/arrow.png" alt="" />
|
|
|
+ <span>机房温湿度</span>
|
|
|
+ <img src="../../../assets/image/icon1.png" alt="" class="equipment-icon"/>
|
|
|
+ </el-col>
|
|
|
+ <p class="close" @click="close"></p>
|
|
|
+ </el-col>
|
|
|
+ <el-col class="contain">
|
|
|
+ <el-col class="title"><span class="type">温度1:</span><span class="data">{{ data.num[0] || "--" }}℃</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">湿度1:</span><span class="data">{{ data.num[1] || "--" }}%</span></el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row class="equipment commonWidth" v-if="devicedId == 'WSD1_R1'"><!--机房设备信息弹框-->
|
|
|
+ <el-row class="equipment commonWidth" v-if="WSD1_R1_2">
|
|
|
<el-col class="top">
|
|
|
<el-col class="title">
|
|
|
<img src="../../../assets/image/arrow.png" alt="" />
|
|
@@ -39,13 +89,11 @@
|
|
|
<p class="close" @click="close"></p>
|
|
|
</el-col>
|
|
|
<el-col class="contain">
|
|
|
- <el-col class="title"><span class="type">温湿度1温度测量值:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">温湿度1湿度测量值:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">温湿度2温度测量值:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">温湿度2湿度测量值:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">温度2:</span><span class="data">{{ data.num[0] || "--" }}℃</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">湿度2:</span><span class="data">{{ data.num[1] || "--" }}%</span></el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <el-row class="equipment commonWidth" v-if="devicedId == 'DLY1_R1'"><!--机房设备信息弹框-->
|
|
|
+ <el-row class="equipment commonWidth" v-if="DLY1_R1">
|
|
|
<el-col class="top">
|
|
|
<el-col class="title">
|
|
|
<img src="../../../assets/image/arrow.png" alt="" />
|
|
@@ -55,39 +103,115 @@
|
|
|
<p class="close" @click="close"></p>
|
|
|
</el-col>
|
|
|
<el-col class="contain">
|
|
|
- <el-col class="title"><span class="type">电量仪1_A相电压(单位V):</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_B相电压(单位V):</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_C相电压(单位V):</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_AB线电压(单位V):</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_BC线电压(单位V):</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_AC线电压(单位V):</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_A相电流(单位A):</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_B相电流(单位A):</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_C相电流(单位A):</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_频率:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_A相有功功率:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_B相有功功率:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_C相有功功率:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
- <el-col class="title"><span class="type">电量仪1_总功率:</span><span class="data">{{data[] : "--"}}</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">A相电压:</span><span class="data">{{ Number(data.num[0]).toFixed(2) || "--" }}V</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">B相电压:</span><span class="data">{{ Number(data.num[1]).toFixed(2) || "--" }}V</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">C相电压:</span><span class="data">{{ Number(data.num[2]).toFixed(2) || "--" }}V</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">AB线电压:</span><span class="data">{{ Number(data.num[3]).toFixed(2) || "--" }}V</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">BC线电压:</span><span class="data">{{ Number(data.num[4]).toFixed(2) || "--" }}V</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">AC线电压:</span><span class="data">{{ Number(data.num[5]).toFixed(2) || "--" }}V</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">A相电流:</span><span class="data">{{ Number(data.num[6]).toFixed(2) || "--" }}V</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">B相电流:</span><span class="data">{{ Number(data.num[7]).toFixed(2) || "--" }}A</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">C相电流:</span><span class="data">{{ Number(data.num[8]).toFixed(2) || "--" }}A</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">A相有功功率:</span><span class="data">{{ Number(data.num[9]).toFixed(2) || "--" }}V</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">B相有功功率:</span><span class="data">{{ Number(data.num[10]).toFixed(2) || "--" }}V</span></el-col>
|
|
|
+ <el-col class="title"><span class="type">C相有功功率:</span><span class="data">{{ Number(data.num[11]).toFixed(2) || "--" }}V</span></el-col>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
+import { movingRing } from "@/plugins/api";
|
|
|
export default {
|
|
|
props:['resInfo'],
|
|
|
data() {
|
|
|
return {
|
|
|
+ XDI1_R1_h1:false,
|
|
|
+ XDI1_R1_h2:false,
|
|
|
+ XDI1_R1_h3:false,
|
|
|
+ XDI1_R1_l1:false,
|
|
|
+ XDO_R1:false,
|
|
|
+ WSD1_R1_1:false,
|
|
|
+ WSD1_R1_2:false,
|
|
|
+ DLY1_R1:false,
|
|
|
devicedId:undefined,
|
|
|
- data:[],
|
|
|
+ data:{
|
|
|
+
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
mounted(){
|
|
|
this.getData()
|
|
|
},
|
|
|
methods: {
|
|
|
+
|
|
|
+
|
|
|
getData(){//获取数据赋值
|
|
|
+ this.XDI1_R1_h1 = false
|
|
|
+ this.XDI1_R1_h2 = false
|
|
|
+ this.XDI1_R1_h3 = false
|
|
|
+ this.XDI1_R1_l1 = false
|
|
|
+ this.XDO_R1 = false
|
|
|
+ this.WSD1_R1_1 = false
|
|
|
+ this.WSD1_R1_2 = false
|
|
|
+ this.DLY1_R1 = false
|
|
|
this.data = this.resInfo
|
|
|
+ this.data.num = []
|
|
|
+ let url = "http://10.108.56.30:80/html5/GETTAGVAL/"
|
|
|
+ if(this.data.registerDeviceId == "XDI1_R1_h1"){
|
|
|
+ movingRing({url:`${url}XDI1_R1.红外1`,deviceId:this.data.registerDeviceId}).then(res =>{
|
|
|
+ this.data.num.push(res.data.split(",")[1])
|
|
|
+ this.XDI1_R1_h1 = true
|
|
|
+ })
|
|
|
+ }else if(this.data.registerDeviceId == "XDI1_R1_h2"){
|
|
|
+ movingRing({url:`${url}XDI1_R1.红外2`,deviceId:this.data.registerDeviceId}).then(res =>{
|
|
|
+ this.data.num.push(res.data.split(",")[1])
|
|
|
+ this.XDI1_R1_h2 = true
|
|
|
+ })
|
|
|
+ }else if(this.data.registerDeviceId == "XDI1_R1_h3"){
|
|
|
+ movingRing({url:`${url}XDI1_R1.红外3`,deviceId:this.data.registerDeviceId}).then(res =>{
|
|
|
+ this.data.num.push(res.data.split(",")[1])
|
|
|
+ this.XDI1_R1_h3 = true
|
|
|
+ })
|
|
|
+ }else if(this.data.registerDeviceId == "XDI1_R1_l1"){
|
|
|
+ movingRing({url:`${url}XDI1_R1.漏水1`,deviceId:this.data.registerDeviceId}).then(res =>{
|
|
|
+ this.data.num.push(res.data.split(",")[1])
|
|
|
+ this.XDI1_R1_l1 = true
|
|
|
+ })
|
|
|
+ }else if(this.data.registerDeviceId == "XDO_R1"){
|
|
|
+ movingRing({url:`${url}XDO_R1.声光报警1`,deviceId:this.data.registerDeviceId}).then(res =>{
|
|
|
+ this.data.num.push(res.data.split(",")[1])
|
|
|
+ this.XDO_R1 = true
|
|
|
+ })
|
|
|
+ }else if(this.data.registerDeviceId == "WSD1_R1_1"){
|
|
|
+ movingRing({url:`${url}WSD1_R1.温湿度1_温度,WSD1_R1.温湿度1_湿度`,deviceId:this.data.registerDeviceId}).then(res =>{
|
|
|
+ let arr = res.data.split("|")
|
|
|
+ for(let i = 0;i<arr.length;i++){
|
|
|
+ this.data.num.push(arr[i].split(",")[1])
|
|
|
+ }
|
|
|
+ this.WSD1_R1_1 = true
|
|
|
+ })
|
|
|
+ }else if(this.data.registerDeviceId == "WSD1_R1_2"){
|
|
|
+ movingRing({url:`${url}WSD1_R1.温湿度2_温度,WSD1_R1.温湿度2_湿度`,deviceId:this.data.registerDeviceId}).then(res =>{
|
|
|
+ let arr = res.data.split("|")
|
|
|
+ for(let i = 0;i<arr.length;i++){
|
|
|
+ this.data.num.push(arr[i].split(",")[1])
|
|
|
+ }
|
|
|
+ this.WSD1_R1_2 = true
|
|
|
+ })
|
|
|
+ }else if(this.data.registerDeviceId == "DLY1_R1"){
|
|
|
+ // ,DLY1_R1.电量仪1_频率,DLY1_R1.电量仪1_总功率
|
|
|
+ movingRing({url:`${url}DLY1_R1.电量仪1_A相电压,DLY1_R1.电量仪1_B相电压,DLY1_R1.电量仪1_C相电压,DLY1_R1.电量仪1_AB线电压,DLY1_R1.电量仪1_BC线电压,DLY1_R1.电量仪1_AC线电压,DLY1_R1.电量仪1_A相电流,DLY1_R1.电量仪1_B相电流,DLY1_R1.电量仪1_C相电流,DLY1_R1.电量仪1_A相有功功率,DLY1_R1.电量仪1_B相有功功率,DLY1_R1.电量仪1_C相有功功率`,deviceId:this.data.registerDeviceId}).then(res =>{
|
|
|
+ let arr = res.data.split("|")
|
|
|
+ for(let i = 0;i<arr.length;i++){
|
|
|
+ this.data.num.push(arr[i].split(",")[1])
|
|
|
+ }
|
|
|
+ this.DLY1_R1 = true
|
|
|
+ })
|
|
|
+ }else{
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
close(){//关闭
|
|
|
this.state = false
|
|
@@ -153,12 +277,12 @@ export default {
|
|
|
font-size: 14px;
|
|
|
letter-spacing: 1px;
|
|
|
.type{
|
|
|
- width:25%;
|
|
|
+ width:40%;
|
|
|
text-align: right;
|
|
|
display: inline-block;
|
|
|
}
|
|
|
.data{
|
|
|
- width:75%;
|
|
|
+ width:60%;
|
|
|
text-align: left;
|
|
|
display: inline-block;
|
|
|
vertical-align: top;
|