From aafab5adeef2fbb8008d6445f39cf88827a7c056 Mon Sep 17 00:00:00 2001 From: FrancisHu <2756004617@qq.com> Date: Mon, 26 Aug 2024 17:32:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=BE=E7=89=87=E4=B8=8A=E4=BC=A0=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/agreement/components/form-protocol.vue | 13 ++++++++----- .../masupplier/components/form-masupplier.vue | 13 ++++++++----- 2 files changed, 16 insertions(+), 10 deletions(-) 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