修复事故事件管理附件不显示的问题

hyx_2024-10-30_new
shanao 2024-10-23 17:25:08 +08:00
parent 97de0aaa08
commit 8ca527e9b0
2 changed files with 5 additions and 4 deletions

View File

@ -431,11 +431,12 @@ export default {
} }
this.infoForm.incidentDate = formatDate(this.infoForm.incidentDate, 'YYYY-MM-DD HH:mm:ss') this.infoForm.incidentDate = formatDate(this.infoForm.incidentDate, 'YYYY-MM-DD HH:mm:ss')
this.infoForm.reportDate = formatDate(this.infoForm.reportDate, 'YYYY-MM-DD HH:mm:ss') this.infoForm.reportDate = formatDate(this.infoForm.reportDate, 'YYYY-MM-DD HH:mm:ss')
const address = this.infoForm.fileAddressList const address = this.infoForm.fileAddressList[0]
console.log(address)
const params = { const params = {
...this.infoForm, ...this.infoForm,
photos: this.infoForm.fileList[0].remotePathName, photos: this.infoForm.fileList[0].remotePathName,
attachmentAddress: address == null || address.length === 0 ? address[0].remotePathName : '', attachmentAddress: address == null ? '' : address.remotePathName,
type: 1 type: 1
} }
delete params.fileList delete params.fileList

View File

@ -431,11 +431,11 @@ export default {
} }
this.infoForm.incidentDate = formatDate(this.infoForm.incidentDate, 'YYYY-MM-DD HH:mm:ss') this.infoForm.incidentDate = formatDate(this.infoForm.incidentDate, 'YYYY-MM-DD HH:mm:ss')
this.infoForm.reportDate = formatDate(this.infoForm.reportDate, 'YYYY-MM-DD HH:mm:ss') this.infoForm.reportDate = formatDate(this.infoForm.reportDate, 'YYYY-MM-DD HH:mm:ss')
const address = this.infoForm.fileAddressList const address = this.infoForm.fileAddressList[0]
const params = { const params = {
...this.infoForm, ...this.infoForm,
photos: this.infoForm.fileList[0].remotePathName, photos: this.infoForm.fileList[0].remotePathName,
attachmentAddress: address == null || address.length === 0 ? address[0].remotePathName : '', attachmentAddress: address == null ? '' : address.remotePathName,
type: 2 type: 2
} }
delete params.fileList delete params.fileList