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/location/historicalLocation.jsp | 81 ++++++++++++++++++++++++++++++++++------
1 files changed, 69 insertions(+), 12 deletions(-)
diff --git a/src/main/webapp/hxzk/location/historicalLocation.jsp b/src/main/webapp/hxzk/location/historicalLocation.jsp
index 23d7e72..c334254 100644
--- a/src/main/webapp/hxzk/location/historicalLocation.jsp
+++ b/src/main/webapp/hxzk/location/historicalLocation.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 style="float: left; margin-left: 10px;" type="button"
@@ -249,29 +249,86 @@
</div>
<!-- END CONTENT PART -->
</div>
- <%
- String username = (String) session.getAttribute("username");
- if (username == null || username.equals("")) {
- request.getRequestDispatcher("/hxzk/login.jsp").forward(request, response);
- return;
- }
- %>
+ <% String superuser=(String) session.getAttribute("superuser"); String deleteq=(String)
+ session.getAttribute("deleteq"); String alertq=(String) session.getAttribute("alertq"); String
+ deleteall=(String) session.getAttribute("deleteall"); String username=(String)
+ session.getAttribute("username"); if (username==null || username.equals("")) {
+ request.getRequestDispatcher("/hxzk/login.jsp").forward(request, response); return; } %>
+ <input type="hidden" name="superuser" id="superuser" value="<%=superuser%>"> <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>
// 椤甸潰鍒濆鍖�
- $(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");
- });
+ var superuser = document.getElementById("superuser").value;
+ 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
+ if (superuser == "璁垮") {
+ $("#addButton").attr("disabled", "true");
+ $("#deleteButton").attr("disabled", "true");
+ $("#modifyButton").attr("disabled", "true");
+ $("#deleteAllButton").attr("disabled", "true");
+ $("#modifyAllButton").attr("disabled", "true");
+ $("#importButton").attr("disabled", "true");
+ }
+ if (deleteq == "鍚�") {
+ $("#deleteButton").attr("disabled", "true");
+ }
+ if (alertq == "鍚�") {
+ $("#modifyButton").attr("disabled", "true");
+ $("#modifyAllButton").attr("disabled", "true");
+ }
+ 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