Commit 4cfd3adc authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 品牌操作显示异常

parent dea2e0f8
......@@ -93,6 +93,7 @@ const Trademark: React.FC<{}> = () => {
title: '操作',
dataIndex: 'option',
render: (text: any, record: any) => {
// 1待提交审核 2待审核 3审核不通过 4审核通过
return (
(record.status !== 2) ? <>
{
......@@ -100,11 +101,9 @@ const Trademark: React.FC<{}> = () => {
<Button type='link' onClick={()=>handleApplyCheck(record)}>提交审核</Button>
<Dropdown overlay={
<Menu>
{
record.isEnable && <Menu.Item>
<Button type='link' onClick={()=>history.push(`/memberCenter/commodityAbility/trademark/edit?id=${record.id}`)}>修改</Button>
</Menu.Item>
}
<Menu.Item>
<Button type='link' onClick={()=>history.push(`/memberCenter/commodityAbility/trademark/edit?id=${record.id}`)}>修改</Button>
</Menu.Item>
<Menu.Item>
<Button onClick={() => handelDelete(record)} type='link'>删除</Button>
</Menu.Item>
......@@ -115,11 +114,16 @@ const Trademark: React.FC<{}> = () => {
</a>
</Dropdown>
</> :
// 3 / 4
<>
{
record.isEnable && <Button type='link' onClick={()=>history.push(`/memberCenter/commodityAbility/trademark/add?id=${record.id}`)}>修改</Button>
record.isEnable && <>
<Button type='link' onClick={()=>history.push(`/memberCenter/commodityAbility/trademark/add?id=${record.id}`)}>修改</Button>
</>
}
{
record.status === 3 && <Button onClick={() => handelDelete(record)} type='link'>删除</Button>
}
<Button onClick={() => handelDelete(record)} type='link'>删除</Button>
</>
}
</> : ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment