地图新增信息
parent
153e4a996b
commit
8455ef8231
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="renyuan">
|
||||
<div v-if="false" class="block1">
|
||||
<div class="block1">
|
||||
<layout-title title="定位基础信息"/>
|
||||
<div class="options">
|
||||
<div v-for="(item,index) in block1OptionsList" :key="index" class="option">
|
||||
|
@ -10,7 +10,6 @@
|
|||
<div class="info">
|
||||
<div class="label">{{ item.title }}</div>
|
||||
<div class="text">{{ item.count }}</div>
|
||||
<!-- <div class="text"><count-to :start-val="0" :end-val="item.count" :duration="3600"/></div>-->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -156,7 +155,13 @@ export default {
|
|||
facount: '-'
|
||||
}
|
||||
],
|
||||
block4List: []
|
||||
block4List: [],
|
||||
message: {
|
||||
onlineDeviceNum: '',
|
||||
UwbBQ: '',
|
||||
UwbJiZhan: '',
|
||||
tklyr: ''
|
||||
}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
@ -168,10 +173,37 @@ export default {
|
|||
},
|
||||
getData() {
|
||||
requestFN(
|
||||
'/map/getAlarmList',
|
||||
'/map/getAllDwMessage',
|
||||
{ corpId: this.corpInfoId }
|
||||
).then((data) => {
|
||||
this.block4List = data.list
|
||||
this.block4List = data.alarmList.list
|
||||
this.block1OptionsList = [
|
||||
{
|
||||
title: '在线设备数',
|
||||
img: require('../../../assets/map/renyuan/img1ico1.png'),
|
||||
count: data.orthermessage.onlineDeviceNum
|
||||
},
|
||||
{
|
||||
title: '在线人员',
|
||||
img: require('../../../assets/map/renyuan/img1ico2.png'),
|
||||
count: data.orthermessage.infoList.UwbBQ.num
|
||||
},
|
||||
{
|
||||
title: '在线基站数',
|
||||
img: require('../../../assets/map/renyuan/img1ico3.png'),
|
||||
count: data.orthermessage.infoList.UwbJiZhan.num
|
||||
},
|
||||
{
|
||||
title: '在线摄像头数',
|
||||
img: require('../../../assets/map/renyuan/img1ico4.png'),
|
||||
count: data.orthermessage.infoList.HKcamera.num
|
||||
},
|
||||
{
|
||||
title: '在线报警设备数',
|
||||
img: require('../../../assets/map/renyuan/img1ico5.png'),
|
||||
count: data.orthermessage.infoList.tklyr.num
|
||||
}
|
||||
]
|
||||
}).catch((e) => {
|
||||
this.$message.error(e)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue