|
|
@ -319,14 +319,16 @@ export const eventMap = { |
|
|
|
// 感知事件
|
|
|
|
async "事件专题/感知事件"(item, filterData, isDefault, cb) { |
|
|
|
let loadingMessage; |
|
|
|
if (!isDefault) { |
|
|
|
loadingMessage = Message.info({ |
|
|
|
message: `${item.title}位置加载中...`, |
|
|
|
duration: 0, |
|
|
|
customClass: "loading-message", |
|
|
|
iconClass: "el-icon-loading", |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
loadingMessage = Message.info({ |
|
|
|
message: `${item.title}位置${!isDefault?'加载':'更新'}中...`, |
|
|
|
duration: 0, |
|
|
|
customClass: "loading-message", |
|
|
|
iconClass: "el-icon-loading", |
|
|
|
}); |
|
|
|
// if (!isDefault) {
|
|
|
|
|
|
|
|
// }
|
|
|
|
const warningState = 1; |
|
|
|
const data = await getPerceiveEventList({ warningState }, filterData) |
|
|
|
.then(async (data) => { |
|
|
@ -337,7 +339,6 @@ export const eventMap = { |
|
|
|
|
|
|
|
loadingMessage?.close(); |
|
|
|
if (!data) return this.emitter.emit("selectedCompleted", item); |
|
|
|
|
|
|
|
if (!data?.length && !isDefault) { |
|
|
|
this.emitter.emit("selectedCompleted", item); |
|
|
|
return Message.warning(`没有${item.title}数据!`); |
|
|
|