| 
					
				 | 
			
			
				@@ -159,17 +159,30 @@ export class Dashboard implements OnInit { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   getTaskStageProgress(taskId: string): number { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    // 在实际应用中,这里会从服务中获取真实的进度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    const stageProgress: Record<string, number> = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      '建模': Math.floor(Math.random() * 100), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      '渲染': Math.floor(Math.random() * 100), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      '对图': Math.floor(Math.random() * 100), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      '反馈处理': Math.floor(Math.random() * 100), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      '后期': Math.floor(Math.random() * 100) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-     
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     const task = this.tasks.find(t => t.id === taskId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    return task ? (stageProgress[task.stage] || 0) : 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (!task) return 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 为不同阶段设置固定的模拟进度值 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    const stageProgressMap: Record<string, number> = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      '建模': 22, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      '渲染': 23, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      '对图': 50, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      '反馈处理': 80, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      '后期': 75, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      '完成': 100 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 对于渲染任务,如果有实际的渲染进度数据,使用它 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    if (task.stage === '渲染') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // 在实际应用中,这里会从服务中获取真实的进度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // this.projectService.getRenderProgress(task.projectId).subscribe(progress => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   if (progress) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //     return progress.completionRate; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    return stageProgressMap[task.stage] || 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   markTaskAsCompleted(taskId: string): void { 
			 |