mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
模板库添加任务bug
This commit is contained in:
@@ -382,6 +382,10 @@ export default {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
projectTemplateId:{
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
},
|
||||
setup(props, ctx) {
|
||||
// const router = useRouter();
|
||||
@@ -559,7 +563,7 @@ export default {
|
||||
name: res.data.data.liveName,
|
||||
projectId: props.projectId,
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId,
|
||||
stageId: props.chooseStageId || 0,
|
||||
type: 6,
|
||||
})
|
||||
.then(() => {
|
||||
@@ -570,14 +574,14 @@ export default {
|
||||
message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`);
|
||||
});
|
||||
} else if (props.isLevel == 3) {
|
||||
console.log("");
|
||||
console.log("props.projectTemplateId",props.projectTemplateId);
|
||||
addTempTask({
|
||||
courseId: res.data.data.liveId,
|
||||
duration: res.data.data.duration,
|
||||
name: res.data.data.liveName,
|
||||
projectId: props.projectId,
|
||||
projectTemplateId:props.projectTemplateId,
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId,
|
||||
stageId: props.chooseStageId || 0,
|
||||
type: 6,
|
||||
})
|
||||
.then(() => {
|
||||
|
||||
Reference in New Issue
Block a user