|
@@ -1541,6 +1541,34 @@ export default {
|
|
|
that.$refs.supermapDialog.dropLocation(res.data.catalogue[0].latitude, res.data.catalogue[0].longitude)
|
|
|
}, 2000)
|
|
|
}
|
|
|
+ if (res.data.centermonitorTCamera != null) {
|
|
|
+ let markersMap = {
|
|
|
+ lng: 124.59,
|
|
|
+ lat: 43.02,
|
|
|
+ icon: 'camera',
|
|
|
+ bindPopupHtml: '',
|
|
|
+ click: '',
|
|
|
+ parameter: '',
|
|
|
+ keepBindPopup: false,
|
|
|
+ isAggregation: false,
|
|
|
+ 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
|
|
|
+ setTimeout(() => {
|
|
|
+ that.$refs.supermapDialog.setMarkers([markersMap])
|
|
|
+ }, 2000)
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
refreshEvent(eventCode) {
|
|
@@ -1641,7 +1669,7 @@ export default {
|
|
|
},
|
|
|
uploadBase64(dataBase64) {
|
|
|
//事件详情截图直接上传日志
|
|
|
- uploadBase64({ eventCode: this.eventCode,base64:dataBase64 }).then(res => {
|
|
|
+ uploadBase64({ eventCode: this.eventCode, base64: dataBase64 }).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.success(`截图上传成功!`)
|
|
|
this.refreshEventDialog(this.eventCode)
|