mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
feat:增加外部考试考试成绩导入,增加内部考试外部考试创建时参数区分。
This commit is contained in:
@@ -689,7 +689,7 @@ export default {
|
|||||||
}
|
}
|
||||||
// 新建外部考试
|
// 新建外部考试
|
||||||
CreateExternalExam(state.test1).then( async res=>{
|
CreateExternalExam(state.test1).then( async res=>{
|
||||||
console.log(res)
|
console.log('新建外部考试返回的参数',res)
|
||||||
// 添加更新到任务
|
// 添加更新到任务
|
||||||
await updateTask1(res);
|
await updateTask1(res);
|
||||||
}).catch(err=>{
|
}).catch(err=>{
|
||||||
@@ -711,6 +711,7 @@ export default {
|
|||||||
return message.warning("请先选中关卡");
|
return message.warning("请先选中关卡");
|
||||||
}
|
}
|
||||||
let editObj1 = {
|
let editObj1 = {
|
||||||
|
examType: 1,
|
||||||
chapterId: props.isactive,
|
chapterId: props.isactive,
|
||||||
duration: res.data.data.examinationDuration,
|
duration: res.data.data.examinationDuration,
|
||||||
courseId: res.data.data.examinationId,
|
courseId: res.data.data.examinationId,
|
||||||
@@ -732,6 +733,7 @@ export default {
|
|||||||
});
|
});
|
||||||
} else if (props.isLevel == 2) {
|
} else if (props.isLevel == 2) {
|
||||||
let editObj = {
|
let editObj = {
|
||||||
|
examType: 1,
|
||||||
courseId: res.data.data.examinationId,
|
courseId: res.data.data.examinationId,
|
||||||
duration: res.data.data.examinationDuration,
|
duration: res.data.data.examinationDuration,
|
||||||
name: res.data.data.examinationName,
|
name: res.data.data.examinationName,
|
||||||
@@ -753,6 +755,7 @@ export default {
|
|||||||
});
|
});
|
||||||
} else if (props.isLevel == 3) {
|
} else if (props.isLevel == 3) {
|
||||||
addTempTask({
|
addTempTask({
|
||||||
|
examType: 1,
|
||||||
courseId: res.data.data.examinationId,
|
courseId: res.data.data.examinationId,
|
||||||
duration: res.data.data.examinationDuration,
|
duration: res.data.data.examinationDuration,
|
||||||
name: res.data.data.examinationName,
|
name: res.data.data.examinationName,
|
||||||
@@ -775,9 +778,9 @@ export default {
|
|||||||
};
|
};
|
||||||
// 外部考试
|
// 外部考试
|
||||||
const updateTask1 = (res) => {
|
const updateTask1 = (res) => {
|
||||||
state.EditTestId = res.data.data.externalId;
|
state.EditTestId = res.data.data.examinationId;
|
||||||
if (props.faceLevel) {
|
if (props.faceLevel) {
|
||||||
state.EditTestId = res.data.data.externalId;
|
state.EditTestId = res.data.data.examinationId;
|
||||||
state.paperName = "";
|
state.paperName = "";
|
||||||
closeDrawer();
|
closeDrawer();
|
||||||
} else {
|
} else {
|
||||||
@@ -787,9 +790,10 @@ export default {
|
|||||||
return message.warning("请先选中关卡");
|
return message.warning("请先选中关卡");
|
||||||
}
|
}
|
||||||
let editObj1 = {
|
let editObj1 = {
|
||||||
|
examType: 2,
|
||||||
chapterId: props.isactive,
|
chapterId: props.isactive,
|
||||||
courseId: res.data.data.externalId,
|
courseId: res.data.data.examinationId,
|
||||||
name: res.data.data.externalName,
|
name: res.data.data.examinationName,
|
||||||
routerId: props.routerId,
|
routerId: props.routerId,
|
||||||
routerTaskId: props.routerTaskId || 0,
|
routerTaskId: props.routerTaskId || 0,
|
||||||
type: 5,
|
type: 5,
|
||||||
@@ -807,8 +811,9 @@ export default {
|
|||||||
});
|
});
|
||||||
} else if (props.isLevel == 2) {
|
} else if (props.isLevel == 2) {
|
||||||
let editObj = {
|
let editObj = {
|
||||||
courseId: res.data.data.externalId,
|
examType: 2,
|
||||||
name: res.data.data.externalName,
|
courseId: res.data.data.examinationId,
|
||||||
|
name: res.data.data.examinationName,
|
||||||
projectId: props.projectId,
|
projectId: props.projectId,
|
||||||
projectTaskId: props.projectTaskId || 0,
|
projectTaskId: props.projectTaskId || 0,
|
||||||
stageId: props.chooseStageId || 0,
|
stageId: props.chooseStageId || 0,
|
||||||
@@ -827,8 +832,9 @@ export default {
|
|||||||
});
|
});
|
||||||
} else if (props.isLevel == 3) {
|
} else if (props.isLevel == 3) {
|
||||||
addTempTask({
|
addTempTask({
|
||||||
courseId: res.data.data.externalId,
|
examType: 2,
|
||||||
name: res.data.data.externalName,
|
courseId: res.data.data.examinationId,
|
||||||
|
name: res.data.data.examinationName,
|
||||||
projectTemplateId: props.projectTemplateId,
|
projectTemplateId: props.projectTemplateId,
|
||||||
projectTaskId: props.projectTaskId || 0,
|
projectTaskId: props.projectTaskId || 0,
|
||||||
stageId: props.chooseStageId || 0,
|
stageId: props.chooseStageId || 0,
|
||||||
|
|||||||
@@ -235,7 +235,7 @@
|
|||||||
const state = reactive({
|
const state = reactive({
|
||||||
fileType: ["xls", "xlsx"],
|
fileType: ["xls", "xlsx"],
|
||||||
importScore:
|
importScore:
|
||||||
process.env.VUE_APP_BASE_API + "/admin/external/exam/manage/importExternalExamScore",
|
process.env.VUE_APP_BASE_API + "/admin/external/exam/manage/ImportExternalScore",
|
||||||
uploadpercent: -1,
|
uploadpercent: -1,
|
||||||
uploadErr: false, //上传失败
|
uploadErr: false, //上传失败
|
||||||
addLoading: false,
|
addLoading: false,
|
||||||
|
|||||||
Reference in New Issue
Block a user