修改因手机端rem布局引发的问题

This commit is contained in:
范强强
2023-06-14 13:40:29 +08:00
parent a5897b5820
commit f60d5dfbdc
@@ -291,13 +291,20 @@
getAction('sys/common/getFileInfos', { id: item }).then((res) => { getAction('sys/common/getFileInfos', { id: item }).then((res) => {
if (res.success) { if (res.success) {
this.deliveryResultList = res.result this.deliveryResultList = res.result
this.fileList = []
this.form.deliveryResult = []
this.deliveryResultList.forEach((val) => { this.deliveryResultList.forEach((val) => {
let fileName = val.fileName let fileName = val.fileName
let index1 = fileName.lastIndexOf('.') let index1 = fileName.lastIndexOf('.')
let index2 = fileName.length let index2 = fileName.length
let fileSuffix = fileName.substring(index1, index2) let fileSuffix = fileName.substring(index1, index2)
val.fileSuffix = fileSuffix val.fileSuffix = fileSuffix
this.fileList.push({
id: val.id,
fileName: val.fileName
})
}) })
this.form.deliveryResult = this.fileList
} else { } else {
this.deliveryResultList = [] this.deliveryResultList = []
} }
@@ -454,7 +461,7 @@
}, },
fileClick(index) { fileClick(index) {
this.fileList.splice(index, 1) this.fileList.splice(index, 1)
this.form.disposeResult.splice(index, 1) this.form.deliveryResult.splice(index, 1)
this.form = { ...this.form } this.form = { ...this.form }
}, },
deliverablesResultFileClick(item) { deliverablesResultFileClick(item) {