mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
更新权限模块
This commit is contained in:
parent
bcf150af6c
commit
5fa7a4b5d4
@ -19,6 +19,7 @@
|
|||||||
<button type="submit" class="layui-btn layui-btn-normal layui-btn-mini">排 序</button>
|
<button type="submit" class="layui-btn layui-btn-normal layui-btn-mini">排 序</button>
|
||||||
</th>
|
</th>
|
||||||
<th class='text-center'>权限名称</th>
|
<th class='text-center'>权限名称</th>
|
||||||
|
<th class='text-center'>权限描述</th>
|
||||||
<th class='text-center'>状态</th>
|
<th class='text-center'>状态</th>
|
||||||
<th class='text-center'>操作</th>
|
<th class='text-center'>操作</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -33,6 +34,7 @@
|
|||||||
<input name="_{$vo.id}" value="{$vo.sort}" class="list-sort-input"/>
|
<input name="_{$vo.id}" value="{$vo.sort}" class="list-sort-input"/>
|
||||||
</td>
|
</td>
|
||||||
<td class='text-center'>{$vo.name}</td>
|
<td class='text-center'>{$vo.name}</td>
|
||||||
|
<td class='text-center'>{$vo.desc|default="<span style='color:#ccc'>没有写描述哦!</span>"}</td>
|
||||||
<td class='text-center'>
|
<td class='text-center'>
|
||||||
{if $vo.status eq 0}
|
{if $vo.status eq 0}
|
||||||
<span>已禁用</span>
|
<span>已禁用</span>
|
||||||
@ -40,7 +42,23 @@
|
|||||||
<span style="color:#090">使用中</span>
|
<span style="color:#090">使用中</span>
|
||||||
{/if}
|
{/if}
|
||||||
</td>
|
</td>
|
||||||
<td class='text-center nowrap'></td>
|
<td class='text-center nowrap'>
|
||||||
|
{if auth("$classuri/edit")}
|
||||||
|
<span class="text-explode">|</span>
|
||||||
|
<a data-modal='{:url("$classuri/edit")}?id={$vo.id}' href="javascript:void(0)">编辑</a>
|
||||||
|
{/if}
|
||||||
|
{if $vo.status eq 1 and auth("$classuri/forbid")}
|
||||||
|
<span class="text-explode">|</span>
|
||||||
|
<a data-update="{$vo.id}" data-field='status' data-value='0'data-action='{:url("$classuri/forbid")}' href="javascript:void(0)">禁用</a>
|
||||||
|
{elseif auth("$classuri/resume")}
|
||||||
|
<span class="text-explode">|</span>
|
||||||
|
<a data-update="{$vo.id}" data-field='status' data-value='1' data-action='{:url("$classuri/resume")}' href="javascript:void(0)">启用</a>
|
||||||
|
{/if}
|
||||||
|
{if auth("$classuri/del")}
|
||||||
|
<span class="text-explode">|</span>
|
||||||
|
<a data-update="{$vo.id}" data-field='delete' data-action='{:url("$classuri/del")}' href="javascript:void(0)">删除</a>
|
||||||
|
{/if}
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user