From ced11a778b9bf4deee59445a41e3ede298d8c963 Mon Sep 17 00:00:00 2001 From: gdg <764716047@qq.com> Date: 星期四, 25 二月 2021 11:20:05 +0800 Subject: [PATCH] 人员管理的按钮权限和 可见人员权限 --- src/main/webapp/user_mng.xhtml | 22 +++++++++++++++++----- 1 files changed, 17 insertions(+), 5 deletions(-) diff --git a/src/main/webapp/user_mng.xhtml b/src/main/webapp/user_mng.xhtml index 09ccb1b..fd849e5 100644 --- a/src/main/webapp/user_mng.xhtml +++ b/src/main/webapp/user_mng.xhtml @@ -15,15 +15,21 @@ <p:panel styleClass="center-header"> <p:outputLabel styleClass="title" value="用户管理"></p:outputLabel> - <p:panelGrid styleClass="filter" columns="7"> + <p:panelGrid styleClass="filter" columns="11"> <p:outputLabel value="ARP号:"></p:outputLabel> <p:inputText value="#{userMngController.arp}"></p:inputText> <p:outputLabel value="姓名:"></p:outputLabel> <p:inputText value="#{userMngController.name}"></p:inputText> + <p:outputLabel value="课题组:"></p:outputLabel> + <p:inputText value="#{userMngController.project}"></p:inputText> + <p:outputLabel value="部门:"></p:outputLabel> <p:inputText value="#{userMngController.departmentName}"></p:inputText> + + <p:outputLabel value="单位:"></p:outputLabel> + <p:inputText value="#{userMngController.company}"></p:inputText> <p:commandLink styleClass="search" process="@form" update="@form"></p:commandLink> </p:panelGrid> @@ -34,20 +40,26 @@ process="@this" 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