管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-12-31 3dcf4eb78a743843940fa481e4d4c346c1777492
ExportMap/lf.html
@@ -75,16 +75,6 @@
      });
    }
    function insertUser() {
      var data = {
        //
      };
      ajax(url + "user/updateUsersPwd" + token, "POST", JSON.stringify(data), "json", null, function (rs) {
        alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result);
        console.log(rs);
      });
    }
    function ajxUpload() {
      var formData = new FormData();
      var fs = document.getElementById("file1");
@@ -280,10 +270,58 @@
        }
      });
    }
    function pipeAnalysis() {
      var data = {
        gid: 24,
        tabs: ["bd.dlg_25w_hydl", "bd.dlg_25w_lrdl", "bd.dlg_25w_lrrl", "bd.dlg_25w_hyda"]
      };
      $.ajax(url + "pipeline/selectPipeAnalysis" + token, {
        type: "POST",
        data: JSON.stringify(data),
        async: true,
        cache: false,
        processData: false,
        contentType: false,
        success: function (rs) {
          alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + ", " + JSON.stringify(rs.result));
          console.log(rs);
        },
        error: function (e) {
          console.error(e);
        }
      });
    }
    function downloadPipeReq() {
      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(url + "pipeline/downloadReq" + token, {
        type: "POST",
        data: JSON.stringify(data),
        async: true,
        cache: false,
        processData: false,
        contentType: false,
        success: function (rs) {
          alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + ", " + JSON.stringify(rs.result));
          console.log(rs);
        },
        error: function (e) {
          console.error(e);
        }
      });
    }
  </script>
  <script>
    var url = "http://127.0.0.1:12316/server/";
    var token = "?token=b2c4ec35-bd9a-4fdd-8ef2-ceea09436ea6";
    var token = "?token=f4bbbf69-6d3d-42f3-a5cd-2bb6bc045660";
    // 项目,站场,管道中心线,战略通道,矢量图,影像注记,影像图
    function exportMap1() {
      var page = $("#selectPage").find("option:selected").text();
@@ -294,8 +332,8 @@
        province: "河北省",
        scale: "1:5万",
        resolution: "5米",
        date: "2022.12.20", // 项目,站场,管道中心线,战略通道,影像注记,影像图
        layers: "项目,站场,管道中心线,影像注记,影像图",
        date: "2022.12.20",
        layers: "项目,站场,管道中心线,矢量图",
        rotation: 0,
        xmin: 103.394023,
        ymin: 30.690466,
@@ -359,6 +397,8 @@
  <input type="button" value="uploadShp" onclick="downloadShp();" />
  <input type="button" value="downloadFile" onclick="downloadFile();" />
  <input type="button" value="uploadShpForMark" onclick="uploadShpForMark();" />
  <input type="button" value="管线分析" onclick="pipeAnalysis()" />
  <input type="button" value="管线分析下载" onclick="downloadPipeReq()" />
  <br />
  <br />