|
@@ -2572,7 +2572,7 @@ export default {
|
|
// this.cancelEventShow();
|
|
// this.cancelEventShow();
|
|
this.eventDialog = false;
|
|
this.eventDialog = false;
|
|
|
|
|
|
- this.$emit("showEventDialog", this.eventCode);
|
|
|
|
|
|
+ this.$emit("showEventDialog", this.eventCode,true);
|
|
},
|
|
},
|
|
showTVWallDiaLog() {
|
|
showTVWallDiaLog() {
|
|
this.initByCameras();
|
|
this.initByCameras();
|
|
@@ -2709,7 +2709,7 @@ export default {
|
|
//事件调整关联预案
|
|
//事件调整关联预案
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success(`预案调整成功!`);
|
|
this.$message.success(`预案调整成功!`);
|
|
- this.refreshEventDialog(this.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,false);
|
|
this.sendGuanLianYuAn = null;
|
|
this.sendGuanLianYuAn = null;
|
|
this.showGuanLianYuAnConfirm = false;
|
|
this.showGuanLianYuAnConfirm = false;
|
|
}
|
|
}
|
|
@@ -3322,7 +3322,7 @@ export default {
|
|
sendTask(param).then((res) => {
|
|
sendTask(param).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
that.$message.success(`联动发起成功!`);
|
|
that.$message.success(`联动发起成功!`);
|
|
- that.refreshEventDialog(that.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,false);
|
|
that.cancelEventConfirm_send();
|
|
that.cancelEventConfirm_send();
|
|
that.showEventConfirm = false;
|
|
that.showEventConfirm = false;
|
|
}
|
|
}
|
|
@@ -3387,7 +3387,7 @@ export default {
|
|
updateCentereventTEventcatalogueStatus(param).then((res) => {
|
|
updateCentereventTEventcatalogueStatus(param).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
that.$message.success(`处理成功!`);
|
|
that.$message.success(`处理成功!`);
|
|
- that.refreshEvent(that.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,false);
|
|
that.cancelEventConfirm_send();
|
|
that.cancelEventConfirm_send();
|
|
that.showEventConfirm_gd = false;
|
|
that.showEventConfirm_gd = false;
|
|
that.$emit("getEventList", that.calendarDay, 10, 1);
|
|
that.$emit("getEventList", that.calendarDay, 10, 1);
|
|
@@ -3395,7 +3395,7 @@ export default {
|
|
} else if (res.code == 304) {
|
|
} else if (res.code == 304) {
|
|
console.log(that.eventCode);
|
|
console.log(that.eventCode);
|
|
this.$message.warning(res.msg);
|
|
this.$message.warning(res.msg);
|
|
- this.showEventDialog(that.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,true);
|
|
//获取事件详情
|
|
//获取事件详情
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -3422,13 +3422,13 @@ export default {
|
|
eventExamine(param).then((res) => {
|
|
eventExamine(param).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
that.$message.success(`处理成功!`);
|
|
that.$message.success(`处理成功!`);
|
|
- that.refreshEvent(that.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,false);
|
|
that.cancelEventConfirm_send();
|
|
that.cancelEventConfirm_send();
|
|
that.showEventConfirm = false;
|
|
that.showEventConfirm = false;
|
|
} else if (res.code == 304) {
|
|
} else if (res.code == 304) {
|
|
console.log(that.eventCode);
|
|
console.log(that.eventCode);
|
|
this.$message.warning(res.msg);
|
|
this.$message.warning(res.msg);
|
|
- this.showEventDialog(that.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,true);
|
|
//获取事件详情
|
|
//获取事件详情
|
|
}
|
|
}
|
|
that.attachExamine = [];
|
|
that.attachExamine = [];
|
|
@@ -3458,13 +3458,13 @@ export default {
|
|
eventExamine(param).then((res) => {
|
|
eventExamine(param).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
that.$message.success(`处理成功!`);
|
|
that.$message.success(`处理成功!`);
|
|
- that.refreshEvent(that.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,false);
|
|
that.cancelEventConfirm_send();
|
|
that.cancelEventConfirm_send();
|
|
that.showEventConfirm = false;
|
|
that.showEventConfirm = false;
|
|
} else if (res.code == 304) {
|
|
} else if (res.code == 304) {
|
|
console.log(that.eventCode);
|
|
console.log(that.eventCode);
|
|
this.$message.warning(res.msg);
|
|
this.$message.warning(res.msg);
|
|
- this.showEventDialog(that.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,true);
|
|
//获取事件详情
|
|
//获取事件详情
|
|
}
|
|
}
|
|
that.attachExamine = [];
|
|
that.attachExamine = [];
|
|
@@ -3475,7 +3475,7 @@ export default {
|
|
eventHandling(that.eventId, that.eventCode).then((res) => {
|
|
eventHandling(that.eventId, that.eventCode).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
that.$message.success(`处理成功!`);
|
|
that.$message.success(`处理成功!`);
|
|
- that.refreshEvent(that.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,false);
|
|
that.cancelEventConfirm_send();
|
|
that.cancelEventConfirm_send();
|
|
that.showEventConfirm = false;
|
|
that.showEventConfirm = false;
|
|
}
|
|
}
|
|
@@ -3527,11 +3527,12 @@ export default {
|
|
this.eventDialog = false;
|
|
this.eventDialog = false;
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- that.refreshEvent(that.eventCode);
|
|
|
|
|
|
+ //that.refreshEvent(that.eventCode);
|
|
|
|
+ this.showEventDialog(that.eventCode,false);
|
|
} else if (res.code == 304) {
|
|
} else if (res.code == 304) {
|
|
console.log(that.eventCode);
|
|
console.log(that.eventCode);
|
|
this.$message.warning(res.msg);
|
|
this.$message.warning(res.msg);
|
|
- this.showEventDialog(that.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,true);
|
|
//获取事件详情
|
|
//获取事件详情
|
|
}
|
|
}
|
|
});
|
|
});
|
|
@@ -3576,12 +3577,15 @@ export default {
|
|
this.eventLogList = [];
|
|
this.eventLogList = [];
|
|
this.mapToolShow = false;
|
|
this.mapToolShow = false;
|
|
},
|
|
},
|
|
- showEventDialog(eventCode) {
|
|
|
|
- this.mapToolShow=false
|
|
|
|
- this.mapToolCheckItem = [];
|
|
|
|
- this.mapToolCheckAll=false
|
|
|
|
- this.mapToolShowBH=false,
|
|
|
|
- this.fireControlViewList();
|
|
|
|
|
|
+ showEventDialog(eventCode,index) {
|
|
|
|
+ if(index)
|
|
|
|
+ {
|
|
|
|
+ this.mapToolShow=false
|
|
|
|
+ this.mapToolCheckItem = [];
|
|
|
|
+ this.mapToolCheckAll=false
|
|
|
|
+ this.mapToolShowBH=false,
|
|
|
|
+ this.fireControlViewList();
|
|
|
|
+ }
|
|
this.eventCode = eventCode;
|
|
this.eventCode = eventCode;
|
|
let that = this;
|
|
let that = this;
|
|
//获取事件详情
|
|
//获取事件详情
|
|
@@ -3705,130 +3709,6 @@ export default {
|
|
}, 2000);
|
|
}, 2000);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- refreshEvent(eventCode) {
|
|
|
|
- this.eventCode = eventCode;
|
|
|
|
- let that = this;
|
|
|
|
- //刷新--事件详情
|
|
|
|
- getEventDetail({
|
|
|
|
- eventCode: eventCode,
|
|
|
|
- }).then((res) => {
|
|
|
|
- let markersMapList = [];
|
|
|
|
- that.eventDialog = true;
|
|
|
|
- that.eventLogList = res.data.eventlog;
|
|
|
|
- that.visuForestCloudYuAnBo = res.data.visuForestCloudYuAnBo; //应急预案
|
|
|
|
- that.address = res.data.catalogue.address;
|
|
|
|
- that.eventStatusValue = res.data.catalogue.eventStatusValue;
|
|
|
|
- that.eventType = res.data.catalogue.eventType;
|
|
|
|
- that.statusFlag = res.data.catalogue.statusFlag;
|
|
|
|
- that.dataStatus = res.data.catalogue.dataStatus;
|
|
|
|
- that.deptId = res.data.catalogue.deptId;
|
|
|
|
- that.eventId = res.data.catalogue.id;
|
|
|
|
- that.latitude = res.data.catalogue.latitude;
|
|
|
|
- that.longitude = res.data.catalogue.longitude;
|
|
|
|
- that.eventName = res.data.catalogue.eventName;
|
|
|
|
- that.version = res.data.catalogue.version;
|
|
|
|
- that.eventTypeXl = res.data.catalogue.eventTypeXl;
|
|
|
|
- that.isExamine = res.data.catalogue.isExamine;
|
|
|
|
- let markersMap = {
|
|
|
|
- lng: 124.59,
|
|
|
|
- lat: 43.02,
|
|
|
|
- icon: "marker",
|
|
|
|
- bindPopupHtml: "",
|
|
|
|
- click: "",
|
|
|
|
- parameter: "",
|
|
|
|
- keepBindPopup: false,
|
|
|
|
- isAggregation: true,
|
|
|
|
- radius: 0,
|
|
|
|
- };
|
|
|
|
- if (
|
|
|
|
- res.data.catalogue.eventStatusValue == "forest_event_status_1" &&
|
|
|
|
- res.data.catalogue.urgeCount == 0
|
|
|
|
- ) {
|
|
|
|
- markersMap.icon = "sj-icon-map-xinshangbao";
|
|
|
|
- }
|
|
|
|
- if (
|
|
|
|
- res.data.catalogue.eventStatusValue == "forest_event_status_1" &&
|
|
|
|
- res.data.catalogue.urgeCount > 0
|
|
|
|
- ) {
|
|
|
|
- markersMap.icon = "sj-icon-map-cuiban";
|
|
|
|
- } else if (
|
|
|
|
- res.data.catalogue.eventStatusValue == "forest_event_status_2"
|
|
|
|
- ) {
|
|
|
|
- markersMap.icon = "sj-icon-map-qianshou";
|
|
|
|
- } else if (
|
|
|
|
- res.data.catalogue.eventStatusValue == "forest_event_status_5"
|
|
|
|
- ) {
|
|
|
|
- markersMap.icon = "sj-icon-map-banjie";
|
|
|
|
- } else if (
|
|
|
|
- res.data.catalogue.eventStatusValue == "forest_event_status_6"
|
|
|
|
- ) {
|
|
|
|
- markersMap.icon = "sj-icon-map-guidang";
|
|
|
|
- } else if (
|
|
|
|
- res.data.catalogue.eventStatusValue == "forest_event_status_7"
|
|
|
|
- ) {
|
|
|
|
- markersMap.icon = "sj-icon-map-queren";
|
|
|
|
- }
|
|
|
|
- markersMap.lng = res.data.catalogue.longitude;
|
|
|
|
- markersMap.lat = res.data.catalogue.latitude;
|
|
|
|
- if (
|
|
|
|
- res.data.eventdetail != null &&
|
|
|
|
- res.data.eventdetail.length > 0 &&
|
|
|
|
- res.data.eventdetail[0].fireRadius != null &&
|
|
|
|
- res.data.eventdetail[0].fireRadius != "" &&
|
|
|
|
- res.data.eventdetail[0].fireRadius > 0
|
|
|
|
- ) {
|
|
|
|
- markersMap.radius = res.data.eventdetail[0].fireRadius;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- markersMapList.push(markersMap);
|
|
|
|
- if (res.data.centermonitorTCamera != null) {
|
|
|
|
- that.cameraCode = res.data.centermonitorTCamera.id;
|
|
|
|
- if(res.data.centermonitorTCamera.longitude != null && res.data.centermonitorTCamera.latitude != null){
|
|
|
|
- that.centermonitorTCamera = res.data.centermonitorTCamera;
|
|
|
|
- let markersMap = {
|
|
|
|
- lng: 124.59,
|
|
|
|
- lat: 43.02,
|
|
|
|
- icon: "camera",
|
|
|
|
- bindPopupHtml: "",
|
|
|
|
- click: "preview",
|
|
|
|
- parameter: {
|
|
|
|
- code: res.data.centermonitorTCamera.cameraCode,
|
|
|
|
- type: res.data.centermonitorTCamera.cameraFactory,
|
|
|
|
- name: res.data.centermonitorTCamera.cameraName,
|
|
|
|
- },
|
|
|
|
- keepBindPopup: false,
|
|
|
|
- isAggregation: true,
|
|
|
|
- radius: 0,
|
|
|
|
- };
|
|
|
|
- markersMap.bindPopupHtml =
|
|
|
|
- '<div class="map-tip">' +
|
|
|
|
- "<span>" +
|
|
|
|
- ' <div class="d-l-con">' +
|
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
|
- " <h4>摄像头名称:" +
|
|
|
|
- res.data.centermonitorTCamera.cameraName +
|
|
|
|
- "</h4>" +
|
|
|
|
- " </div>" +
|
|
|
|
- " </div>" +
|
|
|
|
- " </span>" +
|
|
|
|
- "<span>" +
|
|
|
|
- "</div>";
|
|
|
|
- markersMap.lng = res.data.centermonitorTCamera.longitude;
|
|
|
|
- markersMap.lat = res.data.centermonitorTCamera.latitude;
|
|
|
|
- markersMapList.push(markersMap);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- setTimeout(() => {
|
|
|
|
- that.$refs.supermapDialog.clearM(false);
|
|
|
|
- that.$refs.supermapDialog.clearM(true);
|
|
|
|
- that.$refs.supermapDialog.setMarkersRadius(markersMapList);
|
|
|
|
- that.$refs.supermapDialog.dropLocation10(
|
|
|
|
- res.data.catalogue.latitude,
|
|
|
|
- res.data.catalogue.longitude
|
|
|
|
- );
|
|
|
|
- }, 2000);
|
|
|
|
- });
|
|
|
|
- },
|
|
|
|
refreshEventDialog(eventCode) {
|
|
refreshEventDialog(eventCode) {
|
|
//刷新--事件日志12
|
|
//刷新--事件日志12
|
|
getEventDetail({
|
|
getEventDetail({
|
|
@@ -3883,7 +3763,7 @@ export default {
|
|
}).then((res) => {
|
|
}).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
this.$message.success(`截图上传成功!`);
|
|
this.$message.success(`截图上传成功!`);
|
|
- this.refreshEventDialog(this.eventCode);
|
|
|
|
|
|
+ this.showEventDialog(that.eventCode,false);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|