阅片人筛选,下载简历为空问题修复
parent
139e4ab5e2
commit
1351a9192c
|
@ -156,7 +156,8 @@ export default {
|
||||||
submitIdArr: [],
|
submitIdArr: [],
|
||||||
dialogVisible: false,
|
dialogVisible: false,
|
||||||
language: 2,
|
language: 2,
|
||||||
token: store.getters.token
|
token: store.getters.token,
|
||||||
|
selectTable: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() { this.initPage() },
|
created() { this.initPage() },
|
||||||
|
@ -275,14 +276,18 @@ export default {
|
||||||
},
|
},
|
||||||
handleDownloadResumes() {
|
handleDownloadResumes() {
|
||||||
getTrialDoctorOfficialResume({
|
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
|
language: this.language
|
||||||
}).then(async res => {
|
}).then(async res => {
|
||||||
|
this.selectTable = {};
|
||||||
for (let i = 0; res.Result.length > i; i++) {
|
for (let i = 0; res.Result.length > i; i++) {
|
||||||
let item = res.Result[i]
|
let item = res.Result[i]
|
||||||
await this.handleBatchDown(item)
|
await this.handleBatchDown(item)
|
||||||
}
|
}
|
||||||
this.dialogVisible = false
|
this.dialogVisible = false
|
||||||
|
}).catch(err=>{
|
||||||
|
this.dialogVisible = false;
|
||||||
|
this.selectTable= {};
|
||||||
})
|
})
|
||||||
// this.dialogVisible = false
|
// this.dialogVisible = false
|
||||||
// const arr = []
|
// const arr = []
|
||||||
|
@ -294,7 +299,11 @@ export default {
|
||||||
downloadResume(arr) {
|
downloadResume(arr) {
|
||||||
downloadResume(this.$route.query.trialId, this.language, arr).then(res => { window.open(res.Result) })
|
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>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue