|
|
@@ -126,26 +126,26 @@ const goodspush = () => { |
|
|
|
> |
|
|
|
重发 |
|
|
|
</a>, |
|
|
|
<Popconfirm |
|
|
|
type="primary" |
|
|
|
key="primary" |
|
|
|
title="确认删除吗?" |
|
|
|
okText="是" |
|
|
|
cancelText="否" |
|
|
|
onConfirm={async () => { |
|
|
|
await DeleteGoodsType(record.id).then((r) => { |
|
|
|
if (r.succeeded) { |
|
|
|
message.success('删除成功'); |
|
|
|
actionRef.current.reloadAndRest(); |
|
|
|
} else { |
|
|
|
message.error(r.errors); |
|
|
|
} |
|
|
|
}); |
|
|
|
}} |
|
|
|
onCancel={() => {}} |
|
|
|
> |
|
|
|
<a href="#">删除</a> |
|
|
|
</Popconfirm>, |
|
|
|
// <Popconfirm |
|
|
|
// type="primary" |
|
|
|
// key="primary" |
|
|
|
// title="确认删除吗?" |
|
|
|
// okText="是" |
|
|
|
// cancelText="否" |
|
|
|
// onConfirm={async () => { |
|
|
|
// await DeleteGoodsType(record.id).then((r) => { |
|
|
|
// if (r.succeeded) { |
|
|
|
// message.success('删除成功'); |
|
|
|
// actionRef.current.reloadAndRest(); |
|
|
|
// } else { |
|
|
|
// message.error(r.errors); |
|
|
|
// } |
|
|
|
// }); |
|
|
|
// }} |
|
|
|
// onCancel={() => {}} |
|
|
|
// > |
|
|
|
// <a href="#">删除</a> |
|
|
|
// </Popconfirm>, |
|
|
|
], |
|
|
|
}, |
|
|
|
]; |
|
|
|