69 lines
2.1 KiB
PHP
69 lines
2.1 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>
|
||
</div>
|
||
|
||
|
||
|
||
|
||
|
||
@endsection
|
||
@section('add_js')
|
||
|
||
@include('admin.layouts.layui_tpl')
|
||
@include('admin.layouts.commonscript')
|
||
<script>
|
||
|
||
listConfig.open_width='800px';
|
||
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: 'name', title: '通道名称',minWidth: 120}
|
||
, {field: 'mch_id', title: '三方通道(产品ID)',minWidth: 250}
|
||
, {field: 'ename', title: 'API标识',width:100}
|
||
, {field: 'limit_money', title: '单笔限额',width:100}
|
||
|
||
, {field: 'ratio_name', title: '成本费率',width:120}
|
||
, {field: 'up_ratio', title: '上浮费率',width:120}
|
||
, {field: 'client_type_name', title: '适用平台',minWidth: 120},
|
||
{
|
||
field:'is_checked',title:'状态',templet:'#true-false-table-switchTpl',minWidth: 120
|
||
}
|
||
, {title: '操作', minWidth: 200, align: 'center', toolbar: '#table-useradmin-admin'}
|
||
]];
|
||
listable.list(listable_url,cols,{
|
||
where:{
|
||
|
||
}
|
||
});
|
||
//监听表操作
|
||
listable.handle();
|
||
listable.top_handle();
|
||
});
|
||
</script>
|
||
@endsection |