Commit e6303639 authored by XieZhiXiong's avatar XieZhiXiong

修改文件url 字段

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