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: '操作',
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>

Loading…
Cancel
Save