From c7a4407cd2ba489c2248e8967cddb116a4e75d3d Mon Sep 17 00:00:00 2001
From: whyclj <1525436766@qq.com>
Date: 星期三, 02 一月 2019 11:23:41 +0800
Subject: [PATCH] 权限管理页面中添加电池组信息的查询,添加,删除,修改权限

---
 gx_tieta/WebRoot/power.jsp |   80 +++++++++++++++++++++++++++++++++++++++
 1 files changed, 79 insertions(+), 1 deletions(-)

diff --git a/gx_tieta/WebRoot/power.jsp b/gx_tieta/WebRoot/power.jsp
index 53a2b3b..68ec1b3 100644
--- a/gx_tieta/WebRoot/power.jsp
+++ b/gx_tieta/WebRoot/power.jsp
@@ -239,6 +239,20 @@
 					</table>
 				</div>
 			</div>
+			<div class="list-con">
+				<div class="list list1">
+					<span><s:text name="Batt_configuration_information"/><s:text name="Permit"/></span>			<!-- 浣滀笟鍙樻洿绠$悊鏉冮檺 -->
+					<table>
+						<tr>
+							<td><input type="checkbox" id="battcfg_query_permit"><s:text name="Search"/></td>					<!-- 鏌ヨ -->
+							<td><input type="checkbox" id="battcfg_add_permit"><s:text name="Add"/></td>						<!-- 娣诲姞 -->
+							<td><input type="checkbox" id="battcfg_modify_permit"><s:text name="Edit"/></td>					<!-- 缂栬緫 -->
+							<td><input type="checkbox" id="battcfg_del_permit"><s:text name="Delete"/></td>						<!-- 鍒犻櫎 -->
+						</tr>
+					</table>
+				</div>
+				
+			</div>
 			<!-- 璁剧疆褰撳墠瀹瑰櫒閬僵灞� -->
 			<div class="mask"></div>
 		</div>
@@ -1271,7 +1285,35 @@
 					if(list[i].permit_item_value == 1){
 						$('#batt_map_delete_permit').prop('checked',true);
 					}
-				}				
+				}		
+				
+				//44鐢垫睜缁勪俊鎭厤缃�     鏌ヨ
+				if(list[i].permit_item_name ==  'battcfg_query_permit'){
+					if(list[i].permit_item_value == 1){
+						$('#battcfg_query_permit').prop('checked',true);
+					}
+				}	
+				
+				//45鐢垫睜缁勪俊鎭厤缃�     娣诲姞
+				if(list[i].permit_item_name ==  'battcfg_add_permit'){
+					if(list[i].permit_item_value == 1){
+						$('#battcfg_add_permit').prop('checked',true);
+					}
+				}	
+				
+				//46鐢垫睜缁勪俊鎭厤缃�     淇敼
+				if(list[i].permit_item_name ==  'battcfg_modify_permit'){
+					if(list[i].permit_item_value == 1){
+						$('#battcfg_modify_permit').prop('checked',true);
+					}
+				}	
+				
+				//47鐢垫睜缁勪俊鎭厤缃�    鍒犻櫎
+				if(list[i].permit_item_name ==  'battcfg_del_permit'){
+					if(list[i].permit_item_value == 1){
+						$('#battcfg_del_permit').prop('checked',true);
+					}
+				}	
 			}
 		}
 	}
@@ -1733,6 +1775,42 @@
 							list[i].permit_item_value = 0;
 						}
 					}
+					
+					//44鐢垫睜缁勪俊鎭厤缃�	鏌ヨ
+					if (list[i].permit_item_name == 'battcfg_query_permit') {
+						if($('#battcfg_query_permit').is(':checked')){
+							list[i].permit_item_value = 1;
+						}else{
+							list[i].permit_item_value = 0;
+						}
+					}
+					
+					//45鐢垫睜缁勪俊鎭厤缃�	娣诲姞
+					if (list[i].permit_item_name == 'battcfg_add_permit') {
+						if($('#battcfg_add_permit').is(':checked')){
+							list[i].permit_item_value = 1;
+						}else{
+							list[i].permit_item_value = 0;
+						}
+					}	
+					
+					//46鐢垫睜缁勪俊鎭厤缃�	缂栬緫
+					if (list[i].permit_item_name == 'battcfg_modify_permit') {
+						if($('#battcfg_modify_permit').is(':checked')){
+							list[i].permit_item_value = 1;
+						}else{
+							list[i].permit_item_value = 0;
+						}
+					}
+					
+					//47鐢垫睜缁勪俊鎭厤缃�	鍒犻櫎
+					if (list[i].permit_item_name == 'battcfg_del_permit') {
+						if($('#battcfg_del_permit').is(':checked')){
+							list[i].permit_item_value = 1;
+						}else{
+							list[i].permit_item_value = 0;
+						}
+					}
 				}
 			}
 		}

--
Gitblit v1.9.1