97 lines
2.7 KiB
PHP
97 lines
2.7 KiB
PHP
@extends('admin.layouts.base')
|
|
@section('add_css')
|
|
<style>
|
|
.layui-table-cell {
|
|
height: auto;
|
|
line-height: auto;
|
|
}
|
|
|
|
.layui-table-cell {
|
|
padding: 0 5px;
|
|
font-size: 13px;
|
|
|
|
}
|
|
|
|
.layui-table-header .layui-table-cell {
|
|
text-align: center;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.layui-table-total tr {
|
|
background: #fff !important;
|
|
color: #333;
|
|
font-weight: bold;
|
|
color: #f00;
|
|
|
|
}
|
|
|
|
.layui-table-total td {
|
|
border-color: #ededed;
|
|
}
|
|
</style>
|
|
@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>
|
|
|
|
|
|
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: 'id', width: 80, title: 'ID', sort: true}
|
|
, {field: 'type_name', title: '类型', width: 120}
|
|
, {field: 'name', title: '名称', minWidth: 120}
|
|
, {field: 'username', title: '收款人', minWidth: 120}
|
|
, {field: 'source', title: '所在行', minWidth: 120}
|
|
, {field: 'number', title: '账号', minWidth: 120},
|
|
{field: 'thumb', title: '收款码', minWidth: 120 ,templet: '#imgTpl2',},
|
|
{
|
|
field: 'is_personal', title: '是否私有', templet: '#is_personal-table-switchTpl', minWidth: 120
|
|
},
|
|
{
|
|
field: 'is_checked', title: '状态', templet: '#true-false-table-switchTpl', minWidth: 120
|
|
}
|
|
, {
|
|
title: '操作',
|
|
minWidth: 180,
|
|
align: 'center',
|
|
|
|
toolbar: '#table-useradmin-admin'
|
|
}
|
|
]];
|
|
listable.list(listable_url,cols);
|
|
//监听表操作
|
|
listable.handle();
|
|
listable.top_handle()
|
|
|
|
|
|
});
|
|
</script>
|
|
|
|
|
|
@endsection |