上传应答文件更改
This commit is contained in:
@ -284,7 +284,8 @@ const Index: React.FC<IndexProps> = (props) => {
|
|||||||
if (index == 'single') {
|
if (index == 'single') {
|
||||||
currentDate = val
|
currentDate = val
|
||||||
setEndTime(new Date(val.endDate).getTime())
|
setEndTime(new Date(val.endDate).getTime())
|
||||||
filetype = '.file'
|
// filetype = '.file'
|
||||||
|
filetype = '.rar,.zip,.doc,.docx,.xls,.xlsx,.pdf'
|
||||||
object = JSON.stringify(val)
|
object = JSON.stringify(val)
|
||||||
path = '/' + val.createYear + '/' + val.tpId + '/' + val.sectionId + '/' + val.tdocId + '/uploadFile/' + val.tendererId
|
path = '/' + val.createYear + '/' + val.tpId + '/' + val.sectionId + '/' + val.tdocId + '/uploadFile/' + val.tendererId
|
||||||
} else {
|
} else {
|
||||||
@ -357,34 +358,42 @@ const Index: React.FC<IndexProps> = (props) => {
|
|||||||
clearInterval(task);
|
clearInterval(task);
|
||||||
} else {
|
} else {
|
||||||
if (switchBtn) {
|
if (switchBtn) {
|
||||||
getDecrypt(uuid).then((res) => {
|
setTimeout(() => {
|
||||||
if (res.code == 200) {
|
message.destroy()
|
||||||
if (res.data.consumptionState == '2' || res.data.consumptionState == '4') {
|
}, 3000)
|
||||||
if (res.data.stateMessage) {
|
test = 100;
|
||||||
message.error(res.data.stateMessage)
|
callback(cache.length - 1, "文件验证成功", test);
|
||||||
callback(cache.length - 1, res.data.stateMessage, 2);
|
switchBtn = false;
|
||||||
} else {
|
clearInterval(task);
|
||||||
message.error('验证错误,请刷新页面后重新上传!')
|
return;
|
||||||
callback(cache.length - 1, "文件验证失败", 2);
|
// getDecrypt(uuid).then((res) => {
|
||||||
}
|
// if (res.code == 200) {
|
||||||
switchBtn = false
|
// if (res.data.consumptionState == '2' || res.data.consumptionState == '4') {
|
||||||
clearInterval(task);
|
// if (res.data.stateMessage) {
|
||||||
return;
|
// message.error(res.data.stateMessage)
|
||||||
} else if (res.data.consumptionState == '3') {
|
// callback(cache.length - 1, res.data.stateMessage, 2);
|
||||||
message.success(res.data.stateMessage)
|
// } else {
|
||||||
setTimeout(() => {
|
// message.error('验证错误,请刷新页面后重新上传!')
|
||||||
message.destroy()
|
// callback(cache.length - 1, "文件验证失败", 2);
|
||||||
}, 3000)
|
// }
|
||||||
test = 100;
|
// switchBtn = false
|
||||||
callback(cache.length - 1, "文件验证成功", test);
|
// clearInterval(task);
|
||||||
switchBtn = false
|
// return;
|
||||||
clearInterval(task);
|
// } else if (res.data.consumptionState == '3') {
|
||||||
return;
|
// message.success(res.data.stateMessage)
|
||||||
} else {
|
// setTimeout(() => {
|
||||||
callback(cache.length - 1, "文件验证中", test);
|
// message.destroy()
|
||||||
}
|
// }, 3000)
|
||||||
}
|
// test = 100;
|
||||||
})
|
// callback(cache.length - 1, "文件验证成功", test);
|
||||||
|
// switchBtn = false
|
||||||
|
// clearInterval(task);
|
||||||
|
// return;
|
||||||
|
// } else {
|
||||||
|
// callback(cache.length - 1, "文件验证中", test);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, 3000);
|
}, 3000);
|
||||||
|
Reference in New Issue
Block a user