|  | @@ -18,6 +18,7 @@ function AuditFlow(props) {
 | 
	
		
			
				|  |  |      tasks,
 | 
	
		
			
				|  |  |      userList,
 | 
	
		
			
				|  |  |      cc_userids = [],
 | 
	
		
			
				|  |  | +    canShowAudit = false,
 | 
	
		
			
				|  |  |      onApprove,
 | 
	
		
			
				|  |  |    } = props;
 | 
	
		
			
				|  |  |    const [flow, setFlow] = useState({ workflowActivityRules: [] });
 | 
	
	
		
			
				|  | @@ -50,6 +51,7 @@ function AuditFlow(props) {
 | 
	
		
			
				|  |  |    }, [tasks, flow]);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |    const showAduit = useMemo(() => {
 | 
	
		
			
				|  |  | +    if (!canShowAudit) return false;
 | 
	
		
			
				|  |  |      //当前处理中的审批人和登录人是一个人显示审批通过和拒绝
 | 
	
		
			
				|  |  |      if (!tasks || tasks.length == 0) {
 | 
	
		
			
				|  |  |        return false;
 |