|
@ -219,45 +219,44 @@ const Server = (props) => { |
|
|
const column = [ |
|
|
const column = [ |
|
|
{ |
|
|
{ |
|
|
title: '序号', |
|
|
title: '序号', |
|
|
render: (t, r, i) => { |
|
|
render: (t, r, i) => <div style={{ minWidth: 30 }}>{i + 1}</div> |
|
|
return i + 1 |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '任务名称', |
|
|
title: '任务名称', |
|
|
dataIndex: 'missionName', |
|
|
dataIndex: 'missionName', |
|
|
|
|
|
render: (t) => <div style={{ minWidth: 100 }}>{t}</div> |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '责任人', |
|
|
title: '责任人', |
|
|
render: (record) => { |
|
|
render: (record) => { |
|
|
return <span> |
|
|
return <div style={{ minWidth: 50 }}> |
|
|
{record?.maintenancePlanExecuteUsers.map((item) => { |
|
|
{record?.maintenancePlanExecuteUsers.map((item) => { |
|
|
return item.name |
|
|
return <div>{item.name}</div> |
|
|
}).toString() |
|
|
}) |
|
|
} |
|
|
} |
|
|
</span> |
|
|
</div> |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '完成情况', |
|
|
title: '完成情况', |
|
|
dataIndex: 'state', |
|
|
dataIndex: 'state', |
|
|
render: (t, record) => t || '--' |
|
|
render: (t, record) => <div style={{ minWidth: 56 }}>{t || '--'}</div> |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '备注', |
|
|
title: '备注', |
|
|
dataIndex: 'remark', |
|
|
dataIndex: 'remark', |
|
|
render: (t, record) => t || '--' |
|
|
render: (t, record) =><div style={{ minWidth: 100 }}>{t || '--'}</div> |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '计划完成时间', |
|
|
title: '计划完成时间', |
|
|
render: (record) => { |
|
|
render: (record) => { |
|
|
return <span>{moment(record.planFinishTime).format('YYYY-MM-DD')}</span> |
|
|
return <div style={{ minWidth: 88 }}>{moment(record.planFinishTime).format('YYYY-MM-DD')}</div> |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
title: '实际完成时间', |
|
|
title: '实际完成时间', |
|
|
render: (record) => { |
|
|
render: (record) => { |
|
|
return record.actualFinishTime ? <span>{moment(record.actualFinishTime).format('YYYY-MM-DD')}</span> : '--' |
|
|
return<div style={{ minWidth: 88 }}>{record.actualFinishTime ? <span>{moment(record.actualFinishTime).format('YYYY-MM-DD')}</span> : '--'}</div> |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
]; |
|
|
]; |
|
@ -340,7 +339,7 @@ const Server = (props) => { |
|
|
<Modal |
|
|
<Modal |
|
|
visible={visible} |
|
|
visible={visible} |
|
|
title={'查看周期计划'} |
|
|
title={'查看周期计划'} |
|
|
width={800} |
|
|
width={1050} |
|
|
footer={null} |
|
|
footer={null} |
|
|
onOk={() => { |
|
|
onOk={() => { |
|
|
setVisible(false) |
|
|
setVisible(false) |
|
|