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