2024-11-02 15:27:08 +08:00

79 lines
2.8 KiB
HTML

{extend name="../../admin/view/main"}
{block name="button"}
<!--{if auth("add")}-->
<button data-modal='{:url("add")}' data-title="添加黑名单" class='layui-btn layui-btn-sm layui-btn-primary'>添加黑名单</button>
<!--{/if}-->
{/block}
{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white table-block">
<div class="layui-tab-content think-box-shadow table-block table-block">
{include file='black_card/index_search'}
<table class="layui-table margin-top-10" lay-skin="line">
{notempty name='list'}
<thead>
<tr>
<th class='text-left nowrap' width="">类型</th>
<th class='text-left nowrap' width="">卡号</th>
<th class='text-left nowrap' width="">备注</th>
<th class='text-left nowrap' width="">状态</th>
<th class='text-left nowrap' width="">时间</th>
<th></th>
</tr>
</thead>
{/notempty}
<tbody>
{foreach $list as $key=>$vo}
<tr>
<td class='text-left nowrap'>
{if $vo.type == 1}
<span>完全匹配</span>
{elseif $vo.type == 2}
<span>包含</span>
{elseif $vo.type == 3}
<span>不包含</span>
{/if}
</td>
<td class='text-left nowrap'>{$vo.value|default=''|raw}</td>
<td class='text-left nowrap'>{$vo.desc|default=''|raw}</td>
<td class='text-left nowrap'>
{if $vo.status == 1}
<span>可用</span>
{else}
<span>禁用</span>
{/if}
</td>
<td class='text-left nowrap'><span>{$vo.create_at|default=''|raw}</span></td>
<td class='text-left nowrap'>
<!--{if auth("edit")}-->
<a data-dbclick class="layui-btn layui-btn-xs" data-title="编辑" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
<!--{/if}-->
<!--{if auth("state") and $vo.status eq 1}-->
<a class="layui-btn layui-btn-xs layui-btn-warm" data-confirm="确定要禁用吗?" data-action="{:url('state')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('state')}">禁 用</a>
<!-- {elseif auth("state")} -->
<a class="layui-btn layui-btn-warm layui-btn-xs" data-confirm="确定要启用吗?" data-action="{:url('state')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('state')}">启 用</a>
<!-- {/if} -->
</td>
</tr>
{/foreach}
</tbody>
</table>
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
</div>
{/block}