| 
					
				 | 
			
			
				@@ -2,28 +2,10 @@ import { ref, provide, computed } from 'vue'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { useRoute } from 'vue-router/composables'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { taskTypeArray } from './components/data/TaskType'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { fileStatusList } from '@/utils/file'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { GetCSItemTaskList, GetCSItemTaskStudentList } from '@/api/course'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import store from '@/store'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * 文件转换 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * @param {Array} list 文件列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * @returns Array 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-function filesTransform(list) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  return list.map(({ file_id, file_name, file_size }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      file: { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        name: file_name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        size: file_size 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      status: { ...fileStatusList[3], id: file_id } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-/** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * 转换任务列表数据格式,转换为显示格式 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @param {Array} list 任务列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  */ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -31,23 +13,6 @@ function convertDataFormatTaskList(list) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   list.forEach((item) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 学生列表转换为学生id列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     item.custom_student_id_list = item.custom_student_list.map(({ student_id }) => student_id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 教材转换 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // item._coursewares = JSON.parse(JSON.stringify(item.courseware_list)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 文件转换 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // item._files = filesTransform(item.accessory_list); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // item.child_task_list.forEach(({ info_block_list }) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //   info_block_list.forEach(({ info_block_type, courseware_list, file_list }, i, arr) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //     if (info_block_type === 'courseware') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //       arr[i]._coursewares = JSON.parse(JSON.stringify(courseware_list)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //       return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //     if (info_block_type === 'file') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //       arr[i]._files = filesTransform(file_list); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //       return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    //   }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   return list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 |