From d4b11624440760add20444a152cc327af4eb3efd Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 09 六月 2023 16:31:56 +0800 Subject: [PATCH] 1 --- ExportMap/up.html | 61 ++++++------------------------ 1 files changed, 12 insertions(+), 49 deletions(-) diff --git a/ExportMap/up.html b/ExportMap/up.html index b93d388..4b6904e 100644 --- a/ExportMap/up.html +++ b/ExportMap/up.html @@ -13,7 +13,7 @@ var path = "20230425"; var url = "http://127.0.0.1:12316/server/"; //var token = "c36e4f94-dfde-401e-9967-2c4a449f1300"; - var token = "dce05aee-5b55-4835-bb45-e128d9c1f145"; + var token = "1305cff2-516c-4d1f-af9a-9e53206f129c"; $(function () { $("#pathSpan").html(path); @@ -260,13 +260,22 @@ // 鎻掑叆鍏冩暟鎹敵璇� function insertMetaApply() { - var obj = { + /*var obj = { ids: [1393, 1392, 1383, 1382], pwd: aesEncrypt("Test!321&456"), tabs: ["鍏冩暟鎹〃"], entities: ["sysmeta"], descr: "娴嬭瘯鍏冩暟鎹敵璇穨", depcodes: ["00"] + };*/ + var obj = { + ids: [7095, 7079], + pwd: aesEncrypt("Test!321&456"), + tabs: ["鍏冩暟鎹〃"], + entities: ["sysmeta"], + descr: "娴嬭瘯鍏冩暟鎹敵璇穨", + depcodes: ["00"], + descr: "璇峰鏍竳" }; ajax(getUrl("apply/insertApply"), "POST", JSON.stringify(obj), null, null, function (rs) { @@ -335,53 +344,7 @@ // 缁煎悎鏁版嵁鍏ュ簱 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" - }]; - - //JSON.stringify(metaFiles) + app.mappers = metaFiles; ajax(getUrl("dataUpload/insertFiles"), "POST", JSON.stringify(app.mappers), null, null, function (rs) { console.log(rs); alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); -- Gitblit v1.9.3