15832144755
2021-08-27 3516f02277035cdc7ff137422709b16efe97ca4a
src/main/webapp/hxzk/location/queryLocation.jsp
@@ -7,7 +7,7 @@
            <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 rel="icon" type="image/x-icon" href="/hxzkoa/hxzk/assets/img/favicon.ico" />
            <link href="/hxzkoa/hxzk/assets/css/loader.css" rel="stylesheet" type="text/css" />
            <script src="/hxzkoa/hxzk/assets/js/loader.js"></script>
@@ -183,7 +183,13 @@
            </div>
            <!-- END MAIN CONTAINER -->
            <%
            String username=(String)session.getAttribute("username");
            if(username==null || username.equals("")){
            request.getRequestDispatcher("/hxzk/login.jsp").forward(request,response);
            return;
            }
            %>
            <!-- BEGIN FUNCTION SCRIPTS -->
            <script>
               //执行一个laydate实例
@@ -425,6 +431,8 @@
            <!-- 百度地图功能 -->
            <script type="text/javascript">
               var baitiao;
               var baizongtiao;
               var playFlag;
               var playTrack;
               var playIndex = 0;
@@ -528,8 +536,6 @@
                        if (playFlag && zhuanhuanindex >= playIndex) {
                           t = 1000;
                           timer_g = setInterval(fn, t);
                           var tiao = getGPSTrack().length;
                           function fn() {
                              var speed = document.getElementById("bofangsudu").value;
                              if (playFlag && playIndex < playTrack.length && zhuanhuanindex > playIndex) {
@@ -540,9 +546,11 @@
                                 marker = current_node_list[playIndex];
                                 bm.addOverlay(marker);
                                 var gpss_list = getGPSTrack();
                                 str = '<input type="text" class="form-control"  id="tagid" style="width:60%;font-size: 12px;padding: 5px 5px" placeholder="已加载' + tiao + '条数据">'
                                 str = '<input type="text" class="form-control"  id="tagid" style="width:60%;font-size: 12px;padding: 5px 5px" placeholder="剩余' + baizongtiao + '/'+ baitiao + '条数据">'
                                 $("#shujutiao").html(str);
                                 tiao -= 1;
                                 if( baitiao > 0){
                                    baitiao -= 1;
                                 }
                                 zuobiao = new BMap.Label(gpss_list[i][4], { offset: new BMap.Size(20, -60) });
                                 zuobiao.setStyle({
                                    color: "#090909",
@@ -573,6 +581,8 @@
                                 clearInterval(timer_g);
                                 if (playIndex >= playTrack.length - 1) {
                                    clearInterval(timer_g);
                                    playIndex = 0;
                                    i = 0;
                                 } else {
                                    var stime = new Date(playTrack[playIndex][4]).getTime();
                                    var etime = new Date(playTrack[playIndex + 1][4]).getTime();
@@ -600,6 +610,8 @@
                  document.getElementById('search2').onclick = function () {
                     bm.clearOverlays();
                     clearInterval(timer_g);
                     baizongtiao = getGPSTrack().length-2;
                     baitiao = baizongtiao;
                     setTimeout(fnc(), 200);
                     function fnc() {
@@ -717,6 +729,8 @@
            <script>
               var zongtiao;
               var tiao
               var timer;
               function MarkPoints(Imgurl) {
@@ -835,9 +849,6 @@
                        can.fillText(zuobiao, x_cor + 10, y_cor - 10);//标明坐标信息
                        can.fillText(_this.playMark.time, x_cor - 30, y_cor + 15);//标明时间戳
                        // str = '<input type="text" class="form-control"  id="tagid" style="width:60%;font-size: 12px;padding: 5px 5px" placeholder="已加载' + tiao + '条数据">'
                        // $("#shujutiao").html(str);
                        // tiao -= 1
                     };
                     if (_this.allMarkLins.length) {
@@ -896,17 +907,12 @@
                     };
                     document.getElementById('search').onclick = function () {
                        var tagTrack = queryTagid();
                        zongtiao = queryTagid().length-2;
                        tiao = zongtiao;
                        if (tagTrack.length == 0) {
                           alert("搜索的ID在当前时间段不存在!");
                           document.getElementById("tagid").value = "";
                        } else {
                           // shuju();
                           // setInterval(shuju, 1000)
                           // function shuju() {
                           //    str = '<input type="text" class="form-control"  id="tagid" style="width:60%;font-size: 12px;padding: 5px 5px" placeholder="已加载' + tiao + '条数据">'
                           //    $("#shujutiao").html(str);
                           //    tiao -= 1
                           // }
                           _this.playTrack = tagTrack;
                           _this.TrackPlay();
                           //_this.MarkBorderline();
@@ -1044,19 +1050,21 @@
                     if (_this.playFlag) {
                        var t = 1000;
                        timer = setInterval(fn, t);
                        var tiao = queryTagid().length;
                        function fn() {
                           var speed = document.getElementById("bofangsudu").value;
                           if (_this.playFlag && _this.playIndex < _this.playTrack.length) {
                              _this.ShowNode(_this.playTrack[_this.playIndex]);
                              _this.playIndex += 1;
                           };
                           str = '<input type="text" class="form-control"  id="tagid" style="width:60%;font-size: 12px;padding: 5px 5px" placeholder="已加载' + tiao + '条数据">'
                           str = '<input type="text" class="form-control"  id="tagid" style="width:60%;font-size: 12px;padding: 5px 5px" placeholder="剩余' + zongtiao + '/' + tiao + '条数据">'
                           $("#shujutiao").html(str);
                           tiao -= 1
                           if (tiao > 0) {
                              tiao -= 1
                           }
                           clearInterval(timer);
                           if (_this.playIndex == _this.playTrack.length - 1) {
                              clearInterval(timer);
                              _this.playIndex = 0;
                           } else {
                              var stime = new Date(_this.playTrack[_this.playIndex].time).getTime();
                              var etime = new Date(_this.playTrack[_this.playIndex + 1].time).getTime();
@@ -1095,7 +1103,7 @@
            <script src="/hxzkoa/hxzk/plugins/table/datatable/button-ext/buttons.print.min.js"></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; */ }, });
                  var select_layer = document.getElementById("chooselayer");
                  var select_value = select_layer.value;
                  if (select_value == 'baidumap') {
@@ -1129,8 +1137,8 @@
                           value: select_value
                        },
                        success: function (data) {
                           //imgUrl = '/hxzkoa/hxzk/image/mapfile/'+data[0].mapname;
                           imgUrl = '/hxzkoa/hxzk/image/mapfile/京辰瑞达.jpg';
                           imgUrl = '/hxzkoa/hxzk/image/mapfile/'+data[0].mapname;
                           //imgUrl = '/hxzkoa/hxzk/image/mapfile/京辰瑞达.jpg';
                           new MarkPoints(imgUrl);
                        }
                     });