提交代码
This commit is contained in:
		
							parent
							
								
									899c4cf3ef
								
							
						
					
					
						commit
						a581e40140
					
				| 
						 | 
				
			
			@ -254,7 +254,7 @@ export default {
 | 
			
		|||
    },
 | 
			
		||||
    getPercentage(row) {
 | 
			
		||||
      if (row.totalCount > 0 && row.status0Count >= 0) {
 | 
			
		||||
        let percentage = Math.floor((row.status1Count / row.totalCount) * 100)
 | 
			
		||||
        let percentage = Math.floor(((row.status1Count + row.status2Count) / row.totalCount) * 100)
 | 
			
		||||
        // 确保 percentage 在 0 到 100 之间
 | 
			
		||||
        return Math.min(Math.max(percentage, 0), 100)
 | 
			
		||||
      }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -254,7 +254,7 @@ export default {
 | 
			
		|||
    },
 | 
			
		||||
    getPercentage(row) {
 | 
			
		||||
      if (row.totalCount > 0 && row.status0Count >= 0) {
 | 
			
		||||
        let percentage = Math.floor((row.status1Count / row.totalCount) * 100)
 | 
			
		||||
        let percentage = Math.floor(((row.status1Count + row.status2Count) / row.totalCount) * 100)
 | 
			
		||||
        // 确保 percentage 在 0 到 100 之间
 | 
			
		||||
        return Math.min(Math.max(percentage, 0), 100)
 | 
			
		||||
      }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue