This commit is contained in:
Ggysh-7
2022-11-25 07:23:53 +08:00
12 changed files with 178 additions and 12 deletions

View File

@@ -280,7 +280,30 @@ export default {
});
}
} else if (props.isLevel == 3) {
console.log("");
for(let i = 0;i < state.apiTaskList.length;i++){
console.log(state.apiTaskList[i],'state.apiTaskList[i].caseIdstate.apiTaskList[i].caseId');
apiTask
.addTask({
"courseId": state.apiTaskList[i].caseid,
"duration": 0,
"flag": true,
"name": state.apiTaskList[i].caseName,
"projectId": props.projectId,
"projectTemplateId": props.projectTemplateId,
"stageId": props.chooseStageId,
"type": 3,
})
.then(() => {
message.destroy()
message.success(`${props.edit ? "编辑" : "新增"}阶段任务成功`);
ctx.emit("changeData", false);
closeDrawer();
})
.catch(() => {
message.destroy()
message.error(`${props.edit ? "编辑" : "新增"}阶段任务失败`);
});
}
}
};
//重置案例信息