|
@@ -1,28 +1,35 @@
|
|
|
<template>
|
|
|
<div class="gasPage">
|
|
|
<div class="top-area" v-if="topAreaListWs.length != 0">
|
|
|
- <div class="top-box" v-for="(item, index) in topAreaListWs" :key="index">
|
|
|
- <div class="box-label">{{ item.label }}</div>
|
|
|
- <div class="box-values">
|
|
|
- <div class="value-b" v-for="(items, ind) in item.list" :key="ind">
|
|
|
- <span>{{ `${items.name} : ` }}</span>
|
|
|
- <span :class="{
|
|
|
- 'box-value': items.val == 0 && items.name == '报警状态',
|
|
|
- 'box-value1': items.val == 101 && items.name == '报警状态',
|
|
|
- 'box-value2': items.val == 102 && items.name == '报警状态',
|
|
|
- 'box-value3': items.val == 103 && items.name == '报警状态',
|
|
|
- 'box-value4': items.val == 104 && items.name == '报警状态',
|
|
|
- 'box-value5': items.val == 201 && items.name == '报警状态',
|
|
|
- }">{{ items.val == 0 && items.name == '报警状态' ? '正常' : items.val == 101 && items.name == '报警状态'
|
|
|
- ? '较低风险'
|
|
|
- : items.val == 102 && items.name == '报警状态' ? '低风险' : items.val == 103 && items.name == '报警状态' ?
|
|
|
- '中风险' :
|
|
|
- items.val == 104 && items.name == '报警状态' ? '高风险' : items.val == 201 && items.name == '报警状态' ?
|
|
|
- '报警' :
|
|
|
- items.val }}</span>
|
|
|
+ <div class="title-t">
|
|
|
+ <div class="text-t">瓦斯抽采泵信息</div>
|
|
|
+ </div>
|
|
|
+ <div class="top-bt">
|
|
|
+ <div class="bt-box">
|
|
|
+ <div class="top-box" v-for="(item, index) in topAreaListWs" :key="index">
|
|
|
+ <div class="box-label">{{ item.label }}</div>
|
|
|
+ <div class="box-values">
|
|
|
+ <div class="value-b" v-for="(items, ind) in item.list" :key="ind">
|
|
|
+ <span>{{ `${items.name} : ` }}</span>
|
|
|
+ <span>{{ items.val }}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <div class="bt-box">
|
|
|
+ <div :class="{
|
|
|
+ 'box-value': warnText == 0,
|
|
|
+ 'box-value1': warnText == 101,
|
|
|
+ 'box-value2': warnText == 102,
|
|
|
+ 'box-value3': warnText == 103,
|
|
|
+ 'box-value4': warnText == 104,
|
|
|
+ 'box-value5': warnText == 201,
|
|
|
+ }">{{ warnText == 0 ? '正常' : warnText == 101 ? '较低风险'
|
|
|
+ : warnText == 102 ? '低风险' : warnText == 103 ? '中风险' :
|
|
|
+ warnText == 104 ? '高风险' : warnText == 201 ? '报警' : warnText }}</div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
+
|
|
|
</div>
|
|
|
|
|
|
<div :class="topAreaListWs.length != 0 ? 'bot-area' : 'bot-area1'">
|
|
@@ -64,6 +71,8 @@ let topAreaListWs = reactive<any[]>([])
|
|
|
//瓦斯监控列表数据
|
|
|
let cardListWs = reactive<any[]>([])
|
|
|
|
|
|
+let warnText = ref(0)
|
|
|
+
|
|
|
|
|
|
|
|
|
watch(() => props.listData, (val) => {
|
|
@@ -71,25 +80,35 @@ watch(() => props.listData, (val) => {
|
|
|
topAreaListWs.length = 0
|
|
|
cardListWs.length = 0
|
|
|
if (JSON.stringify(val.common) != '{}') {
|
|
|
+ warnText.value = val.common.pump[0].warnLevel || 0
|
|
|
val.common.pump.forEach(v => {
|
|
|
topAreaListWs.push({
|
|
|
label: v.strinstallpos || '--',
|
|
|
list: [
|
|
|
- { name: '抽采泵流量', val: v.readData.FlowSensor_InputFlux || 0 },
|
|
|
- { name: '报警状态', val: v.warnLevel || 0 },
|
|
|
+ // { name: '抽采泵流量', val: v.readData.FlowSensor_InputFlux || 0 },
|
|
|
+ // { name: '报警状态', val: v.warnLevel || 0 },
|
|
|
+ { name: "输入管道内一氧化碳(ppm)", val: v.coVal || 0 },
|
|
|
+ { name: "管路出口处瓦斯(%CH4)", val: v.gas1 || 0 },
|
|
|
+ { name: '泵站内瓦斯(%CH4)', val: v.gas2 || 0 },
|
|
|
+ { name: "输入管道内瓦斯(%CH4)", val: v.gas3 || 0 },
|
|
|
+ { name: '管道输出瓦斯(%CH4)', val: v.gas4 || 0 },
|
|
|
+ { name: '输入管道内工混流量(m³/min)', val: v.mixedTraffic || 0 },
|
|
|
+ { name: '输入管道内标况流量(m³/min)', val: v.standardTraffic || 0 },
|
|
|
+ { name: '瓦斯抽放量(m³)', val: v.gas4 || 0 },
|
|
|
+
|
|
|
]
|
|
|
})
|
|
|
})
|
|
|
|
|
|
val.common.gas.forEach(el => {
|
|
|
- el.strinstallpos=el.strinstallpos.indexOf('&')==-1 ? el.strinstallpos : el.strinstallpos.substring(0,el.strinstallpos.indexOf('&'))
|
|
|
+ el.strinstallpos = el.strinstallpos.indexOf('&') == -1 ? el.strinstallpos : el.strinstallpos.substring(0, el.strinstallpos.indexOf('&'))
|
|
|
cardListWs.push({
|
|
|
label: '甲烷',
|
|
|
value: el.readData.gasC || '--',
|
|
|
listR: [
|
|
|
{ id: 0, label: '测点类型', value: el.typeName || '--' },
|
|
|
{ id: 1, label: '测点位置', value: el.strinstallpos || '--' },
|
|
|
- { id: 2, label: '数据时间', value: el.readTime || '--' },
|
|
|
+ { id: 2, label: '数据时间', value: el.readData.datetime || '--' },
|
|
|
{ id: 3, label: '测点状态', value: el.warnFlag },
|
|
|
]
|
|
|
})
|
|
@@ -112,94 +131,144 @@ watch(() => props.listData, (val) => {
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
.top-area {
|
|
|
- height: 19%;
|
|
|
- margin: 10px 0px;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
-
|
|
|
- .top-box {
|
|
|
- position: relative;
|
|
|
- width: 330px;
|
|
|
- height: 128px;
|
|
|
- background: url('../../../../../assets/images/fire/top-area.png') no-repeat center;
|
|
|
- background-size: 100% 100%;
|
|
|
-
|
|
|
- .box-label {
|
|
|
- position: absolute;
|
|
|
- left: 50%;
|
|
|
- top: 86px;
|
|
|
- transform: translate(-50%, 0);
|
|
|
- width: 80%;
|
|
|
- display: flex;
|
|
|
- justify-content: center;
|
|
|
- align-items: center;
|
|
|
- word-wrap: break-word;
|
|
|
+ height: 356px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ padding: 10px 15px;
|
|
|
+ // display: flex;
|
|
|
+ // justify-content: space-between;
|
|
|
+ background: url('../../../../../assets/images/fire/bj1.png') no-repeat center;
|
|
|
+ background-size: 100% 100%;
|
|
|
+ box-sizing: border-box;
|
|
|
+
|
|
|
+ .title-t {
|
|
|
+ height: 30px;
|
|
|
+ margin-bottom: 10px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .text-t {
|
|
|
+ font-family: 'douyuFont';
|
|
|
+ font-size: 16px;
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- .box-values {
|
|
|
- position: absolute;
|
|
|
- left: 50%;
|
|
|
- top: 26px;
|
|
|
- transform: translate(-50%, 0);
|
|
|
- width: 84%;
|
|
|
- height: 40px;
|
|
|
+ .top-bt {
|
|
|
+ height: 276px;
|
|
|
+ width: 100%;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+
|
|
|
+ .bt-box {
|
|
|
+ width: 50%;
|
|
|
+ height: 100%;
|
|
|
display: flex;
|
|
|
- justify-content: space-between;
|
|
|
+ justify-content: center;
|
|
|
align-items: center;
|
|
|
- flex-wrap: wrap;
|
|
|
|
|
|
- .value-b {
|
|
|
- width: calc(50% - 10px);
|
|
|
- height: 100%;
|
|
|
- display: flex;
|
|
|
- justify-content: space-between;
|
|
|
- align-items: center;
|
|
|
+ .top-box {
|
|
|
+ position: relative;
|
|
|
+ width: 524px;
|
|
|
+ height: 276px;
|
|
|
+ background: url('../../../../../assets/images/fire/top-area.png') no-repeat center;
|
|
|
+ background-size: 100% 100%;
|
|
|
|
|
|
- span {
|
|
|
- font-size: 14px;
|
|
|
+ .box-label {
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ top: 198px;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ width: 80%;
|
|
|
+ font-family: 'douyuFont';
|
|
|
+ font-size: 24px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ word-wrap: break-word;
|
|
|
+ }
|
|
|
+
|
|
|
+ .box-values {
|
|
|
+ position: absolute;
|
|
|
+ left: 50%;
|
|
|
+ top: 26px;
|
|
|
+ transform: translate(-50%, 0);
|
|
|
+ width: 84%;
|
|
|
+ // height: 26px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+ flex-wrap: wrap;
|
|
|
+
|
|
|
+ .value-b {
|
|
|
+ width: calc(50% - 10px);
|
|
|
+ height: 32px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ span {
|
|
|
+ font-size: 14px;
|
|
|
+
|
|
|
+ &:last-child {
|
|
|
+ font-family: 'douyuFont';
|
|
|
+
|
|
|
+ color: rgb(0, 242, 255);
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- &:last-child {
|
|
|
- font-family: 'douyuFont';
|
|
|
|
|
|
- color: rgb(0, 242, 255);
|
|
|
}
|
|
|
- }
|
|
|
|
|
|
- .box-value {
|
|
|
- color: rgb(145, 230, 9) !important;
|
|
|
}
|
|
|
|
|
|
- .box-value1 {
|
|
|
- color: rgb(0, 242, 255) !important;
|
|
|
- }
|
|
|
|
|
|
- .box-value2 {
|
|
|
- color: #ffff35 !important;
|
|
|
- }
|
|
|
+ }
|
|
|
|
|
|
- .box-value3 {
|
|
|
- color: #ffbe69 !important;
|
|
|
- }
|
|
|
+ .box-value {
|
|
|
+ font-family: 'douyuFont';
|
|
|
+ font-size: 24px;
|
|
|
+ color: rgb(145, 230, 9) !important;
|
|
|
+ }
|
|
|
|
|
|
- .box-value4 {
|
|
|
- color: #ff6f00 !important;
|
|
|
- }
|
|
|
+ .box-value1 {
|
|
|
+ font-family: 'douyuFont';
|
|
|
+ font-size: 24px;
|
|
|
+ color: rgb(0, 242, 255) !important;
|
|
|
+ }
|
|
|
|
|
|
- .box-value5 {
|
|
|
- color: #ff0000 !important;
|
|
|
- }
|
|
|
+ .box-value2 {
|
|
|
+ font-family: 'douyuFont';
|
|
|
+ font-size: 24px;
|
|
|
+ color: #ffff35 !important;
|
|
|
}
|
|
|
|
|
|
- }
|
|
|
+ .box-value3 {
|
|
|
+ font-family: 'douyuFont';
|
|
|
+ font-size: 24px;
|
|
|
+ color: #ffbe69 !important;
|
|
|
+ }
|
|
|
|
|
|
+ .box-value4 {
|
|
|
+ font-family: 'douyuFont';
|
|
|
+ font-size: 24px;
|
|
|
+ color: #ff6f00 !important;
|
|
|
+ }
|
|
|
+
|
|
|
+ .box-value5 {
|
|
|
+ font-family: 'douyuFont';
|
|
|
+ font-size: 24px;
|
|
|
+ color: #ff0000 !important;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.bot-area {
|
|
|
- height: calc(81% - 20px);
|
|
|
+ height: calc(100% - 356px);
|
|
|
padding: 10px 15px 0px 15px;
|
|
|
background: url('../../../../../assets/images/fire/bj1.png') no-repeat center;
|
|
|
background-size: 100% 100%;
|
|
@@ -216,12 +285,6 @@ watch(() => props.listData, (val) => {
|
|
|
font-family: 'douyuFont';
|
|
|
font-size: 16px;
|
|
|
}
|
|
|
-
|
|
|
- // .select-b {
|
|
|
- // display: flex;
|
|
|
- // justify-content: flex-start;
|
|
|
- // align-items: center;
|
|
|
- // }
|
|
|
}
|
|
|
|
|
|
.content-b {
|
|
@@ -270,7 +333,7 @@ watch(() => props.listData, (val) => {
|
|
|
@media screen and (max-width:1920px) {
|
|
|
.item-r {
|
|
|
position: absolute;
|
|
|
- left:132px;
|
|
|
+ left: 132px;
|
|
|
top: 50%;
|
|
|
transform: translate(0, -50%);
|
|
|
height: 128px;
|
|
@@ -429,7 +492,7 @@ watch(() => props.listData, (val) => {
|
|
|
@media screen and (max-width:1920px) {
|
|
|
.item-r {
|
|
|
position: absolute;
|
|
|
- left:132px;
|
|
|
+ left: 132px;
|
|
|
top: 50%;
|
|
|
transform: translate(0, -50%);
|
|
|
height: 128px;
|