|
@@ -102,7 +102,28 @@
|
|
|
clearInterval(this.refreshTimer);
|
|
|
},
|
|
|
alarmd(bi) {
|
|
|
+ let dataList = []
|
|
|
let warnList = []
|
|
|
+ let date1 = {
|
|
|
+ type: 1,
|
|
|
+ alertText :[]
|
|
|
+ }
|
|
|
+ let date2 = {
|
|
|
+ type: 2,
|
|
|
+ alertText :[]
|
|
|
+ }
|
|
|
+ let date3 = {
|
|
|
+ type: 3,
|
|
|
+ alertText :[]
|
|
|
+ }
|
|
|
+ let date4 = {
|
|
|
+ type: 4,
|
|
|
+ alertText :[]
|
|
|
+ }
|
|
|
+ let date5 = {
|
|
|
+ type: 5,
|
|
|
+ alertText :[]
|
|
|
+ }
|
|
|
bi.forEach(item => {
|
|
|
let data = {}
|
|
|
data.alertText = item.alertText
|
|
@@ -122,7 +143,31 @@
|
|
|
}
|
|
|
data.type ? warnList.push(data) : ''
|
|
|
})
|
|
|
- this.warnList = warnList
|
|
|
+ warnList.forEach(item =>{
|
|
|
+ switch (item.type) {
|
|
|
+ case 1:
|
|
|
+ date1.alertText.push(item.alertText)
|
|
|
+ break;
|
|
|
+ case 2:
|
|
|
+ date2.alertText.push(item.alertText)
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ date3.alertText.push(item.alertText)
|
|
|
+ break;
|
|
|
+ case 4:
|
|
|
+ date4.alertText.push(item.alertText)
|
|
|
+ break;
|
|
|
+ case 5:
|
|
|
+ date5.alertText.push(item.alertText)
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ dataList.push(date1)
|
|
|
+ dataList.push(date2)
|
|
|
+ dataList.push(date3)
|
|
|
+ dataList.push(date4)
|
|
|
+ dataList.push(date5)
|
|
|
+ this.warnList = dataList
|
|
|
},
|
|
|
/* 刷新数据 */
|
|
|
refreshData() {
|
|
@@ -213,25 +258,30 @@
|
|
|
position: absolute;
|
|
|
top: 143px;
|
|
|
left: 119px;
|
|
|
+ z-index: 999;
|
|
|
}
|
|
|
.worning2{
|
|
|
position: absolute;
|
|
|
top: 210px;
|
|
|
left: 282px;
|
|
|
+ z-index: 99;
|
|
|
}
|
|
|
.worning3{
|
|
|
position: absolute;
|
|
|
top: 219px;
|
|
|
left: 348px;
|
|
|
+ z-index: 0;
|
|
|
}
|
|
|
.worning4{
|
|
|
position: absolute;
|
|
|
top: 273px;
|
|
|
left: 296px;
|
|
|
+ z-index: 0;
|
|
|
}
|
|
|
.worning5{
|
|
|
position: absolute;
|
|
|
top: 287px;
|
|
|
left: 252px;
|
|
|
+ z-index: 0;
|
|
|
}
|
|
|
</style>
|