|
@@ -2121,6 +2121,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ centermonitorTCamera:null,
|
|
//地图tool开关
|
|
//地图tool开关
|
|
mapToolShow: false,
|
|
mapToolShow: false,
|
|
mapToolCheckAll: false,
|
|
mapToolCheckAll: false,
|
|
@@ -2632,17 +2633,56 @@ export default {
|
|
this.$refs.bottomMenu.showChangChild = false;
|
|
this.$refs.bottomMenu.showChangChild = false;
|
|
},
|
|
},
|
|
initByCameras() {
|
|
initByCameras() {
|
|
- const params = Object.assign({});
|
|
|
|
- params.longitude = this.longitude;
|
|
|
|
- params.latitude = this.latitude;
|
|
|
|
- params.type = "8";
|
|
|
|
- initByCameras(params).then((res) => {
|
|
|
|
- this.$refs.TVWall.showTVWall1(this.longitude, this.latitude, res.data);
|
|
|
|
- this.$refs.bottomMenu.showMeasure = false;
|
|
|
|
- this.$refs.bottomMenu.showChild = false;
|
|
|
|
- this.$refs.bottomMenu.showBanChild = false;
|
|
|
|
- this.$refs.bottomMenu.showChangChild = false;
|
|
|
|
- });
|
|
|
|
|
|
+ // const params = Object.assign({})
|
|
|
|
+ // params.longitude = this.longitude;
|
|
|
|
+ // params.latitude = this.latitude;
|
|
|
|
+ // params.type = '8'
|
|
|
|
+ // initByCameras(params).then(res => {
|
|
|
|
+ // this.$refs.TVWall.showTVWall1(this.longitude, this.latitude, res.data);
|
|
|
|
+ // this.$refs.bottomMenu.showMeasure = false
|
|
|
|
+ // this.$refs.bottomMenu.showChild = false
|
|
|
|
+ // this.$refs.bottomMenu.showBanChild = false
|
|
|
|
+ // this.$refs.bottomMenu.showChangChild = false
|
|
|
|
+ // })
|
|
|
|
+ let that = this
|
|
|
|
+ if(that.centermonitorTCamera == null){
|
|
|
|
+ this.$message.warning("当前事件无绑定摄像头")
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ let tvListJson = [{
|
|
|
|
+ "switchTab": "2",
|
|
|
|
+ "treeLabels": [{
|
|
|
|
+ "id": null,
|
|
|
|
+ "labelCode": "999",
|
|
|
|
+ "labelName": "电视墙",
|
|
|
|
+ "cameraType": null,
|
|
|
|
+ "parentLabelCode": ""
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "id": "spcamera00010",
|
|
|
|
+ "labelCode": that.centermonitorTCamera.cameraCode,
|
|
|
|
+ "labelName": that.centermonitorTCamera.cameraName,
|
|
|
|
+ "cameraType": that.centermonitorTCamera.cameraType,
|
|
|
|
+ "parentLabelCode": "999"
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "labelChannels": [{
|
|
|
|
+ "labelCode": that.centermonitorTCamera.cameraCode,
|
|
|
|
+ "channelDates": [{
|
|
|
|
+ "channelCode": that.centermonitorTCamera.cameraCode,
|
|
|
|
+ "channelName": that.centermonitorTCamera.cameraName,
|
|
|
|
+ "channelSn": null,
|
|
|
|
+ "cameraType": that.centermonitorTCamera.cameraType,
|
|
|
|
+ "online": "1",
|
|
|
|
+ "cameraCode": null
|
|
|
|
+ }]
|
|
|
|
+ }]
|
|
|
|
+ }]
|
|
|
|
+ this.$refs.TVWall.showTVWall1(this.longitude, this.latitude, tvListJson);
|
|
|
|
+ this.$refs.bottomMenu.showMeasure = false
|
|
|
|
+ this.$refs.bottomMenu.showChild = false
|
|
|
|
+ this.$refs.bottomMenu.showBanChild = false
|
|
|
|
+ this.$refs.bottomMenu.showChangChild = false
|
|
},
|
|
},
|
|
showUpdateYjYuAn() {
|
|
showUpdateYjYuAn() {
|
|
listYuAn().then((res) => {
|
|
listYuAn().then((res) => {
|
|
@@ -2857,19 +2897,49 @@ export default {
|
|
markersMap.icon = "sj-icon-keyAreas";
|
|
markersMap.icon = "sj-icon-keyAreas";
|
|
} else if (type == "sxt") {
|
|
} else if (type == "sxt") {
|
|
if (res.data[i].cameraUse == 1) {
|
|
if (res.data[i].cameraUse == 1) {
|
|
- markersMap.icon = 'sj-icon-map-centerdata-slmonitor'
|
|
|
|
|
|
+ if (res.data[i].workingStatus == '0') {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-slmonitor'
|
|
|
|
+ markersMap.click='preview'
|
|
|
|
+ } else {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
else if (res.data[i].cameraUse == 2) {
|
|
else if (res.data[i].cameraUse == 2) {
|
|
- markersMap.icon = 'camera'
|
|
|
|
|
|
+ if (res.data[i].workingStatus == '0') {
|
|
|
|
+ markersMap.icon = 'camera'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ } else {
|
|
|
|
+ markersMap.icon = 'camera-not'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
else if (res.data[i].cameraUse == 3) {
|
|
else if (res.data[i].cameraUse == 3) {
|
|
- markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
|
|
|
|
|
|
+ if (res.data[i].workingStatus == '0') {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-slmonitor-traffic'
|
|
|
|
+ markersMap.click='preview'
|
|
|
|
+ } else {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-slmonitor-traffic'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
else if (res.data[i].cameraUse == 5) {
|
|
else if (res.data[i].cameraUse == 5) {
|
|
- markersMap.icon = 'sj-icon-map-centerdata-river_camera'
|
|
|
|
|
|
+ if (res.data[i].workingStatus == '0') {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-river_camera'
|
|
|
|
+ markersMap.click='preview'
|
|
|
|
+ } else {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-river_camera'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
else if (res.data[i].cameraUse == 4) {
|
|
else if (res.data[i].cameraUse == 4) {
|
|
- markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
|
|
|
|
|
|
+ if (res.data[i].workingStatus == '0') {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
|
|
|
|
+ markersMap.click='preview'
|
|
|
|
+ } else {
|
|
|
|
+ markersMap.icon = 'sj-icon-map-not-centerdata-sand-quarry-camera'
|
|
|
|
+ markersMap.click=''
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (res.data[i].cameraCode != null) {
|
|
if (res.data[i].cameraCode != null) {
|
|
markersMap.click = "preview";
|
|
markersMap.click = "preview";
|
|
@@ -3572,6 +3642,8 @@ export default {
|
|
}
|
|
}
|
|
markersMapList.push(markersMap);
|
|
markersMapList.push(markersMap);
|
|
if (res.data.centermonitorTCamera != null) {
|
|
if (res.data.centermonitorTCamera != null) {
|
|
|
|
+ that.centermonitorTCamera = null;
|
|
|
|
+ that.centermonitorTCamera = res.data.centermonitorTCamera;
|
|
that.cameraCode = res.data.centermonitorTCamera.id;
|
|
that.cameraCode = res.data.centermonitorTCamera.id;
|
|
let markersMap = {
|
|
let markersMap = {
|
|
lng: 124.59,
|
|
lng: 124.59,
|
|
@@ -3694,6 +3766,8 @@ export default {
|
|
|
|
|
|
markersMapList.push(markersMap);
|
|
markersMapList.push(markersMap);
|
|
if (res.data.centermonitorTCamera != null) {
|
|
if (res.data.centermonitorTCamera != null) {
|
|
|
|
+ that.centermonitorTCamera = null;
|
|
|
|
+ that.centermonitorTCamera = res.data.centermonitorTCamera;
|
|
let markersMap = {
|
|
let markersMap = {
|
|
lng: 124.59,
|
|
lng: 124.59,
|
|
lat: 43.02,
|
|
lat: 43.02,
|