49 lines
2.0 KiB
HTML
49 lines
2.0 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="think-box-shadow table-block">
|
||
|
|
||
|
{include file='account_log/index_search'}
|
||
|
<table class="layui-table margin-top-10" lay-skin="line">
|
||
|
{notempty name='list'}
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<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>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
{/notempty}
|
||
|
<tbody>
|
||
|
{foreach $list as $key=>$vo}
|
||
|
<tr data-dbclick>
|
||
|
<td class="text-left nowrap"><span class="color-blue">{$vo.name|default=''}</span></td>
|
||
|
<td class="text-left nowrap">{$vo.day}</td>
|
||
|
<td class="text-left nowrap">{if $vo.oper == -1}余额{elseif $vo.oper == 1}收入{else}支出{/if}</td>
|
||
|
<td class="text-left nowrap">{$vo.num|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}">编 辑</a>
|
||
|
{/if}
|
||
|
|
||
|
{if auth("remove")}
|
||
|
<a class="layui-btn layui-btn-xs layui-btn-danger" data-confirm="确定要删除该账单吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
|
||
|
{/if}
|
||
|
</td>
|
||
|
</tr>
|
||
|
{/foreach}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
||
|
</div>
|
||
|
{/block}
|