This commit is contained in:
宋文超
2022-11-16 10:00:48 +08:00
26 changed files with 3753 additions and 3560 deletions

View File

@@ -124,7 +124,7 @@ export default {
},
isLevel: {
// 是否是关卡页面触发
type: Boolean,
type: Number,
default: null,
},
EditWorkId: {
@@ -207,8 +207,7 @@ export default {
}
};
const updateTask = (res) => {
console.log("jinlaile ========", props.isLevel);
if (props.isLevel) {
if (props.isLevel == 1) {
RouterEditTask({
chapterId: props.isactive,
courseId: res.data.data.discussId,
@@ -223,22 +222,16 @@ export default {
.catch((err) => {
console.log("新增关卡任务失败", err);
});
} else {
apiTask
.addTask({
courseId: res.data.data.discussId,
name: res.data.data.discussName,
projectId: props.projectId,
projectTaskId: props.projectTaskId || 0,
stageId: props.chooseStageId,
type: 8,
})
.then((r) => {
console.log("新增关卡任务成功", r);
})
.catch((r) => {
console.log("更新阶段任务失败", r);
});
} else if (props.isLevel == 2) {
apiTask.addTask({
courseId: res.data.data.discussId,
name: res.data.data.discussName,
routerId: props.routerId,
routerTaskId: props.routerTaskId || 0,
type: 8,
});
} else if (props.isLevel == 3) {
console.log("模板库任务");
}
};
const updateDiscussInfo = () => {
@@ -318,12 +311,14 @@ export default {
display: flex;
justify-content: space-between;
.main_left {
margin-top: 32px;
padding-right: 30px;
flex: 1;
border-right: 1px solid #e8e8e8;
.main_item {
display: flex;
align-items: center;
margin-top: 32px;
margin-bottom: 32px;
.signbox {
width: 120px;