mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-10-29 08:58:22 +08:00
style(node): 权限节点页开启状态不再显示蓝色徽章,仅关闭节点保留红色标注
This commit is contained in:
57
app/admin/view/system/node/index.html
Normal file
57
app/admin/view/system/node/index.html
Normal file
@@ -0,0 +1,57 @@
|
||||
<div class="layuimini-container">
|
||||
<div class="layuimini-main">
|
||||
<div class="layui-tabs">
|
||||
<ul class="layui-tabs-header">
|
||||
{volist name='module_list' id='vo'}
|
||||
<li>{$vo.title}</li>
|
||||
{/volist}
|
||||
</ul>
|
||||
<div class="layui-tabs-body">
|
||||
{volist name='module_list' id='module_tab'}
|
||||
<div class="layui-tabs-item">
|
||||
<table class="layui-table" lay-size="sm">
|
||||
<colgroup>
|
||||
<col>
|
||||
<col>
|
||||
<col>
|
||||
</colgroup>
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="white-space: nowrap;">模块</th>
|
||||
<th>功能</th>
|
||||
<th>权限</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{volist name='$module_list' id='module'}
|
||||
{volist name='$module.children' id='controller_item'}
|
||||
{if $module_tab.title == '全部' || $controller_item.module == $module_tab.title }
|
||||
<tr>
|
||||
<td style="white-space: nowrap;">{$controller_item.module}</td>
|
||||
<td title="{$controller_item.node}">{$controller_item.title}</td>
|
||||
<td>
|
||||
<div class="layui-btn-container">
|
||||
{volist name='controller_item.children' id='action'}
|
||||
<button type="button" class="layui-btn layui-btn-primary layui-btn-xs" title="{$action.node}">
|
||||
{$action.title}
|
||||
{if !$action.auth}
|
||||
<span class="layui-badge" title="已关闭权限控制">
|
||||
关闭
|
||||
</span>
|
||||
{/if}
|
||||
</button>
|
||||
{/volist}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{/if}
|
||||
{/volist}
|
||||
{/volist}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{/volist}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user