48 lines
1.4 KiB
PHP
48 lines
1.4 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;">
|
|
@include('admin.layouts.top_btn')
|
|
</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_width='400px';
|
|
listConfig.open_height='250px';
|
|
layui.use(['index', 'table','listable'], function () {
|
|
var $ = layui.$
|
|
, listable = layui.listable
|
|
, table = layui.table;
|
|
|
|
|
|
cols= [[
|
|
{type: 'checkbox', fixed: 'left'}
|
|
, {field: 'id', width: 80, title: 'ID', sort: true}
|
|
, {field: 'cnname', title: '名称',minWidth:120}
|
|
, {field: 'name', title: '路径',minWidth:220}
|
|
, {title: '操作', width: 180, align: 'center', fixed: 'right', toolbar: '#table-useradmin-admin'}
|
|
]];
|
|
listable.list(listable_url,cols);
|
|
|
|
//顶部添加和删除事件
|
|
listable.top_handle();
|
|
//监听表操作
|
|
listable.handle();
|
|
//监听搜索
|
|
listable.search();
|
|
|
|
});
|
|
</script>
|
|
@endsection |