修改因手机端rem布局引发的问题
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user