上传应答文件更改

This commit is contained in:
ygs
2025-07-30 15:46:57 +08:00
parent 6bdeb28e28
commit bd00bec951
2 changed files with 8 additions and 6 deletions

View File

@ -273,15 +273,16 @@ const Index: React.FC<{}> = () => {
if (index == 'single') {
currentDate = val
setEndTime(new Date(val.endDate).getTime())
// filetype = '.file'
filetype = '.rar,.zip,.doc,.docx,.xls,.xlsx,.pdf'
filetype = '.file'
// filetype = '.rar,.zip,.doc,.docx,.xls,.xlsx,.pdf'
object = JSON.stringify(val)
path = '/' + val.createYear + '/' + val.tpId + '/' + val.sectionId + '/' + val.tdocId + '/uploadFile/' + val.tendererId
} else {
currentDate = dateList[index].tfileList[0]
currentDate.tdocCatalogId = ""
setEndTime(new Date(dateList[index].endDate).getTime())
filetype = '.rar,.zip'
filetype = '.zip'
// filetype = '.rar,.zip'
object = JSON.stringify(dateList[index].tfileList[0])
path = '/' + dateList[index].createYear + '/' + dateList[index].tpId + '/' + dateList[index].sectionId + '/' + dateList[index].id + '/uploadFile/' + dateList[index].tfileList[0].tendererId
}

View File

@ -284,15 +284,16 @@ const Index: React.FC<IndexProps> = (props) => {
if (index == 'single') {
currentDate = val
setEndTime(new Date(val.endDate).getTime())
// filetype = '.file'
filetype = '.rar,.zip,.doc,.docx,.xls,.xlsx,.pdf'
filetype = '.file'
// filetype = '.rar,.zip,.doc,.docx,.xls,.xlsx,.pdf'
object = JSON.stringify(val)
path = '/' + val.createYear + '/' + val.tpId + '/' + val.sectionId + '/' + val.tdocId + '/uploadFile/' + val.tendererId
} else {
currentDate = dateList[index].tfileList[0]
currentDate.tdocCatalogId = ""
setEndTime(new Date(dateList[index].endDate).getTime())
filetype = '.rar,.zip'
filetype = '.zip'
// filetype = '.rar,.zip'
object = JSON.stringify(dateList[index].tfileList[0])
path = '/' + dateList[index].createYear + '/' + dateList[index].tpId + '/' + dateList[index].sectionId + '/' + dateList[index].id + '/uploadFile/' + dateList[index].tfileList[0].tendererId
}