From 3516f02277035cdc7ff137422709b16efe97ca4a Mon Sep 17 00:00:00 2001
From: 15832144755 <67030627+15832144755@users.noreply.github.com>
Date: 星期五, 27 八月 2021 11:27:21 +0800
Subject: [PATCH] 8.27
---
src/main/webapp/hxzk/location/queryLocation.jsp | 52 ++++++++++++++++++++++++++++++----------------------
1 files changed, 30 insertions(+), 22 deletions(-)
diff --git a/src/main/webapp/hxzk/location/queryLocation.jsp b/src/main/webapp/hxzk/location/queryLocation.jsp
index 0aa6138..ef37224 100644
--- a/src/main/webapp/hxzk/location/queryLocation.jsp
+++ b/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>
//鎵ц涓�涓猯aydate瀹炰緥
@@ -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("鎼滅储鐨処D鍦ㄥ綋鍓嶆椂闂存涓嶅瓨鍦紒");
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);
}
});
--
Gitblit v1.10.0