图片上传相关问题修改

This commit is contained in:
FrancisHu 2024-08-26 17:32:23 +08:00
parent b021423006
commit aafab5adee
2 changed files with 16 additions and 10 deletions

View File

@ -168,11 +168,14 @@ export default {
console.log(this.editParams) console.log(this.editParams)
if (this.editParams) { if (this.editParams) {
Object.assign(this.protocolParams, this.editParams) Object.assign(this.protocolParams, this.editParams)
if(this.protocolParams.url !== '') {
this.fileList = [] this.fileList = []
this.fileList.push({ this.fileList.push({
name: this.protocolParams.url, name: this.protocolParams.url,
url: this.protocolParams.url url: this.protocolParams.url
}) })
this.picList.push(this.protocolParams.url)
}
this.subSort = 2 this.subSort = 2
} else { } else {
this.subSort = 1 this.subSort = 1

View File

@ -107,11 +107,14 @@ export default {
console.log(this.editParams) console.log(this.editParams)
if (this.editParams) { if (this.editParams) {
Object.assign(this.supplierParams, this.editParams) Object.assign(this.supplierParams, this.editParams)
if(this.supplierParams.picUrl !== '') {
this.fileList = [] this.fileList = []
this.fileList.push({ this.fileList.push({
name: this.supplierParams.picUrl, name: this.supplierParams.picUrl,
url: this.supplierParams.picUrl url: this.supplierParams.picUrl
}) })
this.picList.push(this.supplierParams.picUrl)
}
this.subSort = 2 this.subSort = 2
} else { } else {
this.subSort = 1 this.subSort = 1