图片上传相关问题修改
This commit is contained in:
parent
b021423006
commit
aafab5adee
|
|
@ -168,11 +168,14 @@ export default {
|
|||
console.log(this.editParams)
|
||||
if (this.editParams) {
|
||||
Object.assign(this.protocolParams, this.editParams)
|
||||
if(this.protocolParams.url !== '') {
|
||||
this.fileList = []
|
||||
this.fileList.push({
|
||||
name: this.protocolParams.url,
|
||||
url: this.protocolParams.url
|
||||
})
|
||||
this.picList.push(this.protocolParams.url)
|
||||
}
|
||||
this.subSort = 2
|
||||
} else {
|
||||
this.subSort = 1
|
||||
|
|
|
|||
|
|
@ -107,11 +107,14 @@ export default {
|
|||
console.log(this.editParams)
|
||||
if (this.editParams) {
|
||||
Object.assign(this.supplierParams, this.editParams)
|
||||
if(this.supplierParams.picUrl !== '') {
|
||||
this.fileList = []
|
||||
this.fileList.push({
|
||||
name: this.supplierParams.picUrl,
|
||||
url: this.supplierParams.picUrl
|
||||
})
|
||||
this.picList.push(this.supplierParams.picUrl)
|
||||
}
|
||||
this.subSort = 2
|
||||
} else {
|
||||
this.subSort = 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue