| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <div class="layui-fluid">
- <div class="layui-card">
- <div class="layui-card-body">
- <table id="LAY-demand-demandlist-table" lay-filter="LAY-demand-demandlist-table"></table>
- </div>
- </div>
- </div>
- <script>
- layui.config({
- base: '/static/echoui/' //静态资源所在路径
- }).extend({
- index: 'lib/index' //主入口模块
- }).use(['index', 'form', 'set', 'table'], function() {
- var $ = layui.$,
- setter = layui.setter,
- form = layui.form,
- table = layui.table;
- form.render();
- table.render({
- elem: '#LAY-demand-demandlist-table',
- height: 'full-20',
- url: setter.baseWorkerUrl + 'demand/snatchDetailList?id={$id}',
- cols: [
- [
- { field: 'id', width: 80, title: '表ID' },
- { field: 'worker', title: '公司名称', width: 200, toolbar: '<div>{{d.worker.title}}</div>' },
- { field: 'num', title: '接单人数', width: 100 },
- { field: 'snatch_num', title: '报备人数', width: 100 },
- { field: 'createtime', title: '接单时间', width: 180 },
- ]
- ],
- page: true,
- limit: 50,
- toolbar: true,
- cellMinWidth: 150,
- text: '对不起,加载出现异常!'
- });
- });
- </script>
|