mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
feat:增加所有任务传参
This commit is contained in:
@@ -423,6 +423,10 @@ export default {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
taskIdDraft: {
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
isactive: {
|
||||
type: Number,
|
||||
default: null,
|
||||
@@ -663,6 +667,7 @@ export default {
|
||||
state.test.targetId = 0;
|
||||
state.test.type = 0;
|
||||
state.test.chapterId=0;
|
||||
state.test.id = props.taskIdDraft;
|
||||
console.log("props.offCourseId",props.offCourseId);
|
||||
if (props.faceLevel && props.offCourseId > 0) {
|
||||
state.test.targetId = props.offCourseId;
|
||||
@@ -724,6 +729,7 @@ export default {
|
||||
state.test1.targetId = 0;
|
||||
state.test1.type = 0;
|
||||
state.test1.chapterId=0;
|
||||
state.test1.id = props.taskIdDraft;
|
||||
console.log("props.offCourseId",props.offCourseId);
|
||||
if (props.faceLevel && props.offCourseId > 0) {
|
||||
state.test1.targetId = props.offCourseId;
|
||||
@@ -748,7 +754,8 @@ export default {
|
||||
examinationId:props.EditTestId,
|
||||
examinationName:state.test1.externalName,
|
||||
examinationExplain:state.test1.externalExplain,
|
||||
source:state.test1.source
|
||||
source:state.test1.source,
|
||||
id: props.taskIdDraft
|
||||
}
|
||||
updateExternalExam(obj)
|
||||
.then(async (res) => {
|
||||
@@ -793,6 +800,7 @@ export default {
|
||||
routerId: props.routerId,
|
||||
routerTaskId: props.routerTaskId || 0,
|
||||
type: 5,
|
||||
id: props.taskIdDraft
|
||||
};
|
||||
RouterEditTask(editObj1)
|
||||
.then(() => {
|
||||
@@ -815,6 +823,7 @@ export default {
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId || 0,
|
||||
type: 5,
|
||||
id: props.taskIdDraft
|
||||
};
|
||||
// 新增编辑或新增项目
|
||||
ProjectEditTask(editObj)
|
||||
@@ -837,6 +846,7 @@ export default {
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId || 0,
|
||||
type: 5,
|
||||
id: props.taskIdDraft
|
||||
})
|
||||
.then(() => {
|
||||
message.success(`${props.edit ? "编辑" : "新增"}任务成功`);
|
||||
@@ -871,6 +881,7 @@ export default {
|
||||
routerId: props.routerId,
|
||||
routerTaskId: props.routerTaskId || 0,
|
||||
type: 5,
|
||||
id: props.taskIdDraft
|
||||
};
|
||||
RouterEditTask(editObj1)
|
||||
.then(() => {
|
||||
@@ -892,6 +903,7 @@ export default {
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId || 0,
|
||||
type: 5,
|
||||
id: props.taskIdDraft
|
||||
};
|
||||
// 新增编辑或新增项目
|
||||
ProjectEditTask(editObj)
|
||||
@@ -913,6 +925,7 @@ export default {
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
stageId: props.chooseStageId || 0,
|
||||
type: 5,
|
||||
id: props.taskIdDraft
|
||||
})
|
||||
.then(() => {
|
||||
message.success(`${props.edit ? "编辑" : "新增"}任务成功`);
|
||||
|
||||
Reference in New Issue
Block a user