From 1351a9192cdb9ff0918102f828f5867c39328944 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 1 Apr 2024 13:57:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=85=E7=89=87=E4=BA=BA=E7=AD=9B=E9=80=89?= =?UTF-8?q?=EF=BC=8C=E4=B8=8B=E8=BD=BD=E7=AE=80=E5=8E=86=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../enrollment/components/Submission.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/views/trials/trials-panel/attachments/enrollment/components/Submission.vue b/src/views/trials/trials-panel/attachments/enrollment/components/Submission.vue index 5827918d..c6d00f80 100644 --- a/src/views/trials/trials-panel/attachments/enrollment/components/Submission.vue +++ b/src/views/trials/trials-panel/attachments/enrollment/components/Submission.vue @@ -156,7 +156,8 @@ export default { submitIdArr: [], dialogVisible: false, language: 2, - token: store.getters.token + token: store.getters.token, + selectTable: {} } }, created() { this.initPage() }, @@ -275,14 +276,18 @@ export default { }, handleDownloadResumes() { getTrialDoctorOfficialResume({ - doctorIdList: this.list.map(v => {return v.Id}), + doctorIdList:this.selectTable.Id?[this.selectTable.Id]: this.list.map(v => {return v.Id}), language: this.language }).then(async res => { + this.selectTable = {}; for (let i = 0; res.Result.length > i; i++) { let item = res.Result[i] await this.handleBatchDown(item) } this.dialogVisible = false + }).catch(err=>{ + this.dialogVisible = false; + this.selectTable= {}; }) // this.dialogVisible = false // const arr = [] @@ -294,7 +299,11 @@ export default { downloadResume(arr) { downloadResume(this.$route.query.trialId, this.language, arr).then(res => { window.open(res.Result) }) }, - handleDownload(row) { this.downloadResume([row.Id]) } + handleDownload(row) { + // this.downloadResume([row.Id]) + this.dialogVisible = true; + this.selectTable = row; + } } }