57 lines
1.2 KiB
PHP
57 lines
1.2 KiB
PHP
@extends('merchant.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')
|
|
|
|
<script>
|
|
|
|
listable_url="{{ action($controller.'@apiJson') }}";
|
|
layui.use(['index', 'table', 'listable'], function () {
|
|
var $ = layui.$
|
|
, form = layui.form
|
|
, listable = layui.listable
|
|
, table = layui.table;
|
|
var element = layui.element;
|
|
|
|
|
|
|
|
cols=[[
|
|
{type: 'checkbox', fixed: 'left'}
|
|
, {field: 'id', width: 80, title: 'ID', sort: true}
|
|
, {field: 'desc', title: '描述'}
|
|
, {field: 'admin_name', title: '操作人'}
|
|
, {field: 'ip', title: '操作ip'}
|
|
|
|
|
|
, {field: 'created_at', title: '操作时间'}
|
|
|
|
|
|
]];
|
|
listable.list(listable_url,cols);
|
|
|
|
//监听表操作
|
|
listable.handle();
|
|
listable.top_handle();
|
|
|
|
|
|
});
|
|
</script>
|
|
@endsection |