Commit 82cd56d9 authored by Bill's avatar Bill

Merge branch 'dev' into test

parents fc2c1aa6 2163c70c
......@@ -4,7 +4,7 @@
*/
import React, { useRef } from 'react';
import { Card, Button } from 'antd';
import { Card, Button, Space } from 'antd';
import NiceForm from '@/components/NiceForm';
import { StandardTable } from 'god';
import { PublicApi } from '@/services/api';
......@@ -75,12 +75,24 @@ const MemberSettle: React.FC<{}> = () => {
return null
}
return (
<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 = () => {
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