| | |
| | | <meta charset="utf-8"> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no"> |
| | | <title></title> |
| | | <title>历史数据</title> |
| | | <link href="/hxzkoa/hxzk/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> |
| | | <link href="/hxzkoa/hxzk/assets/img/favicon.ico" rel="icon" type="image/x-icon" /> |
| | | <link href="/hxzkoa/hxzk/assets/css/components/custom-modal.css" rel="stylesheet" type="text/css" /> |
| | |
| | | <button style="float:left;margin-left:10px;" type="button" |
| | | class="btn btn-secondary deleteAll" |
| | | id="deleteAllButton">全部删除</button> |
| | | <div style="width:120px;float:left;margin-left:10px;"> |
| | | <div style="width:80px;float:left;margin-left:10px;"> |
| | | <input type="text" id="begin" |
| | | class="form-control form-control-sm" |
| | | style="font-size:12px;" placeholder="请输入开始时间"/> |
| | | class="form-control form-control-sm" style="font-size:12px;" |
| | | placeholder="开始时间" /> |
| | | </div> |
| | | <div style="width:120px;float:left;margin-left:10px;"> |
| | | <div style="width:80px;float:left;margin-left:10px;"> |
| | | <input type="text" id="end" class="form-control form-control-sm" |
| | | style="font-size:12px;" placeholder="请输入结束时间"/> |
| | | style="font-size:12px;" placeholder="结束时间" /> |
| | | </div> |
| | | <div style="width:100px;float:left;margin-left:10px;"> |
| | | <input type="text" id="tagida" class="form-control form-control-sm" |
| | | style="font-size:12px;" placeholder="请输入标签id"/> |
| | | <div style="width:60px;float:left;margin-left:10px;"> |
| | | <input type="text" id="tagida" |
| | | class="form-control form-control-sm" style="font-size:12px;" |
| | | placeholder="标签id" /> |
| | | </div> |
| | | <button style="float:left;margin-left:10px;" type="button" |
| | | class="btn btn-secondary toAllExcel">导出表格</button> |
| | | class="btn btn-secondary toAllExcel">导出Excel</button> |
| | | <button style="float:left;margin-left:10px;" type="button" |
| | | class="btn btn-secondary toAlltxt">导出txt</button> |
| | | |
| | | <label for="perPage" |
| | | class="col-sm-2 col-form-label col-form-label-sm" |
| | |
| | | </div> |
| | | <!-- END CONTENT PART --> |
| | | </div> |
| | | <% |
| | | String username=(String)session.getAttribute("username"); |
| | | if(username==null || username.equals("")){ |
| | | request.getRequestDispatcher("/hxzk/login.jsp").forward(request,response); |
| | | return; |
| | | } |
| | | %> |
| | | <!-- END MAIN CONTAINER --> |
| | | <script> |
| | | //执行一个laydate实例 |
| | |
| | | } |
| | | } |
| | | }); |
| | | |
| | | |
| | | //执行一个laydate实例 |
| | | laydate.render({ |
| | | elem: '#end' //指定元素' |
| | |
| | | document.getElementById("begin").value = ""; |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | }); |
| | | </script> |
| | | <script> |
| | | // 页面初始化 |
| | | $(document).ready(function () { |
| | | App.init(); $.ajax({ async: false, type: "POST", url: "/hxzkoa/getSysSetting_list.do", data: {}, dataType: "json", success: function (data) { title = data[0].title; document.title = title; }, }); |
| | | App.init(); $.ajax({ async: false, type: "POST", url: "/hxzkoa/getSysSetting_list.do", data: {}, dataType: "json", success: function (data) { /* title = data[0].title; document.title = title; */}, }); |
| | | $("#page_1").addClass("active"); |
| | | }); |
| | | // 加载head复用页面 |
| | |
| | | } |
| | | }) |
| | | }); |
| | | $(".toAlltxt").click(function () { |
| | | var dateaa = $("#dateList").val(); |
| | | window.location.href = "/hxzkoa/totxt.do?date=" + dateaa; |
| | | // swal({ |
| | | // title: "Exported!", |
| | | // text: "导出成功!", |
| | | // type: "success", |
| | | // showCancelButton: false, |
| | | // showConfirmButton: false, |
| | | // buttons: false |
| | | // }) |
| | | // setTimeout("window.location.reload()", 1000); |
| | | /* $.ajax({ |
| | | async: false, |
| | | type: 'POST', |
| | | url: "/hxzkoa/totxt.do", |
| | | dataType: 'json', |
| | | success: function(data){ |
| | | console.log(data) |
| | | } |
| | | }) */ |
| | | }) |
| | | // 导出表格 |
| | | $(".toAllExcel").click(function () { |
| | | var tag = document.getElementById("tagida").value; |
| | | var begin = document.getElementById("begin").value; |
| | | var end = document.getElementById("end").value; |
| | | var datea = $("#dateList").val(); |
| | | window.location.href = "/hxzkoa/historicalgpsLocation_export.do?tagid="+tag+"&begintime="+begin+"&endtime="+end+"&date="+datea; |
| | | window.location.href = "/hxzkoa/historicalgpsLocation_export.do?tagid=" + tag + "&begintime=" + begin + "&endtime=" + end + "&date=" + datea; |
| | | // $.ajax({ |
| | | // async: false, |
| | | // type: "POST", |