qinhouyu 1 year ago
parent
commit
3fc5078f2b
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/views/eventdetailsdialog.vue
  2. 2 2
      src/views/firespread.vue

+ 2 - 2
src/views/eventdetailsdialog.vue

@@ -3663,9 +3663,9 @@ export default {
         markersMapList.push(markersMap);
         if (res.data.centermonitorTCamera != null) {
           that.centermonitorTCamera = null;
-          that.centermonitorTCamera = res.data.centermonitorTCamera;
           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,
@@ -3790,9 +3790,9 @@ export default {
         markersMapList.push(markersMap);
         if (res.data.centermonitorTCamera != null) {
           that.centermonitorTCamera = null;
-          that.centermonitorTCamera = res.data.centermonitorTCamera;
           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,

+ 2 - 2
src/views/firespread.vue

@@ -3311,9 +3311,9 @@ export default {
         markersMapList.push(markersMap);
         if (res.data.centermonitorTCamera != null) {
           that.centermonitorTCamera = null;
-          that.centermonitorTCamera = res.data.centermonitorTCamera;
           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,
@@ -3422,9 +3422,9 @@ export default {
         markersMapList.push(markersMap)
         if (res.data.centermonitorTCamera != null) {
           that.centermonitorTCamera = null;
-          that.centermonitorTCamera = res.data.centermonitorTCamera;
           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,