59 lines
1.8 KiB
PHP
59 lines
1.8 KiB
PHP
@extends('admin.layouts.base')
|
|
@section('add_css')
|
|
|
|
@endsection
|
|
@section('content')
|
|
|
|
<div class="layui-card">
|
|
|
|
<div class="layui-card-body">
|
|
<div style="padding-bottom: 10px;">
|
|
<button class="layui-btn layuiadmin-btn-tophandel" data-type="batchdel">删除</button>
|
|
<button class="layui-btn layuiadmin-btn-tophandel" data-type="add">添加</button>
|
|
</div>
|
|
<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.commonscript')
|
|
<script>
|
|
|
|
listConfig.open_height='450px';
|
|
layui.use(['index', 'table', 'listable'], function () {
|
|
var $ = layui.$
|
|
, form = layui.form
|
|
, listable = layui.listable
|
|
, table = layui.table;
|
|
var element = layui.element;
|
|
|
|
cols= [[
|
|
{type: 'checkbox',width: 80}
|
|
, {field: 'start_money', title: '开始金额',minWidth: 100}
|
|
, {field: 'end_money', title: '截至金额',minWidth: 100}
|
|
, {field: 'money', title: '收费金额',width: 120}
|
|
, {field: 'draw_type_name', title: '到账类型',width: 100}
|
|
,{
|
|
field:'is_checked',title:'状态',templet:'#true-false-table-switchTpl' ,width: 100
|
|
}
|
|
, {
|
|
title: '操作',
|
|
width: 150,
|
|
align: 'center',
|
|
toolbar: '#table-useradmin-admin'
|
|
}
|
|
]];
|
|
listable.list(listable_url,cols);
|
|
//监听表操作
|
|
listable.handle();
|
|
listable.top_handle()
|
|
|
|
|
|
});
|
|
</script>
|
|
@endsection |