Commit d800911d authored by GuanHua's avatar GuanHua
parents 0475a7a6 ca2a3b81
...@@ -79,8 +79,10 @@ const MemberSystem: React.FC<{}> = () => { ...@@ -79,8 +79,10 @@ const MemberSystem: React.FC<{}> = () => {
dataIndex: 'option', dataIndex: 'option',
align: 'center', align: 'center',
render: (text:any, record:any) => { render: (text:any, record:any) => {
return record.status === 0 ? ( return <>
<> <Button type='link' onClick={()=>updateItem(record)}>修改</Button>
{
record.status === 0 ?
<Popconfirm <Popconfirm
title="确定要执行这个操作?" title="确定要执行这个操作?"
onConfirm={() => deleteItem(record)} onConfirm={() => deleteItem(record)}
...@@ -89,9 +91,9 @@ const MemberSystem: React.FC<{}> = () => { ...@@ -89,9 +91,9 @@ const MemberSystem: React.FC<{}> = () => {
> >
<Button type='link'>删除</Button> <Button type='link'>删除</Button>
</Popconfirm> </Popconfirm>
<Button type='link' onClick={()=>updateItem(record)}>修改</Button> : null
}
</> </>
) : null
} }
} }
]; ];
......
.container { .container {
padding: 24px 24px 16px 24px ; padding: 24px;
background-color: #fff; background-color: #fff;
border-radius: 8px;
.header { .header {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
......
...@@ -157,9 +157,9 @@ export const inquiryColumns: any[] = [ ...@@ -157,9 +157,9 @@ export const inquiryColumns: any[] = [
}, },
{ {
title: '报价会员', title: '报价会员',
dataIndex: 'memberName', dataIndex: 'offerMemberName',
align: 'center', align: 'center',
key: 'memberName', key: 'offerMemberName',
}, },
{ {
title: '单据时间', title: '单据时间',
......
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