From 56e05efff161768018ac6afb9f01543485c0fa63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E7=A3=8A?= <45566618@qq.com> Date: Tue, 16 Apr 2024 09:43:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86bug-=E5=90=88=E5=90=8C?= =?UTF-8?q?=E7=AE=A1=E7=90=86-=E5=BD=93=E5=AF=BC=E5=85=A5=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E4=B8=BAnull=E6=97=B6=E9=A1=B5=E9=9D=A2=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=AD=A3=E5=B8=B8=E6=98=BE=E7=A4=BA=E6=96=BD=E5=B7=A5?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E7=AD=89=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../businesscontract/addEdit/addEdit.vue | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/src/pages/pagecontract/businesscontract/addEdit/addEdit.vue b/src/pages/pagecontract/businesscontract/addEdit/addEdit.vue index 08d922e..739f176 100644 --- a/src/pages/pagecontract/businesscontract/addEdit/addEdit.vue +++ b/src/pages/pagecontract/businesscontract/addEdit/addEdit.vue @@ -1192,7 +1192,9 @@ export default { } this.approval = res.approval; this.projectIds = res.projectId; - this.ids = res.projectId.split(","); + if(res.projectId !=null){ + this.ids = res.projectId.split(","); + } this.dataExcelForm.id = res.contractSsjd; //直非友 this.dicZFYList.forEach((item) => { @@ -1273,14 +1275,14 @@ export default { } }) //console.log(this.dataExcelForm.contractJxfpPhoto); - if (this.dataExcelForm.contractJxfpPhoto !== null && this.dataForm.contractJxfpPhoto !== "" && this.dataForm.contractJxfpPhoto !== undefined) { - this.$http.request({ - url: this.$http.adornUrl('/sys/oss/list' + "?filePath=" + this.dataForm.contractJxfpPhoto), - method: 'get', - }).then(({data}) => { - this.files.push(data.replace(/[\r\n]/g, "")); - }) - } + // if (this.dataExcelForm.contractJxfpPhoto !== null && this.dataForm.contractJxfpPhoto !== "" && this.dataForm.contractJxfpPhoto !== undefined) { + // this.$http.request({ + // url: this.$http.adornUrl('/sys/oss/list' + "?filePath=" + this.dataForm.contractJxfpPhoto), + // method: 'get', + // }).then(({data}) => { + // this.files.push(data.replace(/[\r\n]/g, "")); + // }) + // } } else{ this.dataExcelForm.id = ''; this.dataExcelForm.contractId = this.dataForm.id