|
@@ -2849,7 +2849,6 @@ export default {
|
|
let param = {
|
|
let param = {
|
|
longitude: this.longitude,
|
|
longitude: this.longitude,
|
|
latitude: this.latitude,
|
|
latitude: this.latitude,
|
|
- type: type,
|
|
|
|
radius: this.radius,
|
|
radius: this.radius,
|
|
};
|
|
};
|
|
listResourceByWz(param).then((res) => {
|
|
listResourceByWz(param).then((res) => {
|
|
@@ -2867,108 +2866,82 @@ export default {
|
|
keepBindPopup: false,
|
|
keepBindPopup: false,
|
|
isAggregation: true,
|
|
isAggregation: true,
|
|
};
|
|
};
|
|
- if (type == "qsk") {
|
|
|
|
- markersMap.icon = "sj-icon-centerdata-t-forest-waterintake";
|
|
|
|
- } else if (type == "sh") {
|
|
|
|
- markersMap.icon = "sj-icon-centerdata-t-forest-watercrane";
|
|
|
|
- } else if (type == "xfs") {
|
|
|
|
- markersMap.icon = "sj-icon-centerdata-t-forest-firehydrant";
|
|
|
|
- } else if (type == "qjd") {
|
|
|
|
- markersMap.icon = "sj-icon-landing";
|
|
|
|
- } else if (type == "jcz") {
|
|
|
|
- markersMap.icon = "sj-icon-checkpoint";
|
|
|
|
- } else if (type == "fhd") {
|
|
|
|
- markersMap.icon = "sj-icon-fireteam";
|
|
|
|
- } else if (type == "zdqy") {
|
|
|
|
- markersMap.icon = "sj-icon-keyAreas";
|
|
|
|
- } else if (type == "sxt") {
|
|
|
|
- if(res.data[i].cameraUse==1)
|
|
|
|
- {
|
|
|
|
- if(res.data[i].workingStatus==0)
|
|
|
|
- {
|
|
|
|
- markersMap.icon='sj-icon-map-centerdata-slmonitor'
|
|
|
|
- markersMap.click='preview'
|
|
|
|
- }else if (res.data[i].workingStatus==1)
|
|
|
|
- {
|
|
|
|
- markersMap.icon='sj-icon-map-not-centerdata-slmonitor'
|
|
|
|
- markersMap.click=''
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- } else if (res.data[i].cameraUse == 2){
|
|
|
|
- if(res.data[i].workingStatus==0)
|
|
|
|
- {
|
|
|
|
- markersMap.icon = "camera";
|
|
|
|
- markersMap.click='preview'
|
|
|
|
- }else if (res.data[i].workingStatus==1)
|
|
|
|
- {
|
|
|
|
- markersMap.icon = "camera-not";
|
|
|
|
- markersMap.click=''
|
|
|
|
- }
|
|
|
|
- } else if (res.data[i].cameraUse == 3) {
|
|
|
|
- if(res.data[i].workingStatus==0)
|
|
|
|
- {
|
|
|
|
- markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
|
|
|
|
- markersMap.click='preview'
|
|
|
|
- }else if (res.data[i].workingStatus==1)
|
|
|
|
- {
|
|
|
|
- markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor-traffic'
|
|
|
|
- markersMap.click=''
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
+ if (res.data[i].cameraUse == 1) {
|
|
|
|
+ if (res.data[i].workingStatus == 0) {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-slmonitor'
|
|
|
|
+ markersMap.click = 'preview'
|
|
|
|
+ } else if (res.data[i].workingStatus == 1) {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor'
|
|
|
|
+ markersMap.click = ''
|
|
}
|
|
}
|
|
- else if (res.data[i].cameraUse == 4) {
|
|
|
|
- if(res.data[i].workingStatus==0)
|
|
|
|
- {
|
|
|
|
- markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
|
|
|
|
- markersMap.click='preview'
|
|
|
|
- }else if (res.data[i].workingStatus==1)
|
|
|
|
- {
|
|
|
|
- markersMap.icon = 'sj-icon-map-not-centerdata-sand-quarry-camera'
|
|
|
|
- markersMap.click=''
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
+ } else if (res.data[i].cameraUse == 2) {
|
|
|
|
+ if (res.data[i].workingStatus == 0) {
|
|
|
|
+ markersMap.icon = "camera";
|
|
|
|
+ markersMap.click = 'preview'
|
|
|
|
+ } else if (res.data[i].workingStatus == 1) {
|
|
|
|
+ markersMap.icon = "camera-not";
|
|
|
|
+ markersMap.click = ''
|
|
}
|
|
}
|
|
- else if (res.data[i].cameraUse == 5) {
|
|
|
|
- if (res.data[i].workingStatus == 0) {
|
|
|
|
- markersMap.icon = 'sj-icon-map-centerdata-t-hydraulic-reservoir-camera'
|
|
|
|
- markersMap.click = 'preview'
|
|
|
|
- } else if (res.data[i].workingStatus == 1) {
|
|
|
|
- markersMap.icon = 'sj-icon-map-not-centerdata-t-hydraulic-reservoir-camera'
|
|
|
|
- markersMap.click = ''
|
|
|
|
- }
|
|
|
|
|
|
+ } else if (res.data[i].cameraUse == 3) {
|
|
|
|
+ if (res.data[i].workingStatus == 0) {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
|
|
|
|
+ markersMap.click = 'preview'
|
|
|
|
+ } else if (res.data[i].workingStatus == 1) {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor-traffic'
|
|
|
|
+ markersMap.click = ''
|
|
}
|
|
}
|
|
- if (res.data[i].cameraCode != null) {
|
|
|
|
- //markersMap.click = "preview";
|
|
|
|
- // markersMap.parameter = res.data[i].cameraCode
|
|
|
|
- markersMap.parameter = {
|
|
|
|
- code: res.data[i].cameraCode,
|
|
|
|
- type: res.data[i].cameraFactory
|
|
|
|
- ? res.data[i].cameraFactory
|
|
|
|
- : 1,
|
|
|
|
- name: res.data[i].cameraName,
|
|
|
|
- };
|
|
|
|
|
|
+
|
|
|
|
+ } else if (res.data[i].cameraUse == 4) {
|
|
|
|
+ if (res.data[i].workingStatus == 0) {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
|
|
|
|
+ markersMap.click = 'preview'
|
|
|
|
+ } else if (res.data[i].workingStatus == 1) {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-sand-quarry-camera'
|
|
|
|
+ markersMap.click = ''
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ } else if (res.data[i].cameraUse == 5) {
|
|
|
|
+ if (res.data[i].workingStatus == 0) {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-t-hydraulic-reservoir-camera'
|
|
|
|
+ markersMap.click = 'preview'
|
|
|
|
+ } else if (res.data[i].workingStatus == 1) {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-t-hydraulic-reservoir-camera'
|
|
|
|
+ markersMap.click = ''
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- markersMap.lng = res.data[i].longitude;
|
|
|
|
- markersMap.lat = res.data[i].latitude;
|
|
|
|
- markersMap.bindPopupHtml =
|
|
|
|
- '<div class="map-tip">' +
|
|
|
|
- "<span>" +
|
|
|
|
- ' <div class="d-l-con">' +
|
|
|
|
- ' <div class="d-l-l-text">' +
|
|
|
|
- " <h4>资源名称:" +
|
|
|
|
- res.data[i].cameraName +
|
|
|
|
- "</h4>" +
|
|
|
|
- " </div>" +
|
|
|
|
- " </div>" +
|
|
|
|
- " </span>" +
|
|
|
|
- "</div>";
|
|
|
|
- markersList.push(markersMap);
|
|
|
|
- }
|
|
|
|
|
|
+ if (res.data[i].cameraCode != null) {
|
|
|
|
+ //markersMap.click = "preview";
|
|
|
|
+ // markersMap.parameter = res.data[i].cameraCode
|
|
|
|
+ markersMap.parameter = {
|
|
|
|
+ code: res.data[i].cameraCode,
|
|
|
|
+ type: res.data[i].cameraFactory
|
|
|
|
+ ? res.data[i].cameraFactory
|
|
|
|
+ : 1,
|
|
|
|
+ name: res.data[i].cameraName,
|
|
|
|
+ };
|
|
|
|
+ }
|
|
|
|
+ markersMap.lng = res.data[i].longitude;
|
|
|
|
+ markersMap.lat = res.data[i].latitude;
|
|
|
|
+ markersMap.bindPopupHtml =
|
|
|
|
+ '<div class="map-tip">' +
|
|
|
|
+ "<span>" +
|
|
|
|
+ ' <div class="d-l-con">' +
|
|
|
|
+ ' <div class="d-l-l-text">' +
|
|
|
|
+ " <h4>资源名称:" +
|
|
|
|
+ res.data[i].cameraName +
|
|
|
|
+ "</h4>" +
|
|
|
|
+ " </div>" +
|
|
|
|
+ " </div>" +
|
|
|
|
+ " </span>" +
|
|
|
|
+ "</div>";
|
|
|
|
+ markersList.push(markersMap);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
this.$refs.supermapDialog.setMarkersByType(markersList, type);
|
|
this.$refs.supermapDialog.setMarkersByType(markersList, type);
|
|
}, 1000);
|
|
}, 1000);
|
|
- }
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -3516,6 +3489,10 @@ export default {
|
|
reserve: that.sendGuanLianYuAn,
|
|
reserve: that.sendGuanLianYuAn,
|
|
address: that.address,
|
|
address: that.address,
|
|
};
|
|
};
|
|
|
|
+ if (param.phones.length!=0)
|
|
|
|
+ {
|
|
|
|
+ param.message='有火险事件需要处理请查收'
|
|
|
|
+ }
|
|
updateCentereventTEventcatalogueStatus(param).then((res) => {
|
|
updateCentereventTEventcatalogueStatus(param).then((res) => {
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
that.$message.success(`处理成功!`);
|
|
that.$message.success(`处理成功!`);
|