From 2cbbc0e4c0357260f370c47365810608c19131c9 Mon Sep 17 00:00:00 2001
From: surprise <15810472099@163.com>
Date: 星期一, 01 四月 2024 09:31:56 +0800
Subject: [PATCH] 代码更新

---
 src/components/mapsdk.vue |   39 ++++++++++++++++++++-------------------
 1 files changed, 20 insertions(+), 19 deletions(-)

diff --git a/src/components/mapsdk.vue b/src/components/mapsdk.vue
index 3414c6a..88b9ae6 100644
--- a/src/components/mapsdk.vue
+++ b/src/components/mapsdk.vue
@@ -308,13 +308,15 @@
                 :underline="false" @click="setSurfaceDeForm" style="margin-right: 10px">鍦拌〃褰㈠彉鏃跺簭鍥�</el-link>
               <el-link v-if="$store.state.propertiesName.enName == 's_surveyworksite'" type="primary" :underline="false"
                 @click="getPointInfo" style="margin-right: 10px">鍕樺療淇℃伅琛�</el-link>
-              <el-link type="primary" :underline="false" @click="getAttatchList" style="margin-right: 10px">鏌ョ湅闄勪欢</el-link>
+              <el-link type="primary" :underline="false" @click="getAttatchList"
+                style="margin-right: 10px">鏌ョ湅闄勪欢</el-link>
               <i class="el-icon-close" @click="closeBufferBox(6)"></i>
             </div>
           </div>
           <div class="pointInfoBoxContext" style="height:250px;overflow-y: auto">
             <div style="line-height: 20px" v-for="(value, key) in $store.state.propertiesInfo" :key="key">
-              <span v-if="key != 'eventid'" style="font-size: 14px;font-weight: bold;margin-right: 5px">{{ key }}:</span>
+              <span v-if="key != 'eventid'" style="font-size: 14px;font-weight: bold;margin-right: 5px">{{ key
+                }}:</span>
               <span v-if="key != 'eventid'">{{ value }}</span>
             </div>
           </div>
@@ -963,25 +965,25 @@
 
         licenseServer: window.sceneConfig.licenseServer,
       });
-      var url = "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/?callback=loadJsonp940826&f=json"
-      $.ajax({
-        url: url,
-        timeout: 1500, // 璇锋眰瓒呮椂鏃堕棿
-        async: true,
-        type: "GET",
-        success: (res) => {
-          console.log("鍦ㄧ嚎鍦板潃鑾峰彇鎴愬姛")
-        },
-        error: (res) => {
-          console.log("鍦ㄧ嚎鍦板潃鑾疯幏鍙栧け璐�")
-         this.addGaoDeMap();
-        }
-      })
-
 
       window.Viewer = window.sgworld._Viewer;
       if (is_production) {
         this.addGaoDeMap();
+      } else {
+        var url = "https://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/?callback=loadJsonp940826&f=json"
+        $.ajax({
+          url: url,
+          timeout: 1500, // 璇锋眰瓒呮椂鏃堕棿
+          async: true,
+          type: "GET",
+          success: (res) => {
+            console.log("鍦ㄧ嚎鍦板潃鑾峰彇鎴愬姛")
+          },
+          error: (res) => {
+            console.log("鍦ㄧ嚎鍦板潃鑾疯幏鍙栧け璐�")
+            this.addGaoDeMap();
+          }
+        })
       }
       //瀹氫綅
       // sgworld.Navigate.jumpTo({
@@ -2186,5 +2188,4 @@
 //   background: rgba(255, 255, 255, 0.2) !important;
 //   color: white !important;
 //   border: 1px solid rgba(255, 255, 255, 0.2) !important;
-// }
-</style>
+// }</style>

--
Gitblit v1.9.3