mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-13 12:56:47 +08:00
feat:增加测评去学习请求接口返回跳转url进行跳转
This commit is contained in:
@@ -281,6 +281,7 @@ import {
|
||||
ROUTER_PROCESS,
|
||||
LINK_DETAILS,
|
||||
STUDY_RECORD,
|
||||
EvaluationToLearn
|
||||
} from "@/api/api";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import store from "@/store";
|
||||
@@ -414,7 +415,6 @@ function judgeTaskIsEnd(type, endTimes, status) {
|
||||
|
||||
function toFinish(d, sName, chapterOrStageId) {
|
||||
console.log("dddddd", d, sName, chapterOrStageId);
|
||||
|
||||
if(judgeTaskIsEnd(d.type ,data.value.endTime, data.value.status)){
|
||||
ElMessage.error("当前任务已结束")
|
||||
return
|
||||
@@ -513,6 +513,37 @@ function toFinish(d, sName, chapterOrStageId) {
|
||||
return
|
||||
}
|
||||
}
|
||||
// 测评模块 请求接口跳转新的页面 - 新增 暂时未调试 目前无测评数据 2023-02-04
|
||||
if(d.type == 100) {
|
||||
// 调用接口 跳转页面
|
||||
console.log('我是查询测评跳转链接所传递得参数',{
|
||||
"businessType": "project",
|
||||
"chapterId": chapterOrStageId,
|
||||
"courseId": d.courseId,
|
||||
"quizKid": "",
|
||||
"routerOrProjectId": projectId,
|
||||
"studentId": data.value.userInfoBo.userId,
|
||||
"studentName": data.value.userInfoBo.userName
|
||||
})
|
||||
request(EvaluationToLearn, {
|
||||
"businessType": "project",
|
||||
"chapterId": chapterOrStageId,
|
||||
"courseId": d.courseId,
|
||||
"quizKid": "",
|
||||
"routerOrProjectId": projectId,
|
||||
"studentId": data.value.userInfoBo.userId,
|
||||
"studentName": data.value.userInfoBo.userName
|
||||
}).then(res=>{
|
||||
console.log(res)
|
||||
if(res.data.code==200){
|
||||
// 此处写跳转url
|
||||
window.open( 'http://ceping.com', '_top')
|
||||
}
|
||||
}).catch(err=>{
|
||||
console.log(err)
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if (!types.value.path[d.type]) {
|
||||
ElMessage.error("暂时未开放");
|
||||
|
||||
Reference in New Issue
Block a user