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 +++++++++++++++++++++++++++++++++++++++ gx_tieta/src/global_zh_CN.properties | 1 gx_tieta/WebRoot/WEB-INF/classes/global_zh_CN.properties | 1 3 files changed, 81 insertions(+), 1 deletions(-) diff --git a/gx_tieta/WebRoot/WEB-INF/classes/global_zh_CN.properties b/gx_tieta/WebRoot/WEB-INF/classes/global_zh_CN.properties index f0e0451..26138e4 100644 --- a/gx_tieta/WebRoot/WEB-INF/classes/global_zh_CN.properties +++ b/gx_tieta/WebRoot/WEB-INF/classes/global_zh_CN.properties @@ -782,6 +782,7 @@ No=\u5426 ################ power.jsp########################## +Permit = \u6743\u9650 Power_groups_list=\u6743\u9650\u7ec4\u5217\u8868 Power_groups_user_list=\u6743\u9650\u7ec4\u7528\u6237\u5217\u8868 Report_query=\u62a5\u8868\u67e5\u8be2\u6743\u9650 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; + } + } } } } diff --git a/gx_tieta/src/global_zh_CN.properties b/gx_tieta/src/global_zh_CN.properties index f0e0451..26138e4 100644 --- a/gx_tieta/src/global_zh_CN.properties +++ b/gx_tieta/src/global_zh_CN.properties @@ -782,6 +782,7 @@ No=\u5426 ################ power.jsp########################## +Permit = \u6743\u9650 Power_groups_list=\u6743\u9650\u7ec4\u5217\u8868 Power_groups_user_list=\u6743\u9650\u7ec4\u7528\u6237\u5217\u8868 Report_query=\u62a5\u8868\u67e5\u8be2\u6743\u9650 -- Gitblit v1.9.1