feat:增加所有任务传参

This commit is contained in:
wyx
2023-02-13 21:50:54 +08:00
parent c10b3ffce2
commit 603a4aa255
12 changed files with 90 additions and 3 deletions

View File

@@ -105,6 +105,10 @@ export default {
type: Number,
default: null,
},
taskIdDraft: {
type: Number,
default: null,
},
edit: {
// 是否为编辑
type: Boolean,
@@ -194,6 +198,7 @@ export default {
routerId: props.routerId,
routerTaskId: props.routerTaskId || 0,
type: 10,
id: props.taskIdDraft
})
.then(() => {
//message.success(`${props.EditTestId ? "编辑" : "新增"}关卡任务成功`);
@@ -212,6 +217,7 @@ export default {
projectTaskId: props.projectTaskId || 0,
stageId: props.chooseStageId || 0,
type: 10,
id: props.taskIdDraft
})
.then(() => {
//message.destroy()
@@ -229,6 +235,7 @@ export default {
projectTaskId: props.projectTaskId || 0,
stageId: props.chooseStageId || 0,
type: 10,
id: props.taskIdDraft
})
.then(() => {
//message.success(`${props.edit ? "编辑" : "新增"}阶段任务成功`);
@@ -301,6 +308,7 @@ export default {
evaluationTag: "",
updateTime: "",
type:state.type,
id: props.edit ? props.taskIdDraft : ""
};
api
.updateEvaluation(objei)