diff --git a/src/views/base/agreement/components/form-protocol.vue b/src/views/base/agreement/components/form-protocol.vue index 6094253..d5114ce 100644 --- a/src/views/base/agreement/components/form-protocol.vue +++ b/src/views/base/agreement/components/form-protocol.vue @@ -168,11 +168,14 @@ export default { console.log(this.editParams) if (this.editParams) { Object.assign(this.protocolParams, this.editParams) - this.fileList = [] - this.fileList.push({ - name: this.protocolParams.url, - url: this.protocolParams.url - }) + 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 diff --git a/src/views/material/masupplier/components/form-masupplier.vue b/src/views/material/masupplier/components/form-masupplier.vue index e70efc4..f6b7569 100644 --- a/src/views/material/masupplier/components/form-masupplier.vue +++ b/src/views/material/masupplier/components/form-masupplier.vue @@ -107,11 +107,14 @@ export default { console.log(this.editParams) if (this.editParams) { Object.assign(this.supplierParams, this.editParams) - this.fileList = [] - this.fileList.push({ - name: this.supplierParams.picUrl, - url: this.supplierParams.picUrl - }) + 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