From 535709f818914fcadade908675968425698ba6de Mon Sep 17 00:00:00 2001
From: hdw <hdw@192.168.7.127>
Date: 星期二, 08 一月 2019 14:25:27 +0800
Subject: [PATCH] 电池参数批量设置 修改
---
gx_tieta/WebRoot/power.jsp | 137 +++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 136 insertions(+), 1 deletions(-)
diff --git a/gx_tieta/WebRoot/power.jsp b/gx_tieta/WebRoot/power.jsp
index 53a2b3b..7d24994 100644
--- a/gx_tieta/WebRoot/power.jsp
+++ b/gx_tieta/WebRoot/power.jsp
@@ -239,6 +239,29 @@
</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 class="list list2">
+ <span><s:text name='Approval_station_install'/><s:text name="Permit"/></span> <!-- 鍩虹珯瀹夎瀹℃壒鏉冮檺 -->
+ <table>
+ <tr>
+ <td><input type="checkbox" id="install_look_permit"><s:text name="Search"/></td> <!-- 鏌ヨ -->
+ <td><input type="checkbox" id="install_appr_permit"><s:text name="Audit"/></td> <!-- 瀹℃牳 -->
+ <td><input type="checkbox" id="install_check_permit"><s:text name="Acceptance"/></td> <!-- 楠屾敹 -->
+ </tr>
+ </table>
+ </div>
+ </div>
<!-- 璁剧疆褰撳墠瀹瑰櫒閬僵灞� -->
<div class="mask"></div>
</div>
@@ -1271,7 +1294,56 @@
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);
+ }
+ }
+
+ //48鍩虹珯瀹夎瀹℃壒 鏌ヨ
+ if(list[i].permit_item_name == 'install_look_permit'){
+ if(list[i].permit_item_value == 1){
+ $('#install_look_permit').prop('checked',true);
+ }
+ }
+
+ //49鍩虹珯瀹夎瀹℃壒 瀹℃牳
+ if(list[i].permit_item_name == 'install_appr_permit'){
+ if(list[i].permit_item_value == 1){
+ $('#install_appr_permit').prop('checked',true);
+ }
+ }
+
+ //50绔欏畨瑁呭鎵� 楠屾敹
+ if(list[i].permit_item_name == 'install_check_permit'){
+ if(list[i].permit_item_value == 1){
+ $('#install_check_permit').prop('checked',true);
+ }
+ }
}
}
}
@@ -1733,6 +1805,69 @@
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;
+ }
+ }
+
+ //48鍩虹珯瀹夎瀹℃壒 鏌ヨ
+ if (list[i].permit_item_name == 'install_look_permit') {
+ if($('#install_look_permit').is(':checked')){
+ list[i].permit_item_value = 1;
+ }else{
+ list[i].permit_item_value = 0;
+ }
+ }
+
+ //49鍩虹珯瀹夎瀹℃壒 瀹℃牳
+ if (list[i].permit_item_name == 'install_appr_permit') {
+ if($('#install_appr_permit').is(':checked')){
+ list[i].permit_item_value = 1;
+ }else{
+ list[i].permit_item_value = 0;
+ }
+ }
+
+ //50鍩虹珯瀹夎瀹℃壒 楠屾敹
+ if (list[i].permit_item_name == 'install_check_permit') {
+ if($('#install_check_permit').is(':checked')){
+ list[i].permit_item_value = 1;
+ }else{
+ list[i].permit_item_value = 0;
+ }
+ }
}
}
}
--
Gitblit v1.9.1