export_list.html 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {extend name="public/layout" /}
  2. {block name="title"}跟进情况统计{/block}
  3. {block name="head"}
  4. {include file="public/head"}
  5. <style>
  6. html {
  7. background-color: white;
  8. }
  9. </style>
  10. {/block}
  11. {block name="body"}
  12. <table id="export-list" lay-filter="export-list"></table>
  13. {/block}
  14. {block name="js"}
  15. <script>
  16. layui.use(['table'], function () {
  17. var table = layui.table;
  18. table.render({
  19. elem: '#export-list'
  20. , height: 312
  21. , url: '{:url("statistics/exportList",array("methodtype"=>$methodtype))}' //数据接口
  22. , page: true //开启分页
  23. , cols: [[ //表头
  24. { field: 'addtime', title: '时间', width: 160, sort: true, fixed: 'left' }
  25. , { field: 'state', templet: '#state', title: '状态', width: 80 }
  26. , { field: 'params', templet: '#params', title: '查询条件' }
  27. , { field: 'path', templet: '#tool', title: '操作', width: 80 }
  28. ]]
  29. });
  30. });
  31. </script>
  32. <script type="text/html" id="state">
  33. {{# if(d.state == 1){ }}
  34. 可下载
  35. {{# }else{ }}
  36. 处理中
  37. {{# } }}
  38. </script>
  39. <script type="text/html" id="params">
  40. {{# if(d.params.sdate != ''){ }}
  41. 跟进时间:{{d.params.sdate}}
  42. {{# if(d.params.edate && d.params.edate != ''){ }}
  43. -{{d.params.edate}}
  44. {{# }else{ }}
  45. -至今
  46. {{# } }}
  47. {{# } }}
  48. {{# if(d.params.add_wechat_time && d.params.add_wechat_time != ''){ }}
  49. 加微时间:{{d.params.add_wechat_time}}
  50. {{# } }}
  51. </script>
  52. <script type="text/html" id="tool">
  53. {{# if(d.state == 1){ }}
  54. <a href="{:url('statistics/downloadXls')}?path={{d.result}}&methodtype={$methodtype}" target="_blank">下载</a>
  55. {{# } }}
  56. </script>
  57. {/block}