Commit e6303639 authored by XieZhiXiong's avatar XieZhiXiong

修改文件url 字段

parent 0bd46cb6
......@@ -103,7 +103,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
PublicApi.postPayCreditApplyAddCreditApply({
applyId: +id,
creditId: creditId ? +creditId : 0,
fileList: fileList.map(item => ({ name: item.name, fileUrl: item.url })),
fileList: fileList.map((item: any) => ({ name: item.name, fileUrl: item.data })),
...rest,
}).then(res => {
if (res.code === 1000) {
......
......@@ -73,12 +73,14 @@ const QuotaApplicationInfo: React.FC<QuotaApplicationInfo> = ({
billDay,
repayPeriod,
quotaSlide,
fileList,
...rest
} = values;
onSubmit({
applyQuota: +applyQuota,
billDay: +billDay,
repayPeriod: +repayPeriod,
fileList: fileList.filter(item => item.status === 'done'),
...rest,
});
setModalVisible(false);
......
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