阅片人筛选,下载简历为空问题修复

uat_us
wangxiaoshuang 2024-04-01 13:57:32 +08:00
parent 139e4ab5e2
commit 1351a9192c
1 changed files with 12 additions and 3 deletions

View File

@ -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;
}
}
}
</script>