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; + } } }