app/views/educode_sales/sales/index.html.erb in educode_sales-0.6.1 vs app/views/educode_sales/sales/index.html.erb in educode_sales-0.6.2

- old
+ new

@@ -47,10 +47,14 @@ <script type="text/html" id="school_count"> <div class="layui-text"> <a href="/missions/customers?staff_id={{d.id}}">{{d.school_count}}</a> </div> </script> +<script type="text/html" id="bussinessBar"> + <div class="layui-btn-container"> + </div> +</script> <script> layui.use('table', function () { var form = layui.form, table = layui.table; @@ -61,11 +65,13 @@ }) table.render({ elem: '#table', url: '/missions/sales?year=<%= @year %>', - cellMinWidth: 80, + defaultToolbar: ['filter'], + cellMinWidth: 80, + toolbar: '#bussinessBar', totalRow:true, cols: [ [{ field: 'id', title:'序号',type: 'numbers', @@ -159,17 +165,17 @@ }, { field: 'follow_school_rate', title: '学校覆盖率', sort:true, - totalRow:'{{ parseInt(d.TOTAL_NUMS) }}', + totalRow:true, width: 120 }, { field: 'follow_department_rate', title: '学院覆盖率', sort:true, - totalRow:'{{ parseInt(d.TOTAL_NUMS) }}', + totalRow:true, width: 120 }, ] ], limit: 20, \ No newline at end of file