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 @@