app/views/educode_sales/activities/index.html.erb in educode_sales-0.4.4 vs app/views/educode_sales/activities/index.html.erb in educode_sales-0.4.5

- old
+ new

@@ -37,16 +37,18 @@ table.render({ elem: '#activities_table', url: '/missions/activities', toolbar: '#activity_toolbar', + totalRow:true, defaultToolbar: [], cols: [ [ { field: 'id', title:'序号',type: 'numbers', + totalRowText:'合计', width: 60 }, { field: 'name', title: '活动名称', @@ -66,14 +68,16 @@ }, { field: 'teachers_count', title: '教师数', width: 100, + totalRow:true, templet: '#teachers_count' }, { field: 'students_count', title: '学生数', + totalRow:'{{ parseInt(d.TOTAL_NUMS) }}', width: 100 }, { title: '操作', width: 120, \ No newline at end of file