管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-02-28 3d3a7c64857cb1444356d1f5aeef87043be31b06
1
已修改1个文件
54 ■■■■■ 文件已修改
ExportMap/up.html 54 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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);