From 00700f5ef12d33da898e9b4391aa5b4a09828ee3 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期四, 10 十一月 2022 10:16:53 +0800 Subject: [PATCH] 1 --- ExportMap/Test.html | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) diff --git a/ExportMap/Test.html b/ExportMap/Test.html index f7c2565..8b274e7 100644 --- a/ExportMap/Test.html +++ b/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> -- Gitblit v1.9.3