From 3d3a7c64857cb1444356d1f5aeef87043be31b06 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 28 二月 2023 20:31:04 +0800 Subject: [PATCH] 1 --- ExportMap/up.html | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 50 insertions(+), 4 deletions(-) diff --git a/ExportMap/up.html b/ExportMap/up.html index 0ef9c9e..5d250e5 100644 --- a/ExportMap/up.html +++ b/ExportMap/up.html @@ -9,9 +9,9 @@ <script src="js/insertFiles.js"></script> <script> var app = {}; - var path = "20230127"; + var path = "20230228"; var url = "http://127.0.0.1:12316/server/"; - var token = "ff471511-9bdb-40fc-bca0-559437954911"; + var token = "35b3641c-eb90-4692-a43f-c9ceb3636de0"; $(function () { $("#pathSpan").html(path); @@ -187,7 +187,7 @@ function downloadReq() { var obj = { pwd: encrypt.encrypt("Test!321&456"), - ids: [113, 120, 121, 122] + ids: [1411, 1412] }; ajax(getUrl("meta/downloadReq"), "POST", JSON.stringify(obj), null, null, function (rs) { @@ -197,7 +197,7 @@ } function selectDownloadFile() { - var guid = "af68c8d6d847070e3a3055ba58e05929"; // "5ce046cc05b186332775c03ac6792caf"; + var guid = "55269c88c147fb894c27e3de7076877d"; // "5ce046cc05b186332775c03ac6792caf"; var pwd = encodeURIComponent(encrypt.encrypt("Test!321&456")); // Admin@123 ajax(getUrl("meta/selectDownloadFile") + "&guid=" + guid + "&pwd=" + pwd, "GET", null, null, null, function (rs) { @@ -294,6 +294,52 @@ // 缁煎悎鏁版嵁鍏ュ簱 function insertAllFiles() { + var metaFiles = [{ + "createTime": null, + "createUser": 1, + "depcode": "000305", + "dircode": "01", + "entity": "mpipeline", + "epsgCode": "EPSG:4490", + "eventid": "24c073cc-e77b-4a7d-9a35-14319c231c81", + "extName": ".shp", + "guid": "85ec314d7c8aad8f7d6e89ea97c8c139", + "isMeta": false, + "msg": null, + "name": "m_pipeline.shp", + "path": "20230228_zip\\model_data\\m_pipeline.shp", + "rows": 0, + "sizes": 0.025, + "tab": "m_pipeline", + "type": "shp", + "verid": 0, + "tabDesc": "绠$嚎", + "tabs": "m_pipeline", + "ns": "bs" + }, { + "createTime": null, + "createUser": 1, + "depcode": "000305", + "dircode": "01", + "entity": "msitepoint", + "epsgCode": "EPSG:4490", + "eventid": "792c2d99-decd-4748-bd4b-33a4bebe7f5b", + "extName": ".shp", + "guid": "66031af8de9ab24feec3b1f06f738d0e", + "isMeta": false, + "msg": null, + "name": "m_sitepoint.shp", + "path": "20230228_zip\\model_data\\m_sitepoint.shp", + "rows": 0, + "sizes": 0.003, + "tab": "m_sitepoint", + "type": "shp", + "verid": 0, + "tabDesc": "绔欏満鐐�", + "tabs": "m_sitepoint", + "ns": "bs" + }]; + ajax(getUrl("dataUpload/insertFiles"), "POST", JSON.stringify(metaFiles), null, null, function (rs) { console.log(rs); alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); -- Gitblit v1.9.3