| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
- <%@include file="/context/mytags.jsp"%>
- <style>
- #searchColums{
- padding: 10px;
- }
- </style>
- <!-- update-begin--Author:xuelin Date:20170331 for:[#1714]【功能】角色分配菜单权限的时候,权限树采用ztree重写,不再采用easyui的树 新增 引入ztree插件包-------------------- -->
- <t:base type="jquery,easyui,tools,DatePicker,ztree"></t:base>
- <!-- update-end--Author:xuelin Date:20170331 for:[#1714]【功能】角色分配菜单权限的时候,权限树采用ztree重写,不再采用easyui的树 新增引入ztree插件包---------------------- -->
- <div class="easyui-layout" fit="true">
- <div region="center" style="padding:0px;border:0px">
- <t:datagrid name="roleList" title="common.role.list" actionUrl="roleController.do?roleGrid" fitColumns="true" idField="id" sortName="id" sortOrder="desc" queryMode="group" >
- <t:dgCol title="common.code" field="id" hidden="true"></t:dgCol>
- <t:dgCol title="common.role.code" field="roleCode" width="100"></t:dgCol>
- <t:dgCol title="common.role.name" field="roleName" query="true" width="100"></t:dgCol>
- <t:dgCol title="能否登录app" field="apploginAbleFlag" dictionary="applogin_able_flag" query="false" width="100"></t:dgCol>
- <t:dgCol title="角色权值" field="selfRoleweightCode" query="false" width="100"></t:dgCol>
- <t:dgCol title="可见权限范围" field="visibleRoleweightCode" query="false" width="100"></t:dgCol>
-
- <t:dgCol title="common.createby" field="createBy" hidden="true"></t:dgCol>
- <t:dgCol title="common.createtime" field="createDate" formatter="yyyy-MM-dd" hidden="true"></t:dgCol>
- <t:dgCol title="common.updateby" field="updateBy" hidden="true"></t:dgCol>
- <t:dgCol title="common.updatetime" field="updateDate" formatter="yyyy-MM-dd" hidden="true"></t:dgCol>
-
- <t:dgCol title="common.operation" field="opt"></t:dgCol>
- <t:dgFunOpt funname="delRole(id)" title="common.delete" urlclass="ace_button" urlStyle="background-color:#ec4758;" urlfont="fa-trash-o"></t:dgFunOpt>
- <t:dgFunOpt funname="userListbyrole(id,roleName)" title="common.user" urlclass="ace_button" urlfont="fa-user"></t:dgFunOpt>
- <t:dgFunOpt funname="setfunbyrole(id,roleName)" title="permission.set" urlclass="ace_button" urlStyle="background-color:#18a689;" urlfont="fa-cog"></t:dgFunOpt>
-
- <t:dgToolBar title="common.add.param" langArg="common.role" icon="icon-add" operationCode="add" url="roleController.do?addorupdate" funname="add"></t:dgToolBar>
- <t:dgToolBar title="common.edit.param" langArg="common.role" icon="icon-edit" operationCode="edit" url="roleController.do?addorupdate" funname="update"></t:dgToolBar>
- <%-- <t:dgToolBar title="excelImport" icon="fa fa-arrow-circle-left" funname="ImportXls"></t:dgToolBar> --%>
- <t:dgToolBar title="excelOutput" icon="icon-putout" operationCode="putout" funname="ExportXls"></t:dgToolBar>
- <%-- <t:dgToolBar title="templateDownload" icon="fa fa-arrow-circle-o-down" funname="ExportXlsByT"></t:dgToolBar> --%>
- </t:datagrid></div>
- </div>
- <div region="east" style="width: 600px;" split="true">
- <div tools="#tt" class="easyui-panel" title='<t:mutiLang langKey="permission.set"/>' style="padding: 10px;" fit="true" border="false" id="function-panel"></div>
- </div>
- <div id="tt"></div>
- </div>
- <script type="text/javascript">
- function setfunbyrole(id,roleName) {
- $("#function-panel").panel(
- {
- title :roleName+ ':' + '<t:mutiLang langKey="current.permission"/>',
- href:"roleController.do?fun&roleId=" + id
- }
- );
- //$('#function-panel').panel("refresh" );
-
- }
- //update-start--Author:gaofeng Date:20140822 for:查看角色的所有用户信息
- function userListbyrole(id,roleName) {
- $("#function-panel").panel(
- {
- title :roleName+ ':' + '<t:mutiLang langKey="common.user"/>',
- href:"roleController.do?userList&roleId=" + id
- }
- );
- //$('#function-panel').panel("refresh" );
-
- }
- //update-end--Author:gaofeng Date:20140822 for:查看角色的所有用户信息
- //删除角色
- function delRole(id){
- var tabName= 'roleList';
- var url= 'roleController.do?delRole&id='+id;
- //$.dialog.confirm('<t:mutiLang langKey="confirm.delete.this.record"/>', function(){
- $.dialog.confirm('确定删除该角色吗?', function(){
- doSubmit(url,tabName);
- rowid = '';
- $("#function-panel").html("");//删除角色后,清空对应的权限
- }, function(){
- });
- }
- //导入
- function ImportXls() {
- openuploadwin('Excel导入', 'roleController.do?upload', "roleList");
- }
- //导出
- function ExportXls() {
- JeecgExcelExport("roleController.do?exportXls", "roleList");
- }
- //模板下载
- function ExportXlsByT() {
- JeecgExcelExport("roleController.do?exportXlsByT", "roleList");
- }
- </script>
|