orderlog.html 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <div class="layui-fluid">
  2. <div class="layui-card">
  3. <div class="layui-card-body">
  4. <table id="LAY-report-loglist-table" lay-filter="LAY-report-loglist-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', 'element', 'laydate', 'set', 'table', 'selectN', 'selectM'], function() {
  14. var $ = layui.$,
  15. setter = layui.setter,
  16. admin = layui.admin,
  17. laydate = layui.laydate,
  18. form = layui.form,
  19. element = layui.element,
  20. table = layui.table,
  21. selectN = layui.selectN,
  22. selectM = layui.selectM;
  23. form.render();
  24. table.render({
  25. elem: '#LAY-report-loglist-table',
  26. url: setter.baseAgentUrl + 'report/listorderlog',
  27. where: { orderid: '{$order.id}' },
  28. cols: [
  29. [
  30. { field: 'id', width: 80, title: '表ID', sort: true },
  31. { field: 'refpolicy', title: '返费政策' },
  32. { field: 'remark', title: '备注信息' },
  33. { field: 'createtime', title: '更新时间', width: 200, sort: true }
  34. ]
  35. ],
  36. page: true,
  37. limit: 20,
  38. toolbar: true,
  39. defaultToolbar: ['filter', 'print'],
  40. cellMinWidth: 150,
  41. height: 'full-50',
  42. text: '对不起,加载出现异常!'
  43. });
  44. form.on('submit(LAY-report-loglist-search-btn)', function(data) {
  45. table.reload('LAY-report-loglist-table', {
  46. where: data.field,
  47. page: {
  48. curr: 1
  49. }
  50. });
  51. });
  52. $('.layui-btn.layuiadmin-btn').on('click', function() {
  53. var type = $(this).data('type');
  54. active[type] ? active[type].call(this) : '';
  55. });
  56. });
  57. </script>