From fe598c1ac81772e661647444056b448c085e8f70 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 14 三月 2023 17:39:33 +0800 Subject: [PATCH] 1 --- ExportMap/export.html | 34 +++++++++++++++++++++++++++++++++- 1 files changed, 33 insertions(+), 1 deletions(-) diff --git a/ExportMap/export.html b/ExportMap/export.html index c6ca19c..c6cd708 100644 --- a/ExportMap/export.html +++ b/ExportMap/export.html @@ -7,6 +7,7 @@ <script> var token = "8e3f2499-b4e3-40b7-92bd-5ed1ce1c8b03"; + // Ajax function ajax(url, type, data, dataType, contentType, fn) { $.ajax({ url: url, @@ -24,6 +25,7 @@ }); } + // 鍑哄浘-1 function exportMap1() { var page = $("#selectPage").find("option:selected").text(); var data = { @@ -48,6 +50,7 @@ }); } + // 鍑哄浘-2 function exportMap2() { var page = $("#selectPage").find("option:selected").text(); var data = { @@ -71,6 +74,33 @@ console.log(rs); }); } + + // 娴嬭瘯Rvt + function convert1() { + var data = { ids: [1521] }; + ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) { + alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); + console.log(rs); + }); + } + + // 娴嬭瘯Fbx + function convert2() { + var data = { ids: [1522] }; + ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) { + alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); + console.log(rs); + }); + } + + // 娴嬭瘯Ifc + function convert3() { + var data = { ids: [1524] }; + ajax("Convert/ToTileset", "POST", JSON.stringify(data), null, null, function (rs) { + alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); + console.log(rs); + }); + } </script> </head> <body> @@ -86,6 +116,8 @@ <input type="button" value="鍑哄浘-2" onclick="exportMap2()" /> <br /><br /> - <a href="Convert/Test" >娴嬭瘯rvt</a> + <input type="button" value="娴嬭瘯Rvt" onclick="convert1();" /> + <input type="button" value="娴嬭瘯Fbx" onclick="convert2();" /> + <input type="button" value="娴嬭瘯Ifc" onclick="convert3();" /> </body> </html> -- Gitblit v1.9.3