|
@@ -2686,40 +2686,40 @@ export default {
|
|
|
isAggregation: true,
|
|
|
radius: 0
|
|
|
}
|
|
|
- if (res.data[i].cameraUse == 1) {
|
|
|
- if (res.data[i].workingStatus == '0') {
|
|
|
+ if (res.data.centermonitorTCamera.cameraUse == 1) {
|
|
|
+ if (res.data.centermonitorTCamera.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) {
|
|
|
- if (res.data[i].workingStatus == '0') {
|
|
|
+ } else if (res.data.centermonitorTCamera.cameraUse == 2) {
|
|
|
+ if (res.data.centermonitorTCamera.workingStatus == '0') {
|
|
|
markersMap.icon = 'camera'
|
|
|
markersMap.click = 'preview'
|
|
|
} else {
|
|
|
markersMap.icon = 'camera-not'
|
|
|
markersMap.click = ''
|
|
|
}
|
|
|
- } else if (res.data[i].cameraUse == 3) {
|
|
|
- if (res.data[i].workingStatus == '0') {
|
|
|
+ } else if (res.data.centermonitorTCamera.cameraUse == 3) {
|
|
|
+ if (res.data.centermonitorTCamera.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) {
|
|
|
- if (res.data[i].workingStatus == '0') {
|
|
|
+ } else if (res.data.centermonitorTCamera.cameraUse == 5) {
|
|
|
+ if (res.data.centermonitorTCamera.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) {
|
|
|
- if (res.data[i].workingStatus == '0') {
|
|
|
+ } else if (res.data.centermonitorTCamera.cameraUse == 4) {
|
|
|
+ if (res.data.centermonitorTCamera.workingStatus == '0') {
|
|
|
markersMap.icon = 'sj-icon-map-centerdata-sand-quarry-camera'
|
|
|
markersMap.click = 'preview'
|
|
|
} else {
|