mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 04:16:47 +08:00
学习路径项目模板库区分islevel字段
This commit is contained in:
@@ -275,7 +275,7 @@ export default {
|
||||
default: 0,
|
||||
},
|
||||
isLevel: { // 是否是关卡页面触发
|
||||
type: Boolean,
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
EditWorkId: { // 要编辑的workId
|
||||
@@ -358,7 +358,7 @@ export default {
|
||||
}
|
||||
};
|
||||
const updateTask = (res) => {
|
||||
if(props.isLevel){
|
||||
if(props.isLevel == 1 ){
|
||||
RouterEditTask({
|
||||
chapterId:props.isactive,
|
||||
courseId: res.data.data.activityId,
|
||||
@@ -373,7 +373,7 @@ export default {
|
||||
}).catch(err => {
|
||||
console.log("新增关卡任务失败",err);
|
||||
})
|
||||
}else{
|
||||
}else if(props.isLevel==2){
|
||||
apiTask.addTask({
|
||||
courseId: res.data.data.activityId,
|
||||
duration: res.data.data.activityDuration,
|
||||
@@ -389,6 +389,8 @@ export default {
|
||||
.catch((err)=> {
|
||||
console.log("更新任务列表失败",err);
|
||||
})
|
||||
}else if(props.isLevel == 3){
|
||||
console.log("模板库更新更新任务列表");
|
||||
}
|
||||
}
|
||||
//创建活动
|
||||
|
||||
Reference in New Issue
Block a user