管道基础大数据平台系统开发-【CS】-ExportMap
1
13693261870
2022-11-10 00700f5ef12d33da898e9b4391aa5b4a09828ee3
ExportMap/Test.html
@@ -23,30 +23,33 @@
    }
    function exportMap1() {
      var page = $("#selectPage").find("option:selected").text();
      var data = {
        title: "管道基础大数据平台(DW1-01)",
        pageSize: "A3",
        pageSize: page,
        province: "河北省",
        scale: "1:5万",
        resolution: "5米",
        date: "2022.11.09",
        layers: "阀室,管道中心线,矢量注记,矢量图",
        rotation: 45,
        xmin: 59.058299,
        ymin: 9.565969,
        ymax: 64.123674,
        xmax: 146.815824
        rotation: 0,
        xmin: 103.394023,
        ymin: 30.690466,
        ymax: 37.871048,
        xmax: 112.534648
      };
      ajax("Export/Start", "POST", JSON.stringify(data), null, null, function (rs) {
        alert(rs);
        console.log(rs);
      });
    }
    function exportMap2() {
      var page = $("#selectPage").find("option:selected").text();
      var data = {
        title: "管道基础大数据平台(DW1-02)",
        pageSize: "A5",
        pageSize: page,
        province: "山东省",
        scale: "1:20万",
        resolution: "20米",
@@ -60,6 +63,7 @@
      };
      ajax("Export/Start", "POST", JSON.stringify(data), null, null, function (rs) {
        alert(rs);
        console.log(rs);
      });
    }
@@ -67,7 +71,16 @@
</head>
<body>
  <h2>出图测试</h2>
  <select id="selectPage">
    <option>A0</option>
    <option>A1</option>
    <option>A2</option>
    <option>A3</option>
    <option selected="selected">A4</option>
    <option>A5</option>
    <option>A6</option>
  </select>
  <input type="button" value="出图-1" onclick="exportMap1()" />
  <input type="button" value="出图-2" onclick="exportMap1()" />
  <input type="button" value="出图-2" onclick="exportMap2()" />
</body>
</html>