From df938f06da12eddacfc9d2aee52d153222f5aa2c Mon Sep 17 00:00:00 2001 From: 李宇 <986321569@qq.com> Date: 星期一, 26 四月 2021 10:15:17 +0800 Subject: [PATCH] 添加注释 --- src/main/webapp/user_mng.xhtml | 16 +++++++++++----- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/user_mng.xhtml b/src/main/webapp/user_mng.xhtml index 674fe75..5e590ba 100644 --- a/src/main/webapp/user_mng.xhtml +++ b/src/main/webapp/user_mng.xhtml @@ -37,23 +37,29 @@ <p:panel styleClass="center-body"> <p:panelGrid columns="5" styleClass="btn"> <p:commandButton value="新建" styleClass="new-btn" - process="@this" + process="@form" actionListener="#{userMngController.onNewBtnClick}" oncomplete="PF('dialog').show();" - update=":dialog,:dialogForm"></p:commandButton> + update=":dialog,:dialogForm" + rendered="#{userMngController.isAccess('新增')}"></p:commandButton> <p:commandButton value="修改" styleClass="edit-btn" process="@form" actionListener="#{userMngController.onEditBtnClick}" - update=":dialog,:dialogForm"></p:commandButton> + update=":dialog,:dialogForm" + rendered="#{userMngController.isAccess('修改')}"></p:commandButton> <p:commandButton value="删除" styleClass="del-btn" process="@form" actionListener="#{userMngController.onDeleteBtnClick}" - update="@form"> + update="@form" + rendered="#{userMngController.isAccess('删除')}"> <p:confirm header="确认" message="确认操作?"></p:confirm> </p:commandButton> <p:commandButton value="导入" styleClass="import-btn" onclick="importUser()" + rendered="#{userMngController.isAccess('导入')}" ></p:commandButton> - <a href="resources/template/用户导入模板.xlsx" style="display: inline-block;"><img src="resources/images/xlsx.png" width="30px;" alt=""/></a> + <p:outputLabel rendered="#{userMngController.isAccess('导入')}"> + <a href="resources/template/用户导入模板.xlsx" style="display: inline-block;"><img src="resources/images/xlsx.png" width="30px;" alt=""/></a> + </p:outputLabel> <script> function importUser(){ $("#userMngForm\\:importUserBtn_input").click(); -- Gitblit v1.9.2