|
|
@@ -104,24 +104,26 @@
|
|
|
})
|
|
|
const typeOptionsVal = ref([
|
|
|
{
|
|
|
- label: '考试',
|
|
|
+ label: '任务',
|
|
|
value: '1',
|
|
|
- paperType:'6'
|
|
|
+ paperType: '6'
|
|
|
},
|
|
|
{
|
|
|
label: '章节测验',
|
|
|
value: '2',
|
|
|
- paperType:'3'
|
|
|
+ paperType: '3',
|
|
|
+ funcType: '5'
|
|
|
},
|
|
|
{
|
|
|
label: '调查问卷',
|
|
|
value: '3',
|
|
|
- paperType:'5'
|
|
|
+ paperType: '5'
|
|
|
},
|
|
|
{
|
|
|
label: '作业',
|
|
|
value: '4',
|
|
|
- paperType:'2'
|
|
|
+ paperType: '2',
|
|
|
+ funcType: '4'
|
|
|
}
|
|
|
])
|
|
|
const examName = computed(() => {
|
|
|
@@ -186,12 +188,15 @@
|
|
|
current: pagination.value.current,
|
|
|
size: pagination.value.pageSize,
|
|
|
subjectId: pagination.value.subjectId,
|
|
|
- courseId: route.query.id,
|
|
|
+ courseId: route.query.id
|
|
|
}
|
|
|
if (examType.value == 2 || examType.value == 4) {
|
|
|
- params.paperType = typeOptionsVal.value.find(d=>d.value==examType.value).paperType
|
|
|
+ //章节/作业(固定试卷)
|
|
|
+ params.paperType = typeOptionsVal.value.find((d) => d.value == examType.value).paperType
|
|
|
+ params.funcType = typeOptionsVal.value.find((d) => d.value == examType.value).funcType
|
|
|
res = await examPaperApi.newPageList(params)
|
|
|
} else {
|
|
|
+ //任务试卷
|
|
|
params.examType = examType.value == 1 ? examTypeSelect.value : examType.value
|
|
|
res = await examPaperApi.pageExamList(params)
|
|
|
}
|