修改因手机端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) => {
if (res.success) {
this.deliveryResultList = res.result
this.fileList = []
this.form.deliveryResult = []
this.deliveryResultList.forEach((val) => {
let fileName = val.fileName
let index1 = fileName.lastIndexOf('.')
let index2 = fileName.length
let fileSuffix = fileName.substring(index1, index2)
val.fileSuffix = fileSuffix
this.fileList.push({
id: val.id,
fileName: val.fileName
})
})
this.form.deliveryResult = this.fileList
} else {
this.deliveryResultList = []
}
@@ -454,7 +461,7 @@
},
fileClick(index) {
this.fileList.splice(index, 1)
this.form.disposeResult.splice(index, 1)
this.form.deliveryResult.splice(index, 1)
this.form = { ...this.form }
},
deliverablesResultFileClick(item) {