|
|
@ -32,7 +32,7 @@ function PatrolTemplate (props) { |
|
|
|
}; |
|
|
|
|
|
|
|
const columns = [{ |
|
|
|
title: '结构物名称', |
|
|
|
title: '模板名称', |
|
|
|
dataIndex: 'struName', |
|
|
|
key: 'struName', |
|
|
|
ellipsis: true, |
|
|
@ -40,45 +40,21 @@ function PatrolTemplate (props) { |
|
|
|
return <div>{record?.project?.name}</div> |
|
|
|
} |
|
|
|
}, { |
|
|
|
title: '巡检任务名称', |
|
|
|
title: '模板描述', |
|
|
|
dataIndex: 'name', |
|
|
|
key: 'name', |
|
|
|
ellipsis: true |
|
|
|
}, { |
|
|
|
title: '开始时间', |
|
|
|
dataIndex: 'startTime', |
|
|
|
key: 'startTime', |
|
|
|
ellipsis: true, |
|
|
|
render: (_, record) => moment(record.startTime).format('YYYY-MM-DD') |
|
|
|
}, { |
|
|
|
title: '结束时间', |
|
|
|
dataIndex: 'endTime', |
|
|
|
key: 'endTime', |
|
|
|
ellipsis: true, |
|
|
|
render: (_, record) => moment(record.endTime).format('YYYY-MM-DD') |
|
|
|
|
|
|
|
}, { |
|
|
|
title: '巡检频次', |
|
|
|
title: '操作人', |
|
|
|
dataIndex: 'frequency', |
|
|
|
key: 'frequency', |
|
|
|
ellipsis: true, |
|
|
|
}, { |
|
|
|
title: '巡检点位', |
|
|
|
title: '检查项', |
|
|
|
dataIndex: 'patrolPoints', |
|
|
|
key: 'patrolPoints', |
|
|
|
ellipsis: true, |
|
|
|
render: (_, record) => <div>{record?.points?.length ? record?.points?.map(p => p.name).join() : '-'}</div> |
|
|
|
}, { |
|
|
|
title: '巡检人', |
|
|
|
dataIndex: 'patrolPerson', |
|
|
|
key: 'patrolPerson', |
|
|
|
ellipsis: true, |
|
|
|
render: (_, record) => <div>{record?.user?.name}</div> |
|
|
|
}, { |
|
|
|
title: '巡检次数统计', |
|
|
|
dataIndex: 'patrolCount', |
|
|
|
key: 'patrolCount', |
|
|
|
ellipsis: true, |
|
|
|
}, { |
|
|
|
title: '操作', |
|
|
|
dataIndex: 'action', |
|
|
|