From e608048cf0ca1456e8c21ee54a97c7550eb7c3db Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 21 二月 2023 15:01:30 +0800
Subject: [PATCH] 1

---
 ExportMap/lf.html |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/ExportMap/lf.html b/ExportMap/lf.html
index 8cfe080..5754538 100644
--- a/ExportMap/lf.html
+++ b/ExportMap/lf.html
@@ -7,6 +7,10 @@
   <script src="js/rsa.min.js"></script>
   <script src="js/rollups.js"></script>
   <script>
+    var url = "http://127.0.0.1:12316/server/";
+    var token = "?token=9c62ba00-5c82-40c2-a210-6aecc33e8c96";
+    // 椤圭洰,绔欏満,绠¢亾涓績绾�,鎴樼暐閫氶亾,鐭㈤噺鍥�,褰卞儚娉ㄨ,褰卞儚鍥�
+
     window.onload = function () {
       getPublicKey();
     }
@@ -170,21 +174,21 @@
       });
     }
 
-    function downloadShp() {
+    function downloadMarkShp() {
       var data = [
-          { id: 1, name: "Point-1", props: "{}", wkt: "POINT(95.80461853400004 34.13862467200005)" },
-          { id: 2, name: "Linestring-1", props: "{}", wkt: "LINESTRING(04.98985101830993 37.43840773692756,104.99318913447104 37.43883729720358)" },
-          { id: 3, name: "Polygon-1", props: "{}", wkt: "POLYGON((104.9907822932683 37.43532941961706,104.99088987736599 37.43532941961706,104.9908670336867 37.4349030213574,104.99078327712658 37.4349030213574,104.9907822932683 37.43532941961706))" }
+          { id: 1, name: "Point-1", bak: "{}", wkt: "POINT(95.80461853400004 34.13862467200005)" },
+          { id: 2, name: "Linestring-1", bak: "{}", wkt: "LINESTRING(04.98985101830993 37.43840773692756,104.99318913447104 37.43883729720358)" },
+          { id: 3, name: "Polygon-1", bak: "{}", wkt: "POLYGON((104.9907822932683 37.43532941961706,104.99088987736599 37.43532941961706,104.9908670336867 37.4349030213574,104.99078327712658 37.4349030213574,104.9907822932683 37.43532941961706))" }
       ];
 
-      ajax(url + "mark/downloadShp" + token, "POST", JSON.stringify(data), "json", null, function (rs) {
+      ajax(url + "comprehensive/downloadShp" + token, "POST", JSON.stringify(data), "json", null, function (rs) {
         alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
         // 涓嬭浇鏂囦欢
         if (rs && rs.code == 200) {
           var a = document.createElement('a'); // 鍒涘缓涓�涓猘鏍囩鍏冪礌
           a.style.display = 'none'; // 璁剧疆鍏冪礌涓嶅彲瑙�
-          // http://127.0.0.1:12316/mark/downloadFile?guid=5ce046cc05b186332775c03ac6792caf
-          a.href = url + "mark/downloadFile" + token + "&guid=" + rs.result;
+          // http://127.0.0.1:12316/server/comprehensive/downloadFile?guid=5f0d5b61ca8cd79a07502f308c2f4dcc
+          a.href = url + "comprehensive/downloadFile" + token + "&guid=" + rs.result;
 
           document.body.appendChild(a); // 鍔犲叆
           a.click(); // 瑙﹀彂鐐瑰嚮,涓嬭浇
@@ -228,7 +232,7 @@
     function downloadFile() {
       var a = document.createElement('a'); // 鍒涘缓涓�涓猘鏍囩鍏冪礌
       a.style.display = 'none'; // 璁剧疆鍏冪礌涓嶅彲瑙�
-      a.href = url + "mark/downloadFile" + token + "&guid=" + "5ce046cc05b186332775c03ac6792caf";
+      a.href = url + "comprehensive/downloadFile" + token + "&guid=" + "5ce046cc05b186332775c03ac6792caf";
 
       document.body.appendChild(a); // 鍔犲叆
       a.click(); // 瑙﹀彂鐐瑰嚮,涓嬭浇
@@ -254,7 +258,7 @@
         return;
       }
 
-      $.ajax(url + "mark/uploadShp" + token, {
+      $.ajax(url + "comprehensive/uploadShp" + token, {
         type: "post",
         data: formData,
         async: true,
@@ -319,10 +323,6 @@
     }
   </script>
   <script>
-    var url = "http://127.0.0.1:12316/server/";
-    var token = "?token=37da6489-9286-4cb6-9662-69d464238e9b";
-    // 椤圭洰,绔欏満,绠¢亾涓績绾�,鎴樼暐閫氶亾,鐭㈤噺鍥�,褰卞儚娉ㄨ,褰卞儚鍥�
-
     function exportMap1() {
       var page = $("#selectPage").find("option:selected").text();
       var data = {
@@ -394,8 +394,8 @@
   <input type="button" value="Ajax涓婁紶" onclick="ajxUpload()" />
   <input type="button" value="uploadData" onclick="uploadData();" />
   <input type="button" value="uploadShpForWKT" onclick="uploadShpForWKT();" />
-  <input type="button" value="uploadShp" onclick="downloadShp();" />
   <input type="button" value="downloadFile" onclick="downloadFile();" />
+  <input type="button" value="downloadMarkShp" onclick="downloadMarkShp();" />
   <input type="button" value="uploadShpForMark" onclick="uploadShpForMark();" />
   <input type="button" value="绠$嚎鍒嗘瀽" onclick="pipeAnalysis()" />
   <input type="button" value="绠$嚎鍒嗘瀽涓嬭浇" onclick="downloadPipeReq()" />

--
Gitblit v1.9.3