diff --git a/pc/src/views/apps/exams/examinationQuestions/components/detail.vue b/pc/src/views/apps/exams/examinationQuestions/components/detail.vue
index 57b2cae..8a20542 100644
--- a/pc/src/views/apps/exams/examinationQuestions/components/detail.vue
+++ b/pc/src/views/apps/exams/examinationQuestions/components/detail.vue
@@ -1,14 +1,20 @@
- {{ q?.question_title || '-' }}
+
+
+ -
+
{{ displayType }}
{{ q?.score ?? '-' }}
{{ (answerDisplay || []).join(', ') }}
{{ answerDisplay || '-' }}
- {{ q?.question_analysis || '-' }}
+
+
+ -
+
{{ formatTime(q?.create_time || q?.created_at) }}
{{ formatTime(q?.update_time || q?.updated_at) }}
@@ -16,7 +22,11 @@
@@ -42,7 +52,11 @@ const typeOptions = ref([])
const q = computed(() => (props.model && (props.model.Question || props.model)) || null)
const displayType = computed(() => {
- const typeValue = String(q.value?.question_type ?? '')
+ // 兼容多种返回字段:question_type / QuestionType,根节点或 Question 内部
+ const raw = q.value
+ ? (q.value.question_type ?? q.value.QuestionType)
+ : (props.model?.question_type ?? props.model?.QuestionType)
+ const typeValue = raw != null ? String(raw) : ''
const found = typeOptions.value.find(opt => String(opt.dict_value) === typeValue)
return found ? found.dict_label : typeValue
})
@@ -89,4 +103,10 @@ function handleClose() {
diff --git a/pc/src/views/apps/exams/examinationQuestions/components/edit.vue b/pc/src/views/apps/exams/examinationQuestions/components/edit.vue
index 48058b3..1d9b988 100644
--- a/pc/src/views/apps/exams/examinationQuestions/components/edit.vue
+++ b/pc/src/views/apps/exams/examinationQuestions/components/edit.vue
@@ -24,7 +24,7 @@
-
+
@@ -67,7 +67,7 @@
-
+
@@ -115,10 +115,11 @@