fix:成绩下载按钮逻辑优化

This commit is contained in:
zxj
2025-11-26 15:21:22 +08:00
parent a0a5e57a13
commit 051d35f540

View File

@@ -373,26 +373,6 @@ export default {
); );
}, },
async onDownload() { async onDownload() {
// if (!this.projectId || !this.studentId) {
// this.$message.warning("缺少项目信息或学员信息");
// return;
// }
if (this.approvalResults != 2) {
// this.$refs.customMessage.show(
// "您的报名正在审核中,无法下载成绩单,请审核通过后下载"
// );
return;
}
if (this.approvalResults != 4) {
// this.$refs.customMessage.show(
// "请您重新报名,重新报名不影响当前学习进度,请在审核通过后下载成绩单"
// );
return;
}
if (this.progressRing.total != 100) {
// this.$message.warning("请您完成学习课程后下载成绩单");
return;
}
try { try {
const res = await downloadSocialRecruitReport( const res = await downloadSocialRecruitReport(
this.projectId, this.projectId,