From b268b39629bcc2dfbac978b5c53b67db3b71a839 Mon Sep 17 00:00:00 2001 From: 81041 <81041@DESKTOP-025NVD9> Date: 星期五, 04 一月 2019 14:03:16 +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