110 lines
4.3 KiB
Plaintext
110 lines
4.3 KiB
Plaintext
|
|
<div id="grid">
|
||
|
|
<div class="grid_toolbar">
|
||
|
|
<table style="width:100%;">
|
||
|
|
<tr>
|
||
|
|
<td style="width:100%;">
|
||
|
|
<#if op_Add>
|
||
|
|
<button type="button" id="btn1" ui-config="style:'button_submit'">添加
|
||
|
|
</button>
|
||
|
|
</#if>
|
||
|
|
<#if op_Delete>
|
||
|
|
<button type="button" id="btn2" ui-config="style:'button_danger'">删除
|
||
|
|
</button>
|
||
|
|
</#if>
|
||
|
|
<#if op_Add&&op_Delete>
|
||
|
|
<span class="sep"></span>
|
||
|
|
</#if>
|
||
|
|
<#if op_setPermission||op_setRoleUsers>
|
||
|
|
<button type="button" id="btnAuth" ui-config="fontIcon: {
|
||
|
|
left: {icon: 'fa-wrench', color: '#000', size: 16},
|
||
|
|
right: {icon: 'fa-caret-down', color: '#000', size: 16}
|
||
|
|
}">授权
|
||
|
|
</button>
|
||
|
|
</#if>
|
||
|
|
<#if (op_setPermission||op_setRoleUsers)&&op_RoleStatus>
|
||
|
|
<span class="sep"></span>
|
||
|
|
</#if>
|
||
|
|
<#if op_RoleStatus>
|
||
|
|
<button type="button" id="btnMore" ui-config="fontIcon: {
|
||
|
|
left: {icon: 'fa-navicon (alias)', color: '#000', size: 16},
|
||
|
|
right: {icon: 'fa-caret-down', color: '#000', size: 16}
|
||
|
|
}">更多操作
|
||
|
|
</button>
|
||
|
|
</#if>
|
||
|
|
</td>
|
||
|
|
<td>
|
||
|
|
<input id="searchbox" type="text">
|
||
|
|
</td>
|
||
|
|
</tr>
|
||
|
|
</table>
|
||
|
|
</div>
|
||
|
|
<table class="grid_data">
|
||
|
|
<thead>
|
||
|
|
<tr>
|
||
|
|
<td style="width: 20px;"><input class="grid_selector" type="checkbox" id="cbAll"/></td>
|
||
|
|
<#if op_Eidt||op_Delete>
|
||
|
|
<td style="width: 44px;">操作</td>
|
||
|
|
</#if>
|
||
|
|
<td style="width: 28px;">序号</td>
|
||
|
|
<td sortfield="rol.name">角色名称</td>
|
||
|
|
<td sortfield="rol.status">当前状态</td>
|
||
|
|
<td sortfield="rol.roletype">角色类型</td>
|
||
|
|
<td sortfield="usr.username">创建人</td>
|
||
|
|
<td sortfield="org.NAME">创建人部门</td>
|
||
|
|
<td sortfield="rol.creater_time">创建时间</td>
|
||
|
|
<td>备注</td>
|
||
|
|
</tr>
|
||
|
|
</thead>
|
||
|
|
<tbody>
|
||
|
|
<tr class="row{{i%2}}">
|
||
|
|
<td><input class="grid_selector" type="checkbox" id="cb{{i}}"/></td>
|
||
|
|
<#if op_Eidt||op_Delete>
|
||
|
|
<td class="tableCenterTd">
|
||
|
|
<#if op_Eidt>
|
||
|
|
|
||
|
|
<a class="icon icon_rowedit" title="编辑" href="javascript:void(0);"
|
||
|
|
onclick="editRow('{{value.id}}');"></a>
|
||
|
|
</#if>
|
||
|
|
<#if op_Eidt&&op_Delete><span class="sep"></span></#if>
|
||
|
|
<#if op_Delete>
|
||
|
|
<a class="icon icon_rowdelete" title="删除" href="javascript:void(0);"
|
||
|
|
onclick="deleteRow('{{value.id}}');"></a>
|
||
|
|
</#if>
|
||
|
|
</td>
|
||
|
|
</#if>
|
||
|
|
<td>{{i+1}}</td>
|
||
|
|
<td><a title="查看" href="javascript:void(0);"
|
||
|
|
onclick="viewRow('{{value.id}}','{{value.name}}');">{{value.name}}</a></td>
|
||
|
|
<td>{{value.status |statusFilter}}</td>
|
||
|
|
<td>{{value.roletype |roletypeFilter}}</td>
|
||
|
|
<td>{{value.username}}</td>
|
||
|
|
<td>{{value.orgname}}</td>
|
||
|
|
<td>{{value.creater_time |dateTimeFilter}}</td>
|
||
|
|
<td>{{value.reamrk}}</td>
|
||
|
|
</tr>
|
||
|
|
</tbody>
|
||
|
|
</table>
|
||
|
|
<div class="grid_pagination"></div>
|
||
|
|
</div>
|
||
|
|
<div id="auth_menu" style="display: none;">
|
||
|
|
<ul>
|
||
|
|
<#if op_setPermission>
|
||
|
|
<li ui-config="id:1,icon:'cog',fontIcon:{icon: 'fa-puzzle-piece', color: '#000', size: 16},url:'#'">设置功能权限
|
||
|
|
</li>
|
||
|
|
</#if>
|
||
|
|
<#if hasUserService&&op_setRoleUsers>
|
||
|
|
<li ui-config="id:2,icon:'cog',fontIcon:{icon: 'fa-user', color: '#000', size: 16},url:'#'">设置角色用户
|
||
|
|
</li>
|
||
|
|
</#if>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div id="more_menu" style="display: none;">
|
||
|
|
<ul>
|
||
|
|
<#if op_RoleStatus>
|
||
|
|
<li ui-config="id:1,icon:'cog',fontIcon:{icon: 'fa-stop', color: '#a90329', size: 16},url:'#'">角色停定
|
||
|
|
</li>
|
||
|
|
<li ui-config="id:2,icon:'cog',fontIcon:{icon: 'fa-unlock', color: '#000', size: 16},url:'#'">角色启用
|
||
|
|
</li>
|
||
|
|
</#if>
|
||
|
|
</ul>
|
||
|
|
</div>
|