|  | @@ -0,0 +1,68 @@
 | 
	
		
			
				|  |  | +import styles from '@/pages/TaskManage/index.less';
 | 
	
		
			
				|  |  | +import { PropTypes } from '@/pages/TaskManage/index.types';
 | 
	
		
			
				|  |  | +import { List } from 'antd';
 | 
	
		
			
				|  |  | +import React, { useEffect } from 'react';
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +const TaskManage: React.FC<PropTypes> = (props) => {
 | 
	
		
			
				|  |  | +  const { projectID } = props;
 | 
	
		
			
				|  |  | +  const project_id = Number(projectID === '' ? '0' : projectID);
 | 
	
		
			
				|  |  | +  const arr = [];
 | 
	
		
			
				|  |  | +  for (let i = 0; i < 20; i++) {
 | 
	
		
			
				|  |  | +    arr.push({
 | 
	
		
			
				|  |  | +      title: '任务标题',
 | 
	
		
			
				|  |  | +      desc: '任务详情任务详情任务详情任务详情任务详情任务详情任务详情任务详情任务详情',
 | 
	
		
			
				|  |  | +    });
 | 
	
		
			
				|  |  | +  }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  const goToDetail = (item: number) => {
 | 
	
		
			
				|  |  | +    console.log(item);
 | 
	
		
			
				|  |  | +  };
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  useEffect(() => {
 | 
	
		
			
				|  |  | +    const bodyStyle = document.body.style.background;
 | 
	
		
			
				|  |  | +    document.body.style.background = 'none';
 | 
	
		
			
				|  |  | +    return () => {
 | 
	
		
			
				|  |  | +      document.body.style.background = bodyStyle;
 | 
	
		
			
				|  |  | +    };
 | 
	
		
			
				|  |  | +  }, []);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  const makeList = (item: any, index: number) => {
 | 
	
		
			
				|  |  | +    return (
 | 
	
		
			
				|  |  | +      <List.Item
 | 
	
		
			
				|  |  | +        className={styles.listItem}
 | 
	
		
			
				|  |  | +        onClick={() => {
 | 
	
		
			
				|  |  | +          goToDetail(item);
 | 
	
		
			
				|  |  | +        }}
 | 
	
		
			
				|  |  | +      >
 | 
	
		
			
				|  |  | +        <List.Item.Meta title={item.title} description={item.desc} />
 | 
	
		
			
				|  |  | +        <div className={styles.itemCount}>
 | 
	
		
			
				|  |  | +          <div className={styles.countNumber}>10</div>
 | 
	
		
			
				|  |  | +          <div>任务数量</div>
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +        <div style={{ fontSize: '48px', color: 'gray', fontWeight: '200' }}>
 | 
	
		
			
				|  |  | +          {'>'}
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +      </List.Item>
 | 
	
		
			
				|  |  | +    );
 | 
	
		
			
				|  |  | +  };
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +  return (
 | 
	
		
			
				|  |  | +    <div className={styles.backgroundImage}>
 | 
	
		
			
				|  |  | +      <div className={styles.container}>
 | 
	
		
			
				|  |  | +        <div className={styles.title}>
 | 
	
		
			
				|  |  | +          <span className={styles.delimiter}></span>
 | 
	
		
			
				|  |  | +          任务管理
 | 
	
		
			
				|  |  | +        </div>
 | 
	
		
			
				|  |  | +        <List
 | 
	
		
			
				|  |  | +          className={styles.taskList}
 | 
	
		
			
				|  |  | +          bordered
 | 
	
		
			
				|  |  | +          itemLayout="horizontal"
 | 
	
		
			
				|  |  | +          dataSource={arr}
 | 
	
		
			
				|  |  | +          renderItem={makeList}
 | 
	
		
			
				|  |  | +        />
 | 
	
		
			
				|  |  | +      </div>
 | 
	
		
			
				|  |  | +    </div>
 | 
	
		
			
				|  |  | +  );
 | 
	
		
			
				|  |  | +};
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +export default TaskManage;
 |