|  |  |  | @ -3,17 +3,21 @@ wb = xlsx_package.workbook | 
			
		
	
		
			
				
					|  |  |  |  | wb.styles do |s| | 
			
		
	
		
			
				
					|  |  |  |  |   blue_cell = s.add_style :bg_color => "FAEBDC", :sz => 10,:height => 25,:b => true, :border => { :style => :thin, :color =>"000000" },:alignment => {wrap_text: true,:horizontal => :center,:vertical => :center} | 
			
		
	
		
			
				
					|  |  |  |  |   wb.add_worksheet(name: "课堂列表") do |sheet| | 
			
		
	
		
			
				
					|  |  |  |  |     sheet.add_row %w(ID 课堂名称 成员 资源 普通作业 分组作业 实训作业 试卷 评测次数 私有 状态 单位 创建者 创建时间 动态时间), :height => 25,:style => blue_cell | 
			
		
	
		
			
				
					|  |  |  |  |     sheet.add_row %w(ID 课堂名称 老师 学生 资源 公告 视频 普通作业 分组作业 实训作业 作品数 试卷 评测次数 私有 状态 单位 创建者 创建时间 动态时间), :height => 25,:style => blue_cell | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     @courses.each do |course| | 
			
		
	
		
			
				
					|  |  |  |  |       data = [ | 
			
		
	
		
			
				
					|  |  |  |  |         course.id, | 
			
		
	
		
			
				
					|  |  |  |  |         course.name, | 
			
		
	
		
			
				
					|  |  |  |  |         course.course_members_count, | 
			
		
	
		
			
				
					|  |  |  |  |         course.teacher_course_members.size, | 
			
		
	
		
			
				
					|  |  |  |  |         course.students.size, | 
			
		
	
		
			
				
					|  |  |  |  |         get_attachment_count(course, 0), | 
			
		
	
		
			
				
					|  |  |  |  |         course.informs.size, | 
			
		
	
		
			
				
					|  |  |  |  |         course.course_videos.size, | 
			
		
	
		
			
				
					|  |  |  |  |         course.course_homework_count(1), | 
			
		
	
		
			
				
					|  |  |  |  |         course.course_homework_count(3), | 
			
		
	
		
			
				
					|  |  |  |  |         course.course_homework_count(4), | 
			
		
	
		
			
				
					|  |  |  |  |         course.student_works_count, | 
			
		
	
		
			
				
					|  |  |  |  |         course.exercises_count, | 
			
		
	
		
			
				
					|  |  |  |  |         course.evaluate_count, | 
			
		
	
		
			
				
					|  |  |  |  |         course.is_public == 1 ? "--" : "√", | 
			
		
	
	
		
			
				
					|  |  |  | 
 |