修改模板文件

This commit is contained in:
邹景立 2021-07-15 14:02:34 +08:00
parent 1f7f94431c
commit 48f80dd9ba
4 changed files with 16 additions and 9 deletions

View File

@ -14,8 +14,7 @@
{block name="script"} {block name="script"}
<script> <script>
window.RoleAction = new function () { window.RoleAction = new function () {
this.data = {}; this.data = {}, this.ztree = null;
this.ztree = null;
this.setting = { this.setting = {
view: {showLine: false, showIcon: false, dblClickExpand: false}, view: {showLine: false, showIcon: false, dblClickExpand: false},
check: {enable: true, nocheck: false, chkboxType: {"Y": "ps", "N": "ps"}}, check: {enable: true, nocheck: false, chkboxType: {"Y": "ps", "N": "ps"}},

View File

@ -3,13 +3,15 @@
<div class="layui-card-body padding-left-40"> <div class="layui-card-body padding-left-40">
<label class="layui-form-item relative block"> <label class="layui-form-item relative block">
<span class="color-green font-w7">访问权限名称</span><span class="color-desc margin-left-5">Permission Name</span> <span class="color-green font-w7">访问权限名称</span>
<input type="text" name="title" value='{$vo.title|default=""}' required placeholder="请输入访问权限名称" class="layui-input"> <span class="color-desc margin-left-5">Role Name</span>
<span class="help-block">权限名称需要保持不重复,在给用户授权时需要根据名称选择!</span> <input type="text" name="title" class="layui-input" value='{$vo.title|default=""}' required placeholder="请输入访问权限名称">
<span class="help-block">访问权限名称需要保持不重复,在给用户授权时需要根据名称选择!</span>
</label> </label>
<label class="layui-form-item relative block"> <label class="layui-form-item relative block">
<span class="color-green font-w7">访问权限描述</span><span class="color-desc margin-left-5">Permission Remark</span> <span class="color-green font-w7">访问权限描述</span>
<span class="color-desc margin-left-5">Role Remark</span>
<textarea placeholder="请输入访问权限描述" class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea> <textarea placeholder="请输入访问权限描述" class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea>
</label> </label>

View File

@ -20,10 +20,13 @@
<th class='list-table-check-td think-checkbox'> <th class='list-table-check-td think-checkbox'>
<label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label> <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
</th> </th>
<th class='list-table-sort-td'>
<button type="button" data-reload class="layui-btn layui-btn-xs"> </button>
</th>
<th class='text-left nowrap'>权限名称</th> <th class='text-left nowrap'>权限名称</th>
<th class='text-left nowrap'>权限描述</th> <th class='text-left nowrap'>权限描述</th>
<th class='text-left nowrap'>创建时间</th> <th class='text-left nowrap'>创建时间</th>
<th class="text-center nowrap">使用状态</th> <th class="text-left nowrap">使用状态</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@ -34,11 +37,14 @@
<td class='list-table-check-td think-checkbox'> <td class='list-table-check-td think-checkbox'>
<label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label> <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
</td> </td>
<td class='list-table-sort-td'>
<label><input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input"></label>
</td>
<td class='text-left'>{$vo.title|default='-'}</td> <td class='text-left'>{$vo.title|default='-'}</td>
<td class='text-left'>{$vo.desc|default="没有写描述哦!"}</td> <td class='text-left'>{$vo.desc|default="没有写描述哦!"}</td>
<td class="text-left nowrap">{$vo.create_at|format_datetime}</td> <td class="text-left nowrap">{$vo.create_at|format_datetime}</td>
<td class='text-left nowrap'>{eq name='vo.status' value='0'}<span class="color-red">已禁用</span>{else}<span class="color-green">已激活</span>{/eq}</td> <td class='text-left nowrap'>{eq name='vo.status' value='0'}<span class="color-red">已禁用</span>{else}<span class="color-green">已激活</span>{/eq}</td>
<td class='text-center nowrap'> <td class='text-left nowrap'>
<!--{if auth("edit")}--> <!--{if auth("edit")}-->
<a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑权限" data-modal='{:url("edit")}?id={$vo.id}'> </a> <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑权限" data-modal='{:url("edit")}?id={$vo.id}'> </a>
<!--{/if}--> <!--{/if}-->

View File

@ -27,7 +27,7 @@
<li data-open="{:url('index')}?type={$k}">{$v}</li> <li data-open="{:url('index')}?type={$k}">{$v}</li>
{/if}{/foreach} {/if}{/foreach}
</ul> </ul>
<div class="layui-tab-content think-box-shadow'amount''amount'"> <div class="layui-tab-content think-box-shadow">
{include file='user/index_search'} {include file='user/index_search'}
<table class="layui-table margin-top-10" lay-skin="line"> <table class="layui-table margin-top-10" lay-skin="line">
{notempty name='list'} {notempty name='list'}