63 lines
1.5 KiB
PHP
63 lines
1.5 KiB
PHP
@extends('admin.layouts.base')
|
|
@section('add_css')
|
|
|
|
@endsection
|
|
@section('content')
|
|
|
|
|
|
<div class="layui-card">
|
|
|
|
<div class="layui-card-body">
|
|
|
|
<table id="LAY-list-table" lay-filter="LAY-list-table"></table>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
|
|
@endsection
|
|
@section('add_js')
|
|
@include('admin.layouts.layui_tpl')
|
|
@include('admin.layouts.common_index')
|
|
<script>
|
|
|
|
|
|
layui.use(['index', 'table', 'listable'], function () {
|
|
var $ = layui.$
|
|
, form = layui.form
|
|
, listable = layui.listable
|
|
, table = layui.table;
|
|
var element = layui.element;
|
|
|
|
|
|
|
|
cols=[[
|
|
|
|
{field: 'id', width: 80, title: 'ID', sort: true}
|
|
, {field: 'name', title: '商户'}
|
|
, {field: 'type_name', title: '交易类型'}
|
|
, {field: 'before_money', title: '变动前'}
|
|
, {field: 'after_money', title: '变动金额'}
|
|
, {field: 'money', title: '金额',style:"color:#f00"}
|
|
, {field: 'mark', title: '备注'}
|
|
, {field: 'created_at', title: '时间'}
|
|
|
|
|
|
]];
|
|
listable.list(listable_url,cols,{
|
|
where:{
|
|
id:"{{ request()->input('id') }}"
|
|
}
|
|
});
|
|
|
|
//监听表操作
|
|
listable.handle();
|
|
listable.top_handle();
|
|
|
|
|
|
});
|
|
</script>
|
|
@endsection |