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/label/historicalPower.jsp | 45 +++++++++++++++++++++++++++++++++++++++------
1 files changed, 39 insertions(+), 6 deletions(-)
diff --git a/src/main/webapp/hxzk/label/historicalPower.jsp b/src/main/webapp/hxzk/label/historicalPower.jsp
index 5fa3f6a..0b75862 100644
--- a/src/main/webapp/hxzk/label/historicalPower.jsp
+++ b/src/main/webapp/hxzk/label/historicalPower.jsp
@@ -168,10 +168,10 @@
</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>
- <div style="width: 100px; float: left;">
+ <div style="width: 100px; float: left;margin-left: 40px;">
<input type="text" id="begin"
class="form-control form-control-sm"
style="font-size: 12px;" placeholder="寮�濮嬫椂闂�" />
@@ -261,6 +261,7 @@
<input type="hidden" name="deleteq" 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>
//鎵ц涓�涓猯aydate瀹炰緥
@@ -298,15 +299,46 @@
</script>
<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");
@@ -314,6 +346,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");
@@ -333,7 +366,7 @@
if (deleteall == "鍚�") {
$("#deleteAllButton").attr("disabled", "true");
}
- });
+ };
$('.header-page').load('/hxzkoa/hxzk/top.html');
$('.login-page').load('/hxzkoa/hxzk/head.html');
// 鍒锋柊鍔熻兘
--
Gitblit v1.10.0