SysTools_Admin.js 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  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. <<<<<<< HEAD
  12. , { field: 'ComeSn', width: 200, title: '来源机具SN', sort: true, templet: '#MakerCodeTpl' }
  13. , { field: 'SendSn', width: 200, title: '发货SN', sort: true, templet: '#MakerCodeTpl' }
  14. =======
  15. , { field: 'ComeSn', width: 200, title: '来源机具SN', sort: true, templet: '#Loop' }
  16. , { field: 'SendSn', width: 200, title: '发货SN', sort: true, templet: '#Loop' }
  17. >>>>>>> DuGuYangDo
  18. , { field: 'CreateDate', width: 200, title: '申请时间', sort: true }
  19. , { field: 'Status', width: 200, title: '申请状态', sort: true }
  20. , { title: '操作', width: 1500, align: 'left', toolbar: '#table-list-tools' }
  21. ]]
  22. , where: {
  23. }
  24. , page: true
  25. , limit: 30
  26. , height: 'full-' + String($('.layui-card-header').height() + 130)
  27. , text: '对不起,加载出现异常!'
  28. , done: function (res, curr, count) {
  29. $(".layui-none").text("无数据");
  30. }
  31. });
  32. $('.layui-btn').on('click', function () {
  33. var type = $(this).data('type');
  34. active[type] ? active[type].call(this) : '';
  35. });