Commit 7731c5a5 authored by Bill's avatar Bill

修改结算对公账号配置

parent ecab126e
......@@ -84,7 +84,11 @@ const ItemRender: React.FC<Config> = (props) => {
)
}
const PARAM_TO_TYPE = {
name: 1,
bankAccount: 2,
bankDeposit: 3,
}
const CorporateAccount = () => {
const [configs, setConfigs] = useState<Config[]>([]);
const [datas, setDatas] = useState<any>({});
......@@ -112,15 +116,10 @@ const CorporateAccount = () => {
} else if(type == 'confirm') {
setUnsaved(false);
const postData = {
...datas,
[target.dataIndex]: target.value
}
///settle/accounts/platform/config/updatePlatformAccountConfig
PublicApi.postSettleAccountsPlatformConfigUpdatePlatformAccountConfig(postData)
PublicApi.postSettleAccountsPlatformConfigUpdatePlatformAccountConfigDetail({itemValue: target.value, itemType: PARAM_TO_TYPE[target.dataIndex]})
.then((data) => {
if(data.code == 1000) {
setDatas(postData);
// setDatas(postData);
temp[index] = {
...target,
...res,
......@@ -130,9 +129,7 @@ const CorporateAccount = () => {
}
})
}
}
useEffect(() => {
......
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