| | |
| | | var app = {}; |
| | | var path = "20230110010101"; |
| | | var url = "http://127.0.0.1:12316/server/"; |
| | | var token = "da6ec384-6eab-4cb5-850e-4cc134bf5935"; |
| | | var token = "bb079561-da66-4a68-9fbc-889f50707b82"; |
| | | |
| | | $(function () { |
| | | $("#pathSpan").html(path); |
| | |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | }); |
| | | } |
| | | |
| | | // 综合数据入库 |
| | | function insertAllFiles() { |
| | | ajax(getUrl("dataUpload/insertFiles"), "POST", JSON.stringify(metaFiles), null, null, function (rs) { |
| | | console.log(rs); |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | }); |
| | | } |
| | | |
| | | // 请求管线分析 |
| | | function selectPipeAnalysis() { |
| | | var data = { |
| | | gid: 24, |
| | | tabs: ["bd.dlg_25w_hydl", "bd.dlg_25w_lrdl", "bd.dlg_25w_lrrl", "bd.dlg_25w_hyda"] |
| | | }; |
| | | ajax(getUrl("pipeline/selectPipeAnalysis"), "POST", JSON.stringify(data), null, null, function (rs) { |
| | | console.log(rs); |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | }); |
| | | } |
| | | |
| | | // 管线分析结果下载 |
| | | function downloadPipeAnalysis() { |
| | | var data = { |
| | | pwd: encrypt.encrypt("Test!321&456"), |
| | | gid: 24, |
| | | tabs: ["bd.dlg_25w_hydl", "bd.dlg_25w_lrdl", "bd.dlg_25w_lrrl", "bd.dlg_25w_hyda"] |
| | | }; |
| | | ajax(getUrl("pipeline/downloadReq"), "POST", JSON.stringify(data), null, null, function (rs) { |
| | | console.log(rs); |
| | | alert("code = " + rs.code + ", msg = " + rs.msg + ", result = " + rs.result); |
| | | }); |
| | | } |
| | | </script> |
| | | </head> |
| | | <body> |
| | |
| | | <input value="Shp入库" type="button" onclick="insertShps();" /> |
| | | <input value="Gdb入库" type="button" onclick="insertGdb();" /> |
| | | <input value="Mdb入库" type="button" onclick="insertMdb();" /> |
| | | <input value="* 综合数据入库 *" type="button" onclick="insertAllFiles();" /> |
| | | <hr /> |
| | | <br /> |
| | | |
| | |
| | | 数据申请: |
| | | <input value="查询DB中溢出的单位ID" type="button" onclick="selectDbOverflowDep();" /> |
| | | <input value="插入数据申请" type="button" onclick="insertApply();" /> |
| | | <input value="请求管线分析" type="button" onclick="selectPipeAnalysis();" /> |
| | | <input value="管线分析结果下载" type="button" onclick="downloadPipeAnalysis();" /> |
| | | <hr /> |
| | | <br /> |
| | | </form> |