diff --git a/src/renderer/src/hooks/useProcessList.js b/src/renderer/src/hooks/useProcessList.js index 8cd80ad..bb2b0c3 100644 --- a/src/renderer/src/hooks/useProcessList.js +++ b/src/renderer/src/hooks/useProcessList.js @@ -36,13 +36,13 @@ export const processList = (row, aloneOption=false) => { row[i].method = jjj.method row[i].discuss = jjj.discuss //row[i].discusscollapse = false; - if (row[i].examdate !== null && row[i].examdate !== undefined) { + if (row[i].examdate && row[i].examdate != "") { row[i].examdate = row[i].examdate.substring(0, 10) } // 具体题型数据结构处理 if (row[i].worktype == '复合题') { - // 旧类型 + // 复合题 - 旧格式 if (row[i].title.indexOf('!@#$%') !== -1) { // 1.选项解析替换 const options = JSON.parse(row[i].workdesc) @@ -129,7 +129,9 @@ export const processList = (row, aloneOption=false) => { row[i].workanswerFormat = answer } else { - // 处理[题干显示] - 不再需要处理 + // 复合题 - 现格式 + + // 处理[题干显示] - 不再需要处理(头部已处理) // row[i].titleFormat = row[i].title; // 仅占位提示 /** @@ -222,6 +224,7 @@ export const processList = (row, aloneOption=false) => { row[i].workanswerFormat = workAnswerHtml } } else if ( + /** 主观题/非基础题(其中主要为第三方的各类解答题) */ row[i].worktype == '主观题' || (row[i].worktype !== '单选题' && row[i].worktype !== '多选题' && @@ -236,7 +239,7 @@ export const processList = (row, aloneOption=false) => { row[i].workanswerFormat = JSON.parse(row[i].workanswer) } } else { - // 单选题|多选题|填空题|判断题|主观题?(待确认是否归在这里) + // 基础题: 单选题|多选题|填空题|判断题|主观题?(待确认是否归在这里) // 通用选项结构 ['ABC123','ABC123'] | ['ABC123','ABC123'] | [](填空题无选项) | [](判断题无选项) let workDescArr = [] if ( diff --git a/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue b/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue index 23970f4..2495908 100644 --- a/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue +++ b/src/renderer/src/views/classTask/newClassTaskAssign/myQuestion/index.vue @@ -19,7 +19,7 @@ - + diff --git a/src/renderer/src/views/examReport/container/examReview.vue b/src/renderer/src/views/examReport/container/examReview.vue index 6503399..0df3a9d 100644 --- a/src/renderer/src/views/examReport/container/examReview.vue +++ b/src/renderer/src/views/examReport/container/examReview.vue @@ -16,6 +16,16 @@ + +
+ +
@@ -54,11 +64,13 @@ const { proxy } = getCurrentInstance() const props = defineProps({ listExamQuestion: {type: Array}, - loading: {type: Boolean} + loading: {type: Boolean}, + paginationParams: {type: Object}, }) const activeExamInfoDrawer = ref(false); const activeExam = ref({}); +const emit = defineEmits(['updatePageNum']) const showExamAnalyseDrawer = (row) => { nextTick(() => { @@ -69,13 +81,17 @@ const showExamAnalyseDrawer = (row) => { }) } +const changePageNum = (pageNum) => { + emit('updatePageNum', pageNum); +} +