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