Browse Source

是否显示编辑的逻辑修改

dev
zhaobing 2 years ago
parent
commit
c1763d9ab6
  1. 4
      web/client/src/sections/fillion/containers/task.js

4
web/client/src/sections/fillion/containers/task.js

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

Loading…
Cancel
Save