管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2023-01-12 d25d064d942f760806e6a79d246877f5ee57ee92
ExportMap/up.html
@@ -6,11 +6,12 @@
  <script src="js/jquery.1.12.4.js"></script>
  <script src="js/rsa.min.js"></script>
  <script src="js/rollups.js"></script>
  <script src="js/insertFiles.js"></script>
  <script>
    var app = {};
    var path = "20221128010101";
    var path = "20230110010101";
    var url = "http://127.0.0.1:12316/server/";
    var token = "278301c9-366f-424e-a77e-5c4b9d89bb66";
    var token = "bb079561-da66-4a68-9fbc-889f50707b82";
    $(function () {
      $("#pathSpan").html(path);
@@ -455,7 +456,7 @@
    function aesDecrypt(word) {
      return CryptoJS.enc.Utf8.stringify(CryptoJS.AES.decrypt(word, CryptoJS.enc.Utf8.parse(base64Decode("QSNzX2xGX3NFcnZlX2sueQ==")), { mode: CryptoJS.mode.ECB, padding: CryptoJS.pad.Pkcs7 })).toString();
    }
  </script>
  </script>
  <script>
    function selectDbOverflowDep() {
      var obj = {
@@ -465,6 +466,55 @@
      };
      ajax(getUrl("dataLib/selectDbOverflowDep"), "POST", JSON.stringify(obj), null, null, function (rs) {
        console.log(rs);
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
      });
    }
    function insertApply() {
      var obj = {
        ids: [20, 21, 22],
        pwd: aesEncrypt("Test!321&456"),
        tabs: ["城市点", "行政区划线", "居民地面"],
        entities: ["dlgagnp", "dlg25wboul", "dlg25wresa"],
        wkt: aesEncrypt("POLYGON ((115.94927385452 32.3754479115071 0,121.989371092554 32.2766788010181 0,121.850621222894 29.6874200067864 0,115.9727267226 29.7835368627922 0,115.94927385452 32.3754479115071 0))"),
        descr: "用于生产项目,请批准"
      };
      ajax(getUrl("apply/insertApply"), "POST", JSON.stringify(obj), null, null, function (rs) {
        console.log(rs);
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
      });
    }
    // 综合数据入库
    function insertAllFiles() {
      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);
      });
    }
    // 请求管线分析
    function selectPipeAnalysis() {
      var data = {
        gid: 24,
        tabs: ["bd.dlg_25w_hydl", "bd.dlg_25w_lrdl", "bd.dlg_25w_lrrl", "bd.dlg_25w_hyda"]
      };
      ajax(getUrl("pipeline/selectPipeAnalysis"), "POST", JSON.stringify(data), null, null, function (rs) {
        console.log(rs);
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
      });
    }
    // 管线分析结果下载
    function downloadPipeAnalysis() {
      var data = {
        pwd: encrypt.encrypt("Test!321&456"),
        gid: 24,
        tabs: ["bd.dlg_25w_hydl", "bd.dlg_25w_lrdl", "bd.dlg_25w_lrrl", "bd.dlg_25w_hyda"]
      };
      ajax(getUrl("pipeline/downloadReq"), "POST", JSON.stringify(data), null, null, function (rs) {
        console.log(rs);
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
      });
@@ -496,6 +546,7 @@
    <input value="Shp入库" type="button" onclick="insertShps();" />
    <input value="Gdb入库" type="button" onclick="insertGdb();" />
    <input value="Mdb入库" type="button" onclick="insertMdb();" />
    <input value="* 综合数据入库 *" type="button" onclick="insertAllFiles();" />
    <hr />
    <br />
@@ -520,6 +571,9 @@
    数据申请:
    <input value="查询DB中溢出的单位ID" type="button" onclick="selectDbOverflowDep();" />
    <input value="插入数据申请" type="button" onclick="insertApply();" />
    <input value="请求管线分析" type="button" onclick="selectPipeAnalysis();" />
    <input value="管线分析结果下载" type="button" onclick="downloadPipeAnalysis();" />
    <hr />
    <br />
  </form>