|
@@ -69,7 +69,9 @@ export default {
|
|
// 刷新时间
|
|
// 刷新时间
|
|
refreshTime: 10 * 1000,
|
|
refreshTime: 10 * 1000,
|
|
requestInProgress: false,
|
|
requestInProgress: false,
|
|
- editUser: false
|
|
|
|
|
|
+ editUser: false,
|
|
|
|
+ // 弹窗告警信息
|
|
|
|
+ notify: null,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -208,15 +210,20 @@ export default {
|
|
console.log(`已经在处理该火情信息`)
|
|
console.log(`已经在处理该火情信息`)
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- this.$notify.error({
|
|
|
|
|
|
+ let notifyText = `检测到${this.showFireAlarm.length}条火情告警, 请立即处理`
|
|
|
|
+ if (this.notify != null){
|
|
|
|
+ this.notify.close();
|
|
|
|
+ }
|
|
|
|
+ let notify = this.$notify.error({
|
|
title: '火情告警',
|
|
title: '火情告警',
|
|
dangerouslyUseHTMLString: true,
|
|
dangerouslyUseHTMLString: true,
|
|
- message: `<span>检测到火情信息, 请立即处理</span> <br/>
|
|
|
|
|
|
+ message: `<span>${notifyText}</span> <br/>
|
|
<a href="${fireUrl}" target="_blank">
|
|
<a href="${fireUrl}" target="_blank">
|
|
<span>立即查看</span>
|
|
<span>立即查看</span>
|
|
</a>`,
|
|
</a>`,
|
|
duration: 0,
|
|
duration: 0,
|
|
});
|
|
});
|
|
|
|
+ this.notify = notify;
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|