修复事故事件管理附件不显示的问题
parent
97de0aaa08
commit
8ca527e9b0
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue