图片上传相关问题修改
This commit is contained in:
parent
b021423006
commit
aafab5adee
|
|
@ -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)
|
||||||
this.fileList = []
|
if(this.protocolParams.url !== '') {
|
||||||
this.fileList.push({
|
this.fileList = []
|
||||||
name: this.protocolParams.url,
|
this.fileList.push({
|
||||||
url: this.protocolParams.url
|
name: 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
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
this.fileList = []
|
if(this.supplierParams.picUrl !== '') {
|
||||||
this.fileList.push({
|
this.fileList = []
|
||||||
name: this.supplierParams.picUrl,
|
this.fileList.push({
|
||||||
url: this.supplierParams.picUrl
|
name: 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue