mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
考试二维码,returnUrl 编码处理
This commit is contained in:
@@ -765,7 +765,7 @@ export default {
|
|||||||
this.$message.error(res.message)
|
this.$message.error(res.message)
|
||||||
} else {
|
} else {
|
||||||
const link = document.createElement('a');// 创建a标签
|
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.style.display = "none";
|
||||||
link.href = URL.createObjectURL(blob); // 创建URL
|
link.href = URL.createObjectURL(blob); // 创建URL
|
||||||
link.setAttribute("download", "成绩.xls");
|
link.setAttribute("download", "成绩.xls");
|
||||||
@@ -1054,7 +1054,8 @@ export default {
|
|||||||
//正式环境直接根据域名计算
|
//正式环境直接根据域名计算
|
||||||
let urlPre=window.location.protocol+'//'+window.location.host;
|
let urlPre=window.location.protocol+'//'+window.location.host;
|
||||||
//this.qrcode = urlPre+'/mobile/pages/exam/exam?id=' + row.id
|
//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;
|
//let urlPre=process.env.VUE_APP_BOE_MOBILE_URL;
|
||||||
//this.qrcode = urlPre+'/mobile/pages/exam/exam?id=' + row.id
|
//this.qrcode = urlPre+'/mobile/pages/exam/exam?id=' + row.id
|
||||||
@@ -1206,7 +1207,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//导入考试成绩
|
//导入考试成绩
|
||||||
exportAnswers(){
|
exportAnswers(){
|
||||||
|
|
||||||
},
|
},
|
||||||
handleSizeAnswerChange(val){
|
handleSizeAnswerChange(val){
|
||||||
this.answerData.pageSize = val
|
this.answerData.pageSize = val
|
||||||
|
|||||||
Reference in New Issue
Block a user