mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 12:56:45 +08:00
学习路径项目模板库区分islevel字段
This commit is contained in:
@@ -242,7 +242,7 @@ export default {
|
||||
default: null,
|
||||
},
|
||||
isLevel: { // 是否是关卡页面触发
|
||||
type: Boolean,
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
projectTaskId: { // 要编辑的projectId
|
||||
@@ -481,7 +481,7 @@ export default {
|
||||
}
|
||||
|
||||
const updateTask = (res) => {
|
||||
if(props.isLevel){
|
||||
if(props.isLevel == 1){
|
||||
let editObj1 = {
|
||||
"chapterId": props.isactive,
|
||||
"courseId": res.data.data.examinationId,
|
||||
@@ -500,7 +500,7 @@ export default {
|
||||
message.error(`${props.edit ? '编辑' : '新增'}关卡任务失败`)
|
||||
console.log(` 编辑关卡失败的打印 ${err}`);
|
||||
});
|
||||
}else{
|
||||
}else if(props.isLevel ==2){
|
||||
let editObj = {
|
||||
"courseId": res.data.data.examinationId,
|
||||
"duration": 0,
|
||||
@@ -517,6 +517,8 @@ export default {
|
||||
}).catch(() => {
|
||||
message.error(`${props.EditTestId? '编辑' : '新增'}阶段任务失败`)
|
||||
});
|
||||
}else if(props.isLevel ==3){
|
||||
console.log("");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user