mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
--fix bug
This commit is contained in:
@@ -773,9 +773,9 @@ export default {
|
||||
};
|
||||
// 系统考试
|
||||
const updateTask = (res) => {
|
||||
state.EditTestId = res.data.data.examinationId;
|
||||
state.EditTestId = res.data.data.id;
|
||||
if (props.faceLevel) {
|
||||
state.EditTestId = res.data.data.examinationId;
|
||||
state.EditTestId = res.data.data.id;
|
||||
state.paperName = "";
|
||||
closeDrawer();
|
||||
} else {
|
||||
@@ -788,7 +788,7 @@ export default {
|
||||
examType: 1,
|
||||
chapterId: props.isactive,
|
||||
duration: res.data.data.examinationDuration,
|
||||
courseId: res.data.data.examinationId,
|
||||
courseId: res.data.data.id,
|
||||
name: res.data.data.examinationName,
|
||||
routerId: props.routerId,
|
||||
routerTaskId: props.routerTaskId || 0,
|
||||
@@ -808,7 +808,7 @@ export default {
|
||||
} else if (props.isLevel == 2) {
|
||||
let editObj = {
|
||||
examType: 1,
|
||||
courseId: res.data.data.examinationId,
|
||||
courseId: res.data.data.id,
|
||||
duration: res.data.data.examinationDuration,
|
||||
name: res.data.data.examinationName,
|
||||
projectId: props.projectId,
|
||||
@@ -830,7 +830,7 @@ export default {
|
||||
} else if (props.isLevel == 3) {
|
||||
addTempTask({
|
||||
examType: 1,
|
||||
courseId: res.data.data.examinationId,
|
||||
courseId: res.data.data.id,
|
||||
duration: res.data.data.examinationDuration,
|
||||
name: res.data.data.examinationName,
|
||||
projectTemplateId: props.projectTemplateId,
|
||||
@@ -852,9 +852,9 @@ export default {
|
||||
};
|
||||
// 外部考试
|
||||
const updateTask1 = (res) => {
|
||||
state.EditTestId = res.data.data.examinationId;
|
||||
state.EditTestId = res.data.data.id;
|
||||
if (props.faceLevel) {
|
||||
state.EditTestId = res.data.data.examinationId;
|
||||
state.EditTestId = res.data.data.id;
|
||||
state.paperName = "";
|
||||
closeDrawer();
|
||||
} else {
|
||||
@@ -866,7 +866,7 @@ export default {
|
||||
let editObj1 = {
|
||||
examType: 2,
|
||||
chapterId: props.isactive,
|
||||
courseId: res.data.data.examinationId,
|
||||
courseId: res.data.data.id,
|
||||
name: res.data.data.examinationName,
|
||||
routerId: props.routerId,
|
||||
routerTaskId: props.routerTaskId || 0,
|
||||
@@ -886,7 +886,7 @@ export default {
|
||||
} else if (props.isLevel == 2) {
|
||||
let editObj = {
|
||||
examType: 2,
|
||||
courseId: res.data.data.examinationId,
|
||||
courseId: res.data.data.id,
|
||||
name: res.data.data.examinationName,
|
||||
projectId: props.projectId,
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
@@ -907,7 +907,7 @@ export default {
|
||||
} else if (props.isLevel == 3) {
|
||||
addTempTask({
|
||||
examType: 2,
|
||||
courseId: res.data.data.examinationId,
|
||||
courseId: res.data.data.id,
|
||||
name: res.data.data.examinationName,
|
||||
projectTemplateId: props.projectTemplateId,
|
||||
projectTaskId: props.projectTaskId || 0,
|
||||
|
||||
Reference in New Issue
Block a user