mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-student.git
synced 2025-12-10 11:26:49 +08:00
-- fix 更新学员当前任务
This commit is contained in:
@@ -66,6 +66,9 @@ export const PROJECT_LIST = '/stu/project/list post'
|
||||
|
||||
export const FACETEACH_SIGNUP = `/stu/project/stuFaceTeachSignUp`
|
||||
|
||||
export const UPDATE_CURRENT_TASK = `/admin/student/updateCurrentTask`
|
||||
|
||||
|
||||
// 外部考试详情接口
|
||||
export const EXTERNALEXAM = `/external/exam/queryExternalExam`
|
||||
|
||||
|
||||
@@ -287,6 +287,7 @@ import store from "@/store";
|
||||
import { ElMessage } from "element-plus";
|
||||
import {PROJECT} from "@/api/CONST";
|
||||
import FileTypeImg from "@/components/FileTypeImg.vue";
|
||||
import {UPDATE_CURRENT_TASK} from "../../api/api";
|
||||
|
||||
const {
|
||||
query: { courseId, projectId },
|
||||
@@ -518,6 +519,8 @@ function toFinish(d, sName, chapterOrStageId) {
|
||||
ElMessage.error("暂时未开放");
|
||||
return;
|
||||
}
|
||||
//更新学员当前任务
|
||||
request(UPDATE_CURRENT_TASK,{id:d.projectTaskId,type:PROJECT,pid:projectId,name:d.name})
|
||||
if (d.type == 3 || d.type == 7) {
|
||||
d.status!==1 && request(STUDY_RECORD, {
|
||||
studentId: data.value.userInfoBo.userId,
|
||||
|
||||
@@ -283,6 +283,7 @@ import { ElMessage } from "element-plus";
|
||||
import store from "@/store";
|
||||
import {ROUTER} from "@/api/CONST";
|
||||
import FileTypeImg from "@/components/FileTypeImg.vue";
|
||||
import {UPDATE_CURRENT_TASK} from "../../api/api";
|
||||
|
||||
const {
|
||||
query: { routerId, routerName },
|
||||
@@ -459,6 +460,8 @@ function toFinish(d) {
|
||||
return
|
||||
}
|
||||
}
|
||||
//更新学员当前任务
|
||||
request(UPDATE_CURRENT_TASK,{id:d.routerTaskId,type:ROUTER,pid:routerId,name:d.name})
|
||||
if (d.type === 3 || d.type === 7) {
|
||||
d.status!==1 && request(STUDY_RECORD, {
|
||||
studentId: userInfo.value.id,
|
||||
|
||||
Reference in New Issue
Block a user