From 1833309308e0f1d44e7c5a7ea0cf76a4a3e2b23a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8C=83=E5=BC=BA=E5=BC=BA?= <787203167> Date: Mon, 27 Mar 2023 13:53:35 +0800 Subject: [PATCH] =?UTF-8?q?=20=E8=AE=A4=E8=AF=81=E6=B8=85=E5=8D=95-?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8E=E6=9F=A5=E7=9C=8B=EF=BC=8C=E4=B8=8A=E4=BC=A0=E7=9A=84?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=B8=8D=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../certificationList/components/addModel.vue | 13 +- .../components/editModel.vue | 274 +++++++++--------- 2 files changed, 155 insertions(+), 132 deletions(-) diff --git a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue index 8417b5850..a3013d2a5 100644 --- a/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue +++ b/jero-web/src/views/projectManagement/components/certificationList/components/addModel.vue @@ -179,7 +179,7 @@ + @click="clickButtonToUpload('deliverableTemplate',index,true)"> {{ (item.deliverableTemplate === 'null' || item.deliverableTemplate === '' || item.deliverableTemplate == null) ? $t('clickUpload') : $t('viewUploadedFiles') @@ -719,12 +719,19 @@ } this.formInline = { ...this.formInline } }, - clickButtonToUpload(item, index) { + clickButtonToUpload(item, index,isTrue) { this.numIndex = index this.$refs.uploadFile.perentHandleFunc() this.$refs.uploadFile.visible = true this.uploadName = item - getAction('sys/common/getFileInfos', { id: this.formInline[item] }).then((res) => { + let ids = '' + console.log(index) + if (isTrue){ + ids = this.formInline.dataList[index][item] + }else{ + ids = this.formInline[item] + } + getAction('sys/common/getFileInfos', { id: ids }).then((res) => { if (res.success) { this.$refs.uploadFile.perentHandleFunc(res.result) } else { diff --git a/jero-web/src/views/virtualAuthenticationList/components/editModel.vue b/jero-web/src/views/virtualAuthenticationList/components/editModel.vue index 3b0869ae9..907e6582d 100644 --- a/jero-web/src/views/virtualAuthenticationList/components/editModel.vue +++ b/jero-web/src/views/virtualAuthenticationList/components/editModel.vue @@ -1,148 +1,153 @@