From 275e2b9dec977546dd1a3f75eac29c22e6bb4ed2 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期五, 11 十一月 2022 09:10:52 +0800 Subject: [PATCH] 1 --- ExportMap/Test.html | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ExportMap/Test.html b/ExportMap/Test.html index 8b274e7..9f0d353 100644 --- a/ExportMap/Test.html +++ b/ExportMap/Test.html @@ -5,6 +5,8 @@ <title></title> <script src="js/jquery.1.12.4.js"></script> <script> + var token = ""; + function ajax(url, type, data, dataType, contentType, fn) { $.ajax({ url: url, @@ -25,6 +27,7 @@ function exportMap1() { var page = $("#selectPage").find("option:selected").text(); var data = { + token: token, title: "绠¢亾鍩虹澶ф暟鎹钩鍙帮紙DW1-01锛�", pageSize: page, province: "娌冲寳鐪�", @@ -40,7 +43,7 @@ }; ajax("Export/Start", "POST", JSON.stringify(data), null, null, function (rs) { - alert(rs); + alert("code = " + rs.code + ", result = " + rs.result); console.log(rs); }); } @@ -48,6 +51,7 @@ function exportMap2() { var page = $("#selectPage").find("option:selected").text(); var data = { + token: token, title: "绠¢亾鍩虹澶ф暟鎹钩鍙帮紙DW1-02锛�", pageSize: page, province: "灞变笢鐪�", @@ -63,7 +67,7 @@ }; ajax("Export/Start", "POST", JSON.stringify(data), null, null, function (rs) { - alert(rs); + alert("code = " + rs.code + ", result = " + rs.result); console.log(rs); }); } -- Gitblit v1.9.3