| | |
| | | <script> |
| | | var token = "8e3f2499-b4e3-40b7-92bd-5ed1ce1c8b03"; |
| | | |
| | | // Ajax |
| | | function ajax(url, type, data, dataType, contentType, fn) { |
| | | $.ajax({ |
| | | url: url, |
| | |
| | | }); |
| | | } |
| | | |
| | | // 出图-1 |
| | | function exportMap1() { |
| | | var page = $("#selectPage").find("option:selected").text(); |
| | | var data = { |
| | |
| | | }); |
| | | } |
| | | |
| | | // 出图-2 |
| | | function exportMap2() { |
| | | var page = $("#selectPage").find("option:selected").text(); |
| | | var data = { |
| | |
| | | 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> |
| | |
| | | <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> |