|
@@ -46,12 +46,12 @@
|
|
|
<div class="on-line">
|
|
|
<div>
|
|
|
<span class="online lines"></span>
|
|
|
- <span style="font-size: 20px">{{ item.line }}</span
|
|
|
+ <span style="font-size: 16px">{{ item.line }}/{{ item.linelds }}</span
|
|
|
>(个/栋)
|
|
|
</div>
|
|
|
<div>
|
|
|
<span class="offline lines"></span>
|
|
|
- <span style="font-size: 20px">{{ item.offNum }}</span
|
|
|
+ <span style="font-size: 16px">{{ item.offNum }}/{{ item.offNumlds }}</span
|
|
|
>(个/栋)
|
|
|
</div>
|
|
|
</div>
|
|
@@ -63,15 +63,15 @@
|
|
|
<div style="width: 86%">
|
|
|
<div class="inline-bor">
|
|
|
<span style="font-size: 14px">消防控制室人员离岗</span>
|
|
|
- <span> <span class="calc-percent">{{dwData.xfkzszs}}/{{dwData.xfkzsds}}</span>个/栋</span>
|
|
|
+ <span> <span class="calc-percent">{{dwData.xfkzszs || 0}}/{{dwData.xfkzsds || 0}}</span>个/栋</span>
|
|
|
</div>
|
|
|
<div class="on-line">
|
|
|
<div>
|
|
|
- <span class="online lines" style="font-size: 18px">{{dwData.xfkzszxs}}</span
|
|
|
+ <span class="online lines" style="font-size: 18px">{{dwData.xfkzszxs || 0}}/{{dwData.xfkzszxlds || 0}}</span
|
|
|
>(个/栋)
|
|
|
</div>
|
|
|
<div>
|
|
|
- <span class="lines offline" style="font-size: 18px">{{dwData.xfkzsgjs}}</span
|
|
|
+ <span class="lines offline" style="font-size: 18px">{{dwData.xfkzsgjs || 0}}/{{dwData.xfkzsgjlds || 0}}</span
|
|
|
>(个/栋)
|
|
|
</div>
|
|
|
</div>
|
|
@@ -86,60 +86,8 @@ import imgs from "../../../assets/images/Group 1321314604.png";
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- list: [
|
|
|
- // {
|
|
|
- // num: 1542,
|
|
|
- // title: "已完成物联网建筑数(栋)",
|
|
|
- // text: "设备总数",
|
|
|
- // allNum: 1276,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // num: 1542,
|
|
|
- // title: "在线建筑数(栋)",
|
|
|
- // text: "在线",
|
|
|
- // allNum: 1200,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // num: 542,
|
|
|
- // title: "告警建筑数(栋)",
|
|
|
- // text: "报警",
|
|
|
- // allNum: 768,
|
|
|
- // },
|
|
|
- ],
|
|
|
- lineList: [
|
|
|
- // {
|
|
|
- // imgs: imgs,
|
|
|
- // text: "火灾报警主机",
|
|
|
- // allnum: 10731,
|
|
|
- // average: 676,
|
|
|
- // line: 2613,
|
|
|
- // offNum: 613,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // imgs: imgs,
|
|
|
- // text: "水压",
|
|
|
- // allnum: 10731,
|
|
|
- // average: 676,
|
|
|
- // line: 2613,
|
|
|
- // offNum: 613,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // imgs: imgs,
|
|
|
- // text: "点起火灾",
|
|
|
- // allnum: 10731,
|
|
|
- // average: 676,
|
|
|
- // line: 2613,
|
|
|
- // offNum: 613,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // imgs: imgs,
|
|
|
- // text: "生命通道",
|
|
|
- // allnum: 10731,
|
|
|
- // average: 676,
|
|
|
- // line: 2613,
|
|
|
- // offNum: 613,
|
|
|
- // },
|
|
|
- ],
|
|
|
+ list: [],
|
|
|
+ lineList: [],
|
|
|
};
|
|
|
},
|
|
|
props: ["data", "dwData"],
|
|
@@ -151,62 +99,87 @@ export default {
|
|
|
报警: "#FF4B23",
|
|
|
}[text];
|
|
|
},
|
|
|
- },
|
|
|
- created() {
|
|
|
- this.list = [
|
|
|
+ dealData() {
|
|
|
+ this.list = [
|
|
|
{
|
|
|
- num: this.data.wlwlds,
|
|
|
+ num: this.data.wlwlds || 0,
|
|
|
title: "已完成物联网建筑数(栋)",
|
|
|
text: "设备总数",
|
|
|
- allNum: this.data.jrsbzs,
|
|
|
+ allNum: this.data.jrsbzs || 0,
|
|
|
},
|
|
|
{
|
|
|
- num: this.data.zxjzs,
|
|
|
+ num: this.data.zxjzs || 0,
|
|
|
title: "在线建筑数(栋)",
|
|
|
text: "在线",
|
|
|
- allNum: this.data.jrsbzxs,
|
|
|
+ allNum: this.data.jrsbzxs || 0,
|
|
|
},
|
|
|
{
|
|
|
- num: this.data.gjlds,
|
|
|
+ num: this.data.gjlds || 0,
|
|
|
title: "告警建筑数(栋)",
|
|
|
text: "报警",
|
|
|
- allNum: this.data.jrsbgjgs,
|
|
|
+ allNum: this.data.jrsbgjgs || 0,
|
|
|
},
|
|
|
];
|
|
|
this.lineList = [
|
|
|
{
|
|
|
imgs: imgs,
|
|
|
text: "火灾报警主机",
|
|
|
- allnum: this.dwData.hzbjzjzs,
|
|
|
- average: this.dwData.hzbjzjds,
|
|
|
- line: this.dwData.hzbjzjzxs,
|
|
|
- offNum: this.dwData.hzbjzjgjs,
|
|
|
+ allnum: this.dwData.hzbjzjzs || 0,
|
|
|
+ average: this.dwData.hzbjzjds || 0,
|
|
|
+ line: this.dwData.hzbjzjzxs || 0,
|
|
|
+ linelds: this.dwData.hzbjzjzxlds || 0,
|
|
|
+ offNum: this.dwData.hzbjzjgjs || 0,
|
|
|
+ offNumlds: this.dwData.hzbjzjgjlds || 0,
|
|
|
},
|
|
|
{
|
|
|
imgs: imgs,
|
|
|
text: "水压",
|
|
|
- allnum: this.dwData.syds,
|
|
|
- average: this.dwData.syzs,
|
|
|
- line: this.dwData.syzxs,
|
|
|
- offNum: this.dwData.sygjs,
|
|
|
+ allnum: this.dwData.syds || 0,
|
|
|
+ average: this.dwData.syzs || 0,
|
|
|
+ line: this.dwData.syzxs || 0,
|
|
|
+ linelds: this.dwData.syzxlds || 0,
|
|
|
+ offNum: this.dwData.sygjs || 0,
|
|
|
+ offNumlds: this.dwData.sygjlds || 0,
|
|
|
},
|
|
|
{
|
|
|
imgs: imgs,
|
|
|
text: "电器火灾",
|
|
|
- allnum: this.dwData.dqhzds,
|
|
|
- average: this.dwData.dqhzzs,
|
|
|
- line: this.dwData.dqhzzxs,
|
|
|
- offNum: this.dwData.dqhzgjs,
|
|
|
+ allnum: this.dwData.dqhzds || 0,
|
|
|
+ average: this.dwData.dqhzzs || 0,
|
|
|
+ line: this.dwData.dqhzzxs || 0,
|
|
|
+ linelds: this.dwData.dqhzzxlds || 0,
|
|
|
+ offNum: this.dwData.dqhzgjs || 0,
|
|
|
+ offNumlds: this.dwData.dqhzgjlds || 0,
|
|
|
},
|
|
|
{
|
|
|
imgs: imgs,
|
|
|
text: "生命通道",
|
|
|
- allnum: this.dwData.smtdlds,
|
|
|
- average: this.dwData.smtdzs,
|
|
|
- line: this.dwData.smtdzxs,
|
|
|
- offNum: this.dwData.smtdgjs,
|
|
|
+ allnum: this.dwData.smtdlds || 0,
|
|
|
+ average: this.dwData.smtdzs || 0,
|
|
|
+ line: this.dwData.smtdzxs || 0,
|
|
|
+ linelds: this.dwData.smtdzxlds || 0,
|
|
|
+ offNum: this.dwData.smtdgjs || 0,
|
|
|
+ offNumlds: this.dwData.smtdgjlds || 0
|
|
|
},
|
|
|
];
|
|
|
+ }
|
|
|
+ },
|
|
|
+ watch: {
|
|
|
+ data: {
|
|
|
+ handler() {
|
|
|
+ this.dealData()
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ },
|
|
|
+ dwData: {
|
|
|
+ handler() {
|
|
|
+ this.dealData()
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.dealData()
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
@@ -295,13 +268,10 @@ export default {
|
|
|
letter-spacing: 1px;
|
|
|
.alarm-host {
|
|
|
display: inline-block;
|
|
|
- // width: 124px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: space-around;
|
|
|
text-align: center;
|
|
|
- // background: url('../../../assets/images/Group 1321314604.png') no-repeat;
|
|
|
- // background-size: 100% 100%;
|
|
|
}
|
|
|
img {
|
|
|
display: inline-block;
|
|
@@ -313,7 +283,7 @@ export default {
|
|
|
border-bottom: 1px dotted #7789cd;
|
|
|
.calc-percent {
|
|
|
color: #44f1ff;
|
|
|
- font-size: 18px;
|
|
|
+ font-size: 16px;
|
|
|
}
|
|
|
}
|
|
|
}
|