|  | @@ -3,14 +3,15 @@ import TabsContent from '@/components/TabsContent';
 | 
	
		
			
				|  |  |  import styles from '@/pages/TaskManage/index.less';
 | 
	
		
			
				|  |  |  import { getMandateList } from '@/services/TaskManage';
 | 
	
		
			
				|  |  |  import { RightOutlined } from '@ant-design/icons';
 | 
	
		
			
				|  |  | -import { useParams } from '@umijs/max';
 | 
	
		
			
				|  |  | +import { connect, useParams } from '@umijs/max';
 | 
	
		
			
				|  |  |  import { List, Spin } from 'antd';
 | 
	
		
			
				|  |  |  import { BaseOptionType } from 'rc-select/es/Select';
 | 
	
		
			
				|  |  |  import { useEffect, useState } from 'react';
 | 
	
		
			
				|  |  |  import { useNavigate } from 'umi';
 | 
	
		
			
				|  |  |  import { MandateType, OrderType } from './constent';
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -const TaskManage = () => {
 | 
	
		
			
				|  |  | +const TaskManage = (props) => {
 | 
	
		
			
				|  |  | +  const { userList, dispatch } = props;
 | 
	
		
			
				|  |  |    const { projectID } = useParams();
 | 
	
		
			
				|  |  |    const project_id = Number(projectID === '' ? '0' : projectID);
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -52,6 +53,15 @@ const TaskManage = () => {
 | 
	
		
			
				|  |  |        });
 | 
	
		
			
				|  |  |    }, []);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +  useEffect(() => {
 | 
	
		
			
				|  |  | +    if (userList.length === 0) {
 | 
	
		
			
				|  |  | +      dispatch({
 | 
	
		
			
				|  |  | +        type: 'taskUser/fetchUserList',
 | 
	
		
			
				|  |  | +        payload: { project_id },
 | 
	
		
			
				|  |  | +      });
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +  }, []);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |    const goTaskList = (item: number) => {
 | 
	
		
			
				|  |  |      navigate(`/task-manage/list?project_id=${project_id}&mandateType=${item}`);
 | 
	
		
			
				|  |  |    };
 | 
	
	
		
			
				|  | @@ -152,4 +162,8 @@ const TaskManage = () => {
 | 
	
		
			
				|  |  |    );
 | 
	
		
			
				|  |  |  };
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -export default TaskManage;
 | 
	
		
			
				|  |  | +export default connect(({ taskUser }: any): { userList: IUserType[] } => {
 | 
	
		
			
				|  |  | +  return {
 | 
	
		
			
				|  |  | +    userList: taskUser.userList,
 | 
	
		
			
				|  |  | +  };
 | 
	
		
			
				|  |  | +})(TaskManage);
 |