73 lines
2.9 KiB
HTML
73 lines
2.9 KiB
HTML
![]() |
{extend name="../../admin/view/main"}
|
||
|
{block name="button"}
|
||
|
<!--{if auth("add")}-->
|
||
|
<button data-modal='{:url("add")}?system_id={$system_id}' data-title="添加接口" class='layui-btn layui-btn-sm layui-btn-primary'>添加接口</button>
|
||
|
<!--{/if}-->
|
||
|
|
||
|
<button data-open='{:url("/channel/system/index")}' data-title="返回系统列表" class='layui-btn layui-btn-sm layui-btn-primary'>返回系统列表</button>
|
||
|
|
||
|
{/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">
|
||
|
<table class="layui-table margin-top-10" lay-skin="line">
|
||
|
{notempty name='list'}
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th class='text-left nowrap' width="">接口ID</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'>
|
||
|
{$vo.id|default=''}
|
||
|
</td>
|
||
|
|
||
|
<td class='text-left nowrap'>
|
||
|
{$vo.api|default=''}
|
||
|
</td>
|
||
|
|
||
|
|
||
|
<td class='text-left nowrap'>
|
||
|
{$config['api_type'][$vo.type]|default=''}
|
||
|
</td>
|
||
|
|
||
|
<td class='text-left nowrap'>
|
||
|
{$config['request_method'][$vo.request_method]|default=''}
|
||
|
</td>
|
||
|
|
||
|
<td class='text-left nowrap'>
|
||
|
{$vo.create_at|format_datetime}
|
||
|
</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}&system_id={$system_id}'>编 辑</a>
|
||
|
|
||
|
<a class="layui-btn layui-btn-xs" data-title="字段设置" data-open='{:url("/channel/system_col/index")}?api_id={$vo.id}&system_id={$system_id}'>字段设置</a>
|
||
|
|
||
|
<!--{/if}-->
|
||
|
<!-- {if $vo.status eq 1 and auth("state")} -->
|
||
|
<a class="layui-btn layui-btn-danger layui-btn-xs" 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}
|