snatchdetaillist.html 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <div class="layui-fluid">
  2. <div class="layui-card">
  3. <div class="layui-card-body">
  4. <table id="LAY-demand-demandlist-table" lay-filter="LAY-demand-demandlist-table"></table>
  5. </div>
  6. </div>
  7. </div>
  8. <script>
  9. layui.config({
  10. base: '/static/echoui/' //静态资源所在路径
  11. }).extend({
  12. index: 'lib/index' //主入口模块
  13. }).use(['index', 'form', 'set', 'table'], function() {
  14. var $ = layui.$,
  15. setter = layui.setter,
  16. form = layui.form,
  17. table = layui.table;
  18. form.render();
  19. table.render({
  20. elem: '#LAY-demand-demandlist-table',
  21. height: 'full-20',
  22. url: setter.baseWorkerUrl + 'demand/snatchDetailList?id={$id}',
  23. cols: [
  24. [
  25. { field: 'id', width: 80, title: '表ID' },
  26. { field: 'worker', title: '公司名称', width: 200, toolbar: '<div>{{d.worker.title}}</div>' },
  27. { field: 'num', title: '接单人数', width: 100 },
  28. { field: 'snatch_num', title: '报备人数', width: 100 },
  29. { field: 'createtime', title: '接单时间', width: 180 },
  30. ]
  31. ],
  32. page: true,
  33. limit: 50,
  34. toolbar: true,
  35. cellMinWidth: 150,
  36. text: '对不起,加载出现异常!'
  37. });
  38. });
  39. </script>