123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- {extend name="public/layout" /}
- {block name="title"}跟进情况统计{/block}
- {block name="head"}
- {include file="public/head"}
- <style>
- html {
- background-color: white;
- }
- </style>
- {/block}
- {block name="body"}
- <table id="export-list" lay-filter="export-list"></table>
- {/block}
- {block name="js"}
- <script>
- layui.use(['table'], function () {
- var table = layui.table;
- table.render({
- elem: '#export-list'
- , height: 312
- , url: '{:url("statistics/exportList",array("methodtype"=>$methodtype))}' //数据接口
- , page: true //开启分页
- , cols: [[ //表头
- { field: 'addtime', title: '时间', width: 160, sort: true, fixed: 'left' }
- , { field: 'state', templet: '#state', title: '状态', width: 80 }
- , { field: 'params', templet: '#params', title: '查询条件' }
- , { field: 'path', templet: '#tool', title: '操作', width: 80 }
- ]]
- });
- });
- </script>
- <script type="text/html" id="state">
- {{# if(d.state == 1){ }}
- 可下载
- {{# }else{ }}
- 处理中
- {{# } }}
- </script>
- <script type="text/html" id="params">
- {{# if(d.params.sdate != ''){ }}
- 跟进时间:{{d.params.sdate}}
- {{# if(d.params.edate && d.params.edate != ''){ }}
- -{{d.params.edate}}
- {{# }else{ }}
- -至今
- {{# } }}
- {{# } }}
- {{# if(d.params.add_wechat_time && d.params.add_wechat_time != ''){ }}
- 加微时间:{{d.params.add_wechat_time}}
- {{# } }}
- </script>
- <script type="text/html" id="tool">
- {{# if(d.state == 1){ }}
- <a href="{:url('statistics/downloadXls')}?path={{d.result}}&methodtype={$methodtype}" target="_blank">下载</a>
- {{# } }}
- </script>
- {/block}
|