Commit 2163c70c authored by Bill's avatar Bill

添加删除结算策略

parent 63cee027
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
*/ */
import React, { useRef } from 'react'; import React, { useRef } from 'react';
import { Card, Button } from 'antd'; import { Card, Button, Space } from 'antd';
import NiceForm from '@/components/NiceForm'; import NiceForm from '@/components/NiceForm';
import { StandardTable } from 'god'; import { StandardTable } from 'god';
import { PublicApi } from '@/services/api'; import { PublicApi } from '@/services/api';
...@@ -75,12 +75,24 @@ const MemberSettle: React.FC<{}> = () => { ...@@ -75,12 +75,24 @@ const MemberSettle: React.FC<{}> = () => {
return null return null
} }
return ( return (
<Link to={`/ruleSettingManager/platformSettlementStrategy/edit?id=${record.id}`}>修改</Link> <Space>
<Link to={`/ruleSettingManager/platformSettlementStrategy/edit?id=${record.id}`}>修改</Link>
<Button type="link" onClick={() => handleRemove({id: record.id})}>删除</Button>
</Space>
) )
} }
}, },
] ]
const handleRemove = (params) => {
PublicApi.postSettleAccountsPlatformConfigDeletePlatformSettlementStrategy(params)
.then(({data, code}) => {
if(code === 1000) {
formActions.submit();
}
})
}
const goToCreate = () => { const goToCreate = () => {
history.push('/ruleSettingManager/platformSettlementStrategy/add'); history.push('/ruleSettingManager/platformSettlementStrategy/add');
} }
......
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