|
|
@ -104,10 +104,10 @@ const Task = (props) => { |
|
|
|
title: '操作', |
|
|
|
render: (dom, record) => { |
|
|
|
return <div> |
|
|
|
{record.reportTime ? <Button type='link' onClick={() => { |
|
|
|
{record.reportTime ? '' : <Button type='link' onClick={() => { |
|
|
|
setRecordRow(record); |
|
|
|
setAddModalVis(true) |
|
|
|
}}>编辑</Button> : ''} |
|
|
|
}}>编辑</Button>} |
|
|
|
<Popconfirm title='确定要删除吗?' onConfirm={() => { delTaskHandler(record) }}><Button type='link'>刪除</Button></Popconfirm> |
|
|
|
<Button type='link' onClick={() => { look(record) }}>查看</Button> |
|
|
|
</div> |
|
|
|