caipan_shop_admin/view/manager/role/index.html

29 lines
1.6 KiB
HTML
Executable File

{layout name="manager/layout" /}
<div class="layuimini-container location-index-page">
<div class="layuimini-main">
<div>
<table id="table-container" class="layui-table" data-url="/manager/role" lay-filter="table-container"></table>
</div>
</div>
</div>
<!---状态变更 -->
<script type="text/html" id="row-status">
<input type="checkbox" name="status" value="{{d.id}}" lay-skin="switch" lay-text="正常|禁用" lay-filter="changeStatus" {{ d.status == 1 ? 'checked' : '' }}>
</script>
<!-- 操作列 -->
<script type="text/html" id="row-operate">
<a class="layui-btn layui-btn-normal layui-btn-xs" data-href="/manager/role/rule.html?id={{d.id}}" data-title="设置权限" lay-event="auth">权限</a>
<a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/role/edit.html?id={{d.id}}" data-title="编辑角色" lay-event="edit">编辑</a>
<a class="layui-btn layui-btn-danger layui-btn-xs" data-href="/manager/role/del.html" lay-event="del">删除</a>
</script>
<!-- toolbar -->
<script type="text/html" id="toolbar-tpl">
<a class="layui-btn layui-btn-sm layui-btn-sm" data-table-refresh lay-event="refresh"><i class="fa fa-refresh"></i></a>
<a class="layui-btn layui-btn-normal layui-btn-sm" data-href="/manager/role/add.html" data-title="添加角色" lay-event="add"><i class="fa fa-plus"></i> </a>
<a class="layui-btn layui-btn-danger layui-btn-sm" data-href="/manager/role/del.html" lay-event="del"><i class="fa fa-trash-o"></i> </a>
</script>
<script src="__MANAGER__/js/role.js?v={:mt_rand()}"></script>