SysTools_Admin.js 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. //列表数据
  2. table.render({
  3. elem: '#LAY-list-manage'
  4. , url: '/Admin/SysTools/IndexData' //模拟接口
  5. , cols: [[
  6. { type: 'checkbox', fixed: 'left' }
  7. , { field: 'ApplyNo', width: 200, title: '申请订单号', sort: true }
  8. , { field: 'OrderNo', width: 200, title: '订单号', sort: true }
  9. , { field: 'MakerCode', width: 200, title: '创客编号', sort: true }
  10. , { field: 'RealName', width: 200, title: '创客姓名', sort: true }
  11. , { field: 'ComeSn', width: 200, title: '来源机具SN', sort: true, templet: '#Loop' }
  12. , { field: 'SendSn', width: 200, title: '发货SN', sort: true, templet: '#Loop' }
  13. , { field: 'CreateDate', width: 200, title: '申请时间', sort: true }
  14. , { field: 'Status', width: 200, title: '申请状态', sort: true }
  15. , { title: '操作', width: 1500, align: 'left', toolbar: '#table-list-tools' }
  16. ]]
  17. , where: {
  18. }
  19. , page: true
  20. , limit: 30
  21. , height: 'full-' + String($('.layui-card-header').height() + 130)
  22. , text: '对不起,加载出现异常!'
  23. , done: function (res, curr, count) {
  24. $(".layui-none").text("无数据");
  25. }
  26. });
  27. $('.layui-btn').on('click', function () {
  28. var type = $(this).data('type');
  29. active[type] ? active[type].call(this) : '';
  30. });