|
@@ -17,8 +17,11 @@ import { connect, useLocation } from '@umijs/max';
|
|
|
import TopFilter from '@/pages/TaskManage/components/TopFilter';
|
|
|
import { IMandateType } from '@/pages/TaskManage/index.types';
|
|
|
import { useNavigate } from '@@/exports';
|
|
|
+import { UpOutlined } from '@ant-design/icons';
|
|
|
import { Col, Collapse, CollapseProps, Divider, List, Row, Spin } from 'antd';
|
|
|
-import React, { useEffect, useState } from 'react';
|
|
|
+
|
|
|
+import moment from 'moment';
|
|
|
+import { useEffect, useState } from 'react';
|
|
|
import styles from './taskList.less';
|
|
|
|
|
|
const TaskList: React.FC<IPropsType> = (props) => {
|
|
@@ -146,6 +149,7 @@ const TaskList: React.FC<IPropsType> = (props) => {
|
|
|
ResponsiblePeople: userList.find(
|
|
|
(user) => user.ID === item.ResponsiblePeople,
|
|
|
),
|
|
|
+ CreateTime: moment(item.CreateTime).format('YYYY-MM-DD HH:mm'),
|
|
|
};
|
|
|
|
|
|
const workOrder = item.Records.map((record) => {
|
|
@@ -155,6 +159,7 @@ const TaskList: React.FC<IPropsType> = (props) => {
|
|
|
Status: OrderStatus.find((status) => status.value === record.Status),
|
|
|
RecordType: OrderType.find((type) => type.value === record.RecordType),
|
|
|
Responsible: userList.find((user) => user.ID === record.Responsible),
|
|
|
+ CreateTime: moment(record.CreateTime).format('YYYY-MM-DD HH:mm'),
|
|
|
};
|
|
|
});
|
|
|
|
|
@@ -208,17 +213,20 @@ const TaskList: React.FC<IPropsType> = (props) => {
|
|
|
<List.Item>
|
|
|
<div className={`${styles.cardContainer} card-box`}>
|
|
|
<Row justify="space-between" style={{ marginBottom: '20px' }}>
|
|
|
- <Col className={styles.fontS24}>时间:{formatItem.CreateTime}</Col>
|
|
|
+ <Col className={styles.fontS24}>时间:{formatItem.CreateTime}</Col>
|
|
|
<Col className={styles.fontS24}>
|
|
|
- 任务类别:{formatItem.MandateClass?.label}
|
|
|
+ 任务类别:{formatItem.MandateClass?.label}
|
|
|
</Col>
|
|
|
<Col className={styles.fontS24}>
|
|
|
- 任务负责人:{formatItem.ResponsiblePeople?.CName || '-'}
|
|
|
+ 任务负责人:{formatItem.ResponsiblePeople?.CName || '-'}
|
|
|
</Col>
|
|
|
</Row>
|
|
|
<Row
|
|
|
justify="space-between"
|
|
|
- style={{ paddingBottom: '10px', borderBottom: '1px solid gray' }}
|
|
|
+ style={{
|
|
|
+ paddingBottom: '10px',
|
|
|
+ borderBottom: '1px solid rgba(0,0,0,10%)',
|
|
|
+ }}
|
|
|
>
|
|
|
<Col className={styles.fontS24}>
|
|
|
任务状态:{formatItem.Status?.label || '-'}
|
|
@@ -247,6 +255,12 @@ const TaskList: React.FC<IPropsType> = (props) => {
|
|
|
<Collapse
|
|
|
className={styles.collapseLabel}
|
|
|
ghost
|
|
|
+ expandIcon={({ isActive }) => (
|
|
|
+ <UpOutlined
|
|
|
+ style={{ color: '#5697e4' }}
|
|
|
+ rotate={isActive ? 180 : 0}
|
|
|
+ />
|
|
|
+ )}
|
|
|
items={collapseData}
|
|
|
/>
|
|
|
</Row>
|