|
@@ -54,12 +54,10 @@ function TaskDetail(props: IPropsType) {
|
|
{
|
|
{
|
|
title: '详情',
|
|
title: '详情',
|
|
dataIndex: 'detail',
|
|
dataIndex: 'detail',
|
|
|
|
+ key: 'key',
|
|
render: (value, record) => {
|
|
render: (value, record) => {
|
|
return (
|
|
return (
|
|
- <div
|
|
|
|
- key={value.key}
|
|
|
|
- style={{ display: 'flex', alignItems: 'center' }}
|
|
|
|
- >
|
|
|
|
|
|
+ <div style={{ display: 'flex', alignItems: 'center' }}>
|
|
<div style={{ width: value.image === '' ? '100%' : '200px' }}>
|
|
<div style={{ width: value.image === '' ? '100%' : '200px' }}>
|
|
{value.text}
|
|
{value.text}
|
|
</div>
|
|
</div>
|
|
@@ -135,7 +133,13 @@ function TaskDetail(props: IPropsType) {
|
|
<div className={styles.leftInfo}>
|
|
<div className={styles.leftInfo}>
|
|
<Row style={{ marginBottom: '15px' }}>
|
|
<Row style={{ marginBottom: '15px' }}>
|
|
<Col className={styles.fontS24} span={12}>
|
|
<Col className={styles.fontS24} span={12}>
|
|
- 工单编号:{record.Id || '-'}
|
|
|
|
|
|
+ {/*// @ts-ignore*/}
|
|
|
|
+ 工单类型:
|
|
|
|
+ {record.RecordType === 1
|
|
|
|
+ ? '工艺'
|
|
|
|
+ : record.RecordType === 2
|
|
|
|
+ ? '维修'
|
|
|
|
+ : '保养'}
|
|
</Col>
|
|
</Col>
|
|
<Col className={styles.fontS24} span={12}>
|
|
<Col className={styles.fontS24} span={12}>
|
|
时间:{record.CreateTime || '-'}
|
|
时间:{record.CreateTime || '-'}
|
|
@@ -219,13 +223,13 @@ function TaskDetail(props: IPropsType) {
|
|
img: base64ToImageUrl(res[i].event_bg),
|
|
img: base64ToImageUrl(res[i].event_bg),
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- const dataSource = mandateChild.map((item) => {
|
|
|
|
|
|
+ const dataSource = mandateChild.map((item, index) => {
|
|
const img = images.find((i) => i.id === item.ExtendId);
|
|
const img = images.find((i) => i.id === item.ExtendId);
|
|
return {
|
|
return {
|
|
detail: {
|
|
detail: {
|
|
text: item.Title + item.Content,
|
|
text: item.Title + item.Content,
|
|
image: img !== undefined ? img.img : '',
|
|
image: img !== undefined ? img.img : '',
|
|
- key: item.ExtendId,
|
|
|
|
|
|
+ key: item.Title + index + item.Content,
|
|
},
|
|
},
|
|
};
|
|
};
|
|
});
|
|
});
|
|
@@ -293,6 +297,7 @@ function TaskDetail(props: IPropsType) {
|
|
<Col className={styles.fontS24} span={20}>
|
|
<Col className={styles.fontS24} span={20}>
|
|
{/*{mandateDetail?.Detail}*/}
|
|
{/*{mandateDetail?.Detail}*/}
|
|
<Table
|
|
<Table
|
|
|
|
+ rowKey="key"
|
|
columns={columnDef}
|
|
columns={columnDef}
|
|
dataSource={mandateTable}
|
|
dataSource={mandateTable}
|
|
pagination={false}
|
|
pagination={false}
|