{
// if (info.file.status !== 'uploading') {
// console.log(info.file, info.fileList);
// }
if (info.file.status === 'done') {
if (!info.file.response.error.length) {
message.success(`${info.file.name} 文件上传成功!`);
} else {
message.warning(info.file.response.error[0].message);
return;
};
this.state.lastYearTaxReportUrl = info.file.response.data;
} else if (info.file.status === 'error') {
message.error(`${info.file.name} 文件上传失败。`);
};
this.setState({ fileList: info.fileList.slice(-1) });
}}
>