From 741d66c00c593d4f14cd6731d3e4af6ee5c191ac Mon Sep 17 00:00:00 2001
From: 15832144755 <67030627+15832144755@users.noreply.github.com>
Date: 星期五, 23 七月 2021 10:51:51 +0800
Subject: [PATCH] 7.23

---
 src/main/webapp/hxzk/GPS/historicalgpsLocation.jsp |   49 +++++++++++++++++++++++++++++++++++++------------
 1 files changed, 37 insertions(+), 12 deletions(-)

diff --git a/src/main/webapp/hxzk/GPS/historicalgpsLocation.jsp b/src/main/webapp/hxzk/GPS/historicalgpsLocation.jsp
index 8047d41..29de9a3 100644
--- a/src/main/webapp/hxzk/GPS/historicalgpsLocation.jsp
+++ b/src/main/webapp/hxzk/GPS/historicalgpsLocation.jsp
@@ -124,21 +124,24 @@
 													<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="璇疯緭鍏ユ爣绛緄d"/>
+													<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"
@@ -230,7 +233,7 @@
 							}
 						}
 					});
-	
+
 					//鎵ц涓�涓猯aydate瀹炰緥
 					laydate.render({
 						elem: '#end' //鎸囧畾鍏冪礌'
@@ -243,7 +246,7 @@
 									document.getElementById("begin").value = "";
 								}
 							}
-	
+
 						}
 					});
 				</script>
@@ -397,13 +400,35 @@
 							}
 						})
 					});
+					$(".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",

--
Gitblit v1.10.0