From 8534025c45b4736975730678b9ccf23570a75f95 Mon Sep 17 00:00:00 2001
From: liuyu <yu.liu@cqgbkj.com>
Date: 星期二, 22 九月 2026 09:25:48 +0800
Subject: [PATCH] feat(tms): 新增试卷、培训任务、个人任务页面
---
apps/jnpf-web-apps-main/src/views/x/tms/examScore/Paper.vue | 29 +++++++++++++++++++----------
1 files changed, 19 insertions(+), 10 deletions(-)
diff --git a/apps/jnpf-web-apps-main/src/views/x/tms/examScore/Paper.vue b/apps/jnpf-web-apps-main/src/views/x/tms/examScore/Paper.vue
index 655ec4f..8b666c4 100644
--- a/apps/jnpf-web-apps-main/src/views/x/tms/examScore/Paper.vue
+++ b/apps/jnpf-web-apps-main/src/views/x/tms/examScore/Paper.vue
@@ -11,7 +11,10 @@
} from 'ant-design-vue';
import { getExamPaperView } from '#/api/x/tms/examScore';
-import { labelOfType } from '#/views/x/tms/question/constants';
+import { labelOfType, loadQuestionDics } from '#/views/x/tms/question/constants';
+import { TMS_BTN } from '#/views/x/tms/shared/ui';
+
+import '#/views/x/tms/shared/page.css';
defineOptions({ name: 'TmsExamScorePaper' });
@@ -22,7 +25,8 @@
const loading = ref(false);
const paper = ref<ExamPaperView | null>(null);
-onMounted(() => {
+onMounted(async () => {
+ await loadQuestionDics();
loadPaper();
});
@@ -62,30 +66,35 @@
<div class="jnpf-content-wrapper-center tms-paper-center">
<div class="jnpf-content-wrapper-content tms-paper-wrap">
<div class="paper-top">
- <div class="paper-header">
+ <div class="paper-header tms-page-header">
<div>
- <div class="text-base font-medium">鑰冪敓璇曞嵎璇︽儏</div>
- <div v-if="paper" class="mt-1 text-gray-400 text-sm">
+ <div class="tms-page-header__title">鑰冪敓璇曞嵎璇︽儏</div>
+ <div v-if="paper" class="tms-page-header__sub">
{{ paper.userName }}锛坽{ paper.userId }}锛� 路 {{ paper.paperName }}
</div>
</div>
- <a-button @click="goBack">杩斿洖</a-button>
+ <div class="tms-page-header__actions">
+ <a-button @click="goBack">{{ TMS_BTN.back }}</a-button>
+ </div>
</div>
<ADescriptions v-if="paper" bordered :column="3" size="small" class="mb-3">
- <ADescriptionsItem label="鍩硅涓婚" :span="2">{{ paper.taskSubject }}</ADescriptionsItem>
- <ADescriptionsItem label="鍩硅缂栧彿">{{ paper.taskNo }}</ADescriptionsItem>
+ <ADescriptionsItem label="璇曞嵎鍚嶇О" :span="2">{{ paper.taskSubject }}</ADescriptionsItem>
+ <ADescriptionsItem label="璇曞嵎缂栧彿">{{ paper.taskNo }}</ADescriptionsItem>
<ADescriptionsItem label="鑰冭瘯寮�濮�">{{ paper.examStart || '-' }}</ADescriptionsItem>
<ADescriptionsItem label="鑰冭瘯缁撴潫">{{ paper.examEnd || '-' }}</ADescriptionsItem>
- <ADescriptionsItem label="鏉ユ簮IP">{{ paper.sourceIp || '-' }}</ADescriptionsItem>
<ADescriptionsItem label="鎴愮哗">
<b class="text-primary">{{ paper.score }}</b> / {{ paper.totalScore }}
</ADescriptionsItem>
<ADescriptionsItem label="鍙婃牸鍒�">{{ paper.passScore }}</ADescriptionsItem>
<ADescriptionsItem label="鏄惁鍚堟牸">
- <span :class="paper.passFlag === '1' ? 'text-green-600' : 'text-red-500'">
+ <span
+ v-if="paper.passFlag === '1' || paper.passFlag === '0'"
+ :class="paper.passFlag === '1' ? 'text-green-600' : 'text-red-500'"
+ >
{{ paper.passFlag === '1' ? '鏄�' : '鍚�' }}
</span>
+ <span v-else>-</span>
</ADescriptionsItem>
</ADescriptions>
</div>
--
Gitblit v1.8.0