app/views/educode_sales/activities/index.html.erb in educode_sales-0.2.0 vs app/views/educode_sales/activities/index.html.erb in educode_sales-0.2.1

- old
+ new

@@ -40,49 +40,49 @@ defaultToolbar: [], cols: [ [ { field: 'id', - title: '序号', + title:'序号',type: 'numbers', width: 60 }, { field: 'name', - width: 300, title: '活动名称', templet: '#teachers' }, { field: 'start_at', - width: 180, + width: 200, title: '时间', sort: true, }, { field: 'days', title: '天数', - width: 100 + width: 200 }, { field: 'teachers_count', title: '教师数', - width: 100, + width: 200, templet: '#teachers_count' }, { field: 'students_count', title: '学生数', - width: 100 + width: 200 }, { title: '操作', - minWidth: 150, + width: 120, toolbar: '#currentTableBar', align: "center" } ] ], + limit: 20, page: true }); var sort = {}; table.on('sort(activities_table)', function (obj) { @@ -150,13 +150,13 @@ layer.close(index); table.reload("activities_table") }) }); } else if (obj.event === 'teachers') { - var content = miniPage.getHrefContent('/educode_sales/activities/show_teachers'); + activity_id = obj.data.id + var content = miniPage.getHrefContent('/educode_sales/activities/show_teachers'); openWH = miniPage.getOpenWidthHeight(); - activity_id = obj.data.id; index = layer.open({ title: '活动列表/' + data.name, type: 1, shade: 0.2, maxmin: true, @@ -172,13 +172,13 @@ layer.full(index); }); return false; } else if (obj.event === 'teachers_count') { - activity_id = obj.data.id; + activity_id = obj.data.id content = miniPage.getHrefContent('/educode_sales/activities/show_teachers'); openWH = miniPage.getOpenWidthHeight(); - index = layer.open({ + index2 = layer.open({ title: '活动列表/' + data.name, type: 1, shade: 0.2, maxmin: true, shadeClose: true, \ No newline at end of file