diff --git a/src/views/exam/ExamList.vue b/src/views/exam/ExamList.vue index 351b79c5..7000a95f 100644 --- a/src/views/exam/ExamList.vue +++ b/src/views/exam/ExamList.vue @@ -765,7 +765,7 @@ export default { this.$message.error(res.message) } else { const link = document.createElement('a');// 创建a标签 - let blob = new Blob([res],{type: 'application/vnd.ms-excel;charset=UTF-8'}); // 设置文件类型 + let blob = new Blob([res],{type: 'application/vnd.ms-excel;charset=UTF-8'}); // 设置文件类型 link.style.display = "none"; link.href = URL.createObjectURL(blob); // 创建URL link.setAttribute("download", "成绩.xls"); @@ -1054,7 +1054,8 @@ export default { //正式环境直接根据域名计算 let urlPre=window.location.protocol+'//'+window.location.host; //this.qrcode = urlPre+'/mobile/pages/exam/exam?id=' + row.id - this.qrcode =urlPre+'/m?returnUrl='+urlPre+'/mobile/pages/login/loading?returnUrl='+urlPre+'/mobile/pages/exam/exam?id=' + row.id + let returnUrl=encodeURIComponent(urlPre+'/mobile/pages/login/loading?returnUrl=/pages/exam/exam?id=' + row.id); + this.qrcode =urlPre+'/m?returnUrl='+returnUrl; //通过配置来写 //let urlPre=process.env.VUE_APP_BOE_MOBILE_URL; //this.qrcode = urlPre+'/mobile/pages/exam/exam?id=' + row.id @@ -1206,7 +1207,7 @@ export default { }, //导入考试成绩 exportAnswers(){ - + }, handleSizeAnswerChange(val){ this.answerData.pageSize = val