From 52cffc4ab8e9787a6f233295502c7c9788dddae1 Mon Sep 17 00:00:00 2001
From: fxl <473369119@qq.com>
Date: 星期二, 07 三月 2023 10:45:17 +0800
Subject: [PATCH] 3.7

---
 src/main/webapp/hxzk/warning/realTimeWarning.jsp |   43 ++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 38 insertions(+), 5 deletions(-)

diff --git a/src/main/webapp/hxzk/warning/realTimeWarning.jsp b/src/main/webapp/hxzk/warning/realTimeWarning.jsp
index 439511c..27a7471 100644
--- a/src/main/webapp/hxzk/warning/realTimeWarning.jsp
+++ b/src/main/webapp/hxzk/warning/realTimeWarning.jsp
@@ -164,7 +164,7 @@
 														<line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg></span>
 											</div>
 											<input type="text" id="search_input" class="form-control"
-												placeholder="璇疯緭鍏ユ爣绛綢D" aria-label="Username"
+												placeholder="璇疯緭鍏ョ紪鍙锋垨濮撳悕" aria-label="Username"
 												aria-describedby="basic-addon1">
 										</div>
 										<button type="button" class="btn btn-secondary reset">鍒锋柊</button>
@@ -237,18 +237,50 @@
 	<input type="hidden" name="alertq" id="alertq" value="<%=alertq%>">
 	<input type="hidden" name="deleteall" id="deleteall"
 		value="<%=deleteall%>">
+		<input type="hidden" name="xianusera" id="xianusera" value="<%=username%>">
 	<!-- END MAIN CONTAINER -->
 	<script>
 		// 椤甸潰鍒濆鍖�
-		$(document).ready(function() {
+		window.onload = function() {
 			App.init();
 			$.ajax({
 				async : false,
 				type : "POST",
-				url : "/hxzkoa/getSysSetting_list.do",
+				url : "/hxzkoa/getSysSetting_list2.do",
 				data : {},
 				dataType : "json",
-				success : function(data) {/* title = data[0].title;document.title = title; */
+				success : function(data) {
+					/* title = data[0].title;document.title = title; */
+					if (data.dataList2[0].label == 0) {
+						$("#labela").css({ 'display': 'none' });
+					};
+					if (data.dataList2[0].achor == 0) {
+						$("#anchora").css({ 'display': 'none' });
+					};
+					if (data.dataList2[0].gps == 0) {
+						$("#gpsa").css({ 'display': 'none' });
+					};
+					if (data.dataList2[0].fence == 0) {
+						$("#fencea").css({ 'display': 'none' });
+					};
+					if (data.dataList2[0].warning == 0) {
+						$("#warninga").css({ 'display': 'none' });
+					};
+					if (data.dataList2[0].history == 0) {
+						$("#historya").css({ 'display': 'none' });
+					};
+					if (data.dataList2[0].attendance == 0) {
+						$("#attendancea").css({ 'display': 'none' });
+					};
+					if (data.dataList2[0].basiclnfo == 0) {
+						$("#basiclnfoa").css({ 'display': 'none' });
+					};
+					if (data.dataList2[0].video == 0) {
+						$("#videoa").css({ 'display': 'none' });
+					};
+					if (data.dataList2[0].gas == 0) {
+						$("#gasa").css({ 'display': 'none' });
+					};
 				},
 			});
 			$("#page_1").addClass("active");
@@ -256,6 +288,7 @@
 			var deleteq = document.getElementById("deleteq").value;
 			var alertq = document.getElementById("alertq").value;
 			var deleteall = document.getElementById("deleteall").value;
+			document.getElementById("xianuser").innerHTML=document.getElementById("xianusera").value
 			//console.log(superuser)
 			if (superuser == "璁垮") {
 				$("#addButton").attr("disabled", "true");
@@ -275,7 +308,7 @@
 			if (deleteall == "鍚�") {
 				$("#deleteAllButton").attr("disabled", "true");
 			}
-		});
+		};
 		// 鍔犺浇head澶嶇敤椤甸潰
 		$('.header-page').load('/hxzkoa/hxzk/top.html');
 		$('.login-page').load('/hxzkoa/hxzk/head.html');

--
Gitblit v1.10.0