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/gas/historicalDetection.jsp |   41 +++++++++++++++++++++++++++++++++++++----
 1 files changed, 37 insertions(+), 4 deletions(-)

diff --git a/src/main/webapp/hxzk/gas/historicalDetection.jsp b/src/main/webapp/hxzk/gas/historicalDetection.jsp
index 197c11b..a413cde 100644
--- a/src/main/webapp/hxzk/gas/historicalDetection.jsp
+++ b/src/main/webapp/hxzk/gas/historicalDetection.jsp
@@ -254,18 +254,50 @@
 			id="deleteq" value="<%=deleteq%>"> <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");
@@ -273,6 +305,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");
@@ -292,7 +325,7 @@
 				if (deleteall == "鍚�") {
 					$("#deleteAllButton").attr("disabled", "true");
 				}
-			});
+			};
 			$('.header-page').load('/hxzkoa/hxzk/top.html');
 			$('.login-page').load('/hxzkoa/hxzk/head.html');
 			$(".reset").click(function() {

--
Gitblit v1.10.0