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/sysSetting/sysSetting.jsp | 280 ++++++++++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 241 insertions(+), 39 deletions(-)
diff --git a/src/main/webapp/hxzk/sysSetting/sysSetting.jsp b/src/main/webapp/hxzk/sysSetting/sysSetting.jsp
index d7d7b28..864777b 100644
--- a/src/main/webapp/hxzk/sysSetting/sysSetting.jsp
+++ b/src/main/webapp/hxzk/sysSetting/sysSetting.jsp
@@ -241,14 +241,11 @@
class="form-control form-control-lg" id="yulan_map_tu"
style="font-size: 6px; height: 37px; padding: 0px 0px; width: 200px;">
<option value="鐧惧害鍦板浘">鐧惧害鍦板浘</option>
- <option value="${maplist[0].mapname}">${maplist[0].mapname}
- </option>
- <option value="${maplist[1].mapname}">${maplist[1].mapname}
- </option>
- <option value="${maplist[2].mapname}">${maplist[2].mapname}
- </option>
- <option value="${maplist[3].mapname}">${maplist[3].mapname}
- </option>
+ <option value="涓夌淮鍦板浘">涓夌淮鍦板浘</option>
+ <c:forEach items="${maplist}" var="map">
+ <option value="${map.mapname}">${map.mapname}
+ </option>
+ </c:forEach>
</select>
</div>
<div
@@ -359,7 +356,7 @@
<input class="custom-control-input" type="checkbox"
name="checkSetting" id="check11"
value="${settingList[0].viewTagid}"> <label
- class="custom-control-label" for="check11">鏄剧ず鏍囩 鐨処D</label>
+ class="custom-control-label" for="check11">鏄剧ず鏍囩鐨処D</label>
</div>
<div style="width: 32%; margin-left: 1%; float: left;"
class="custom-control custom-checkbox">
@@ -385,12 +382,19 @@
value="${settingList[0].fence_show}"> <label
class="custom-control-label" for="check20">鍥存爮鏄剧ず</label>
</div>
+ <!-- <div style="width: 32%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="check16"
+ value="${settingList[0].quiet}"> <label
+ class="custom-control-label" for="check16">闈欐鍧愭爣鍥哄畾 </label>
+ </div> -->
<div style="width: 32%; margin-left: 1%; float: left;"
class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox"
- name="checkSetting" value="1" id="check16"
- value="${settingList[0].quiet}"> <label
- class="custom-control-label" for="check16">闈欐鍧愭爣鍥哄畾 </label>
+ name="checkSetting" id="check14"
+ value="${settingList[0].anckicon}"> <label
+ class="custom-control-label" for="check14">鍩虹珯鏄剧ず</label>
</div>
</div>
<div
@@ -398,26 +402,17 @@
<div style="width: 32%; margin-left: 2%; float: left;"
class="custom-control custom-checkbox">
<input class="custom-control-input" type="checkbox"
- name="checkSetting" id="check14"
- value="${settingList[0].anckicon}"> <label
- class="custom-control-label" for="check14">鍩虹珯鏄剧ず</label>
- </div>
- <div style="width: 32%; margin-left: 1%; float: left;"
- class="custom-control custom-checkbox">
- <input class="custom-control-input" type="checkbox"
name="checkSetting" id="check15"
value="${settingList[0].gas_show}"> <label
class="custom-control-label" for="check15">寮�鍚皵浣撴樉绀�</label>
</div>
- </div>
- <div
- style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
<div
- style="width: 32%; margin-left: 2%; float: left; height: 37px;">
+ style="width: 32%; margin-left: 1%; float: left; height: 37px;">
<input id="prodId1" name="prodId" type="hidden"
- value="${settingList[0].real_trak_time}"> <select
- class="form-control form-control-lg" id="real_trak_time"
- style="font-size: 6px; height: 20px; padding: 0px 0px; width: 200px;">
+ value="${settingList[0].real_trak_time}">
+ <label for="real_trak_time">杞ㄨ抗鏃堕暱</label>
+ <select class="form-control form-control-lg" id="real_trak_time"
+ style="font-size: 6px; height: 20px; padding: 0px 0px; width: 150px; display: inline;">
<option value="涓嶆樉绀哄疄鏃惰建杩�">涓嶆樉绀哄疄鏃惰建杩�</option>
<option value="10绉掗挓">10绉掗挓</option>
<option value="30绉掗挓">30绉掗挓</option>
@@ -430,9 +425,10 @@
<div
style="width: 32%; margin-left: 1%; float: left; height: 37px;">
<input id="prodId2" name="prodId" type="hidden"
- value="${settingList[0].real_trak_color}"> <select
- class="form-control form-control-lg" id="real_trak_color"
- style="font-size: 6px; height: 20px; padding: 0px 0px; width: 200px;">
+ value="${settingList[0].real_trak_color}">
+ <label for="real_trak_time">杞ㄨ抗棰滆壊</label>
+ <select class="form-control form-control-lg" id="real_trak_color"
+ style="font-size: 6px; height: 20px; padding: 0px 0px; width: 150px; display: inline;">
<option value="绾㈣壊">绾㈣壊</option>
<option value="钃濊壊">钃濊壊</option>
<option value="榛戣壊">榛戣壊</option>
@@ -442,6 +438,119 @@
</select>
</div>
</div>
+ <!-- <div
+ style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+ <div
+ style="width: 32%; margin-left: 2%; float: left; height: 37px;">
+ <input id="prodId1" name="prodId" type="hidden"
+ value="${settingList[0].real_trak_time}">
+ <label for="real_trak_time">杞ㄨ抗鏃堕暱</label>
+ <select class="form-control form-control-lg" id="real_trak_time"
+ style="font-size: 6px; height: 20px; padding: 0px 0px; width: 150px; display: inline;">
+ <option value="涓嶆樉绀哄疄鏃惰建杩�">涓嶆樉绀哄疄鏃惰建杩�</option>
+ <option value="10绉掗挓">10绉掗挓</option>
+ <option value="30绉掗挓">30绉掗挓</option>
+ <option value="1鍒嗛挓">1鍒嗛挓</option>
+ <option value="10鍒嗛挓">10鍒嗛挓</option>
+ <option value="30鍒嗛挓">30鍒嗛挓</option>
+ <option value="1灏忔椂">1灏忔椂</option>
+ </select>
+ </div>
+ <div
+ style="width: 32%; margin-left: 1%; float: left; height: 37px;">
+ <input id="prodId2" name="prodId" type="hidden"
+ value="${settingList[0].real_trak_color}">
+ <label for="real_trak_time">杞ㄨ抗棰滆壊</label>
+ <select class="form-control form-control-lg" id="real_trak_color"
+ style="font-size: 6px; height: 20px; padding: 0px 0px; width: 150px; display: inline;">
+ <option value="绾㈣壊">绾㈣壊</option>
+ <option value="钃濊壊">钃濊壊</option>
+ <option value="榛戣壊">榛戣壊</option>
+ <option value="鐧借壊">鐧借壊</option>
+ <option value="缁胯壊">缁胯壊</option>
+ <option value="榛勮壊">榛勮壊</option>
+ </select>
+ </div>
+ </div> -->
+ <div class="partTitle" style="margin: 20px 20px;">
+ <label for="exampleFormControlInput1">瀵艰埅鏄剧ず璁剧疆</label>
+ </div>
+ <div
+ style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+ <div style="width: 19%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="labelb"
+ value="${dataList[0].label}"> <label
+ class="custom-control-label" for="labelb">鏍囩绠$悊</label>
+ </div>
+ <div style="width: 19%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="achorb"
+ value="${dataList[0].achor}"> <label
+ class="custom-control-label" for="achorb">鍩虹珯绠$悊</label>
+ </div>
+ <div style="width: 19%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="gpsb"
+ value="${dataList[0].gps}"> <label
+ class="custom-control-label" for="gpsb">鍗槦瀹氫綅</label>
+ </div>
+ <div style="width: 19%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="fenceb"
+ value="${dataList[0].fence}"> <label
+ class="custom-control-label" for="fenceb">鍥存爮绠$悊</label>
+ </div>
+ <div style="width: 19%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="warningb"
+ value="${dataList[0].warning}"> <label
+ class="custom-control-label" for="warningb">鍛婅绠$悊</label>
+ </div>
+ </div>
+ <div
+ style="width: 90%; margin: 0 auto; overflow: auto; _display: inline-block;">
+ <div style="width: 19%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="historyb"
+ value="${dataList[0].history}"> <label
+ class="custom-control-label" for="historyb">鍘嗗彶杞ㄨ抗</label>
+ </div>
+ <div style="width: 19%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="attendanceb"
+ value="${dataList[0].attendance}"> <label
+ class="custom-control-label" for="attendanceb">浜哄憳绠$悊</label>
+ </div>
+ <div style="width: 19%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="basiclnfob"
+ value="${dataList[0].basiclnfo}"> <label
+ class="custom-control-label" for="basiclnfob">鍩虹淇℃伅</label>
+ </div>
+ <div style="width: 19%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="videob"
+ value="${dataList[0].video}"> <label
+ class="custom-control-label" for="videob">瑙嗛鑱斿姩</label>
+ </div>
+ <div style="width: 19%; margin-left: 1%; float: left;"
+ class="custom-control custom-checkbox">
+ <input class="custom-control-input" type="checkbox"
+ name="checkSetting" id="gasb"
+ value="${dataList[0].gas}"> <label
+ class="custom-control-label" for="gasb">姘斾綋妫�娴�</label>
+ </div>
+ </div>
<div class="partTitle" style="margin: 20px 20px;">
<label for="exampleFormControlInput1">鍏朵粬璁剧疆</label>
</div>
@@ -495,20 +604,53 @@
<!-- END MAIN CONTAINER -->
<% String username=(String) session.getAttribute("username"); if (username==null || username.equals(""))
{ request.getRequestDispatcher("/hxzk/login.jsp").forward(request, response); return; } %>
+ <input type="hidden" name="xianusera" id="xianusera" value="<%=username%>">
<!-- BEGIN GLOBAL MANDATORY SCRIPTS -->
<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' });
+ };
},
});
- });
+ document.getElementById("xianuser").innerHTML=document.getElementById("xianusera").value
+ };
$('.header-page').load('/hxzkoa/hxzk/top.html');
$('.login-page').load('/hxzkoa/hxzk/head.html');
$(".modify").click(function () {
@@ -597,16 +739,66 @@
} else {
var gas_show = "0"
}
- if (document.getElementById("check16").checked) {
- var quiet = "1"
- } else {
- var quiet = "0"
- }
+ // if (document.getElementById("check16").checked) {
+ // var quiet = "1"
+ // } else {
+ // var quiet = "0"
+ // }
if (document.getElementById("check20").checked) {
var fence_show = "1"
} else {
var fence_show = "0"
}
+ if (document.getElementById("labelb").checked) {
+ var label = "1"
+ } else {
+ var label = "0"
+ }
+ if (document.getElementById("achorb").checked) {
+ var achor = "1"
+ } else {
+ var achor = "0"
+ }
+ if (document.getElementById("gpsb").checked) {
+ var gps = "1"
+ } else {
+ var gps = "0"
+ }
+ if (document.getElementById("fenceb").checked) {
+ var fence = "1"
+ } else {
+ var fence = "0"
+ }
+ if (document.getElementById("warningb").checked) {
+ var warning = "1"
+ } else {
+ var warning = "0"
+ }
+ if (document.getElementById("historyb").checked) {
+ var history = "1"
+ } else {
+ var history = "0"
+ }
+ if (document.getElementById("attendanceb").checked) {
+ var attendance = "1"
+ } else {
+ var attendance = "0"
+ }
+ if (document.getElementById("basiclnfob").checked) {
+ var basiclnfo = "1"
+ } else {
+ var basiclnfo = "0"
+ }
+ if (document.getElementById("videob").checked) {
+ var video = "1"
+ } else {
+ var video = "0"
+ }
+ if (document.getElementById("gasb").checked) {
+ var gas = "1"
+ } else {
+ var gas = "0"
+ }
var real_trak_time = $("#real_trak_time").val();
var real_trak_color = $("#real_trak_color").val();
var yulan_map_tu = $("#yulan_map_tu").val();
@@ -648,7 +840,7 @@
offView: offView,
anckicon: anckicon,
gas_show: gas_show,
- quiet: quiet,
+ // quiet: quiet,
real_trak_time: real_trak_time,
real_trak_color: real_trak_color,
yulan_map_tu: yulan_map_tu,
@@ -658,6 +850,16 @@
gas_port: gas_port,
gas_hz: gas_hz,
fence_show: fence_show,
+ label:label,
+ achor:achor,
+ gps:gps,
+ fence:fence,
+ warning:warning,
+ history:history,
+ attendance:attendance,
+ basiclnfo:basiclnfo,
+ video:video,
+ gas:gas,
},
dataType: "json"
});
--
Gitblit v1.10.0