From 93c133349a5ccd7a328371fa113dce69d5611f21 Mon Sep 17 00:00:00 2001
From: liuyu <yu.liu@cqgbkj.com>
Date: 星期二, 22 九月 2026 09:25:39 +0800
Subject: [PATCH] feat(tms): 完成课程考试自测等页面与接口对接

---
 apps/jnpf-web-apps-main/src/views/x/tms/examGrade/index.vue |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/apps/jnpf-web-apps-main/src/views/x/tms/examGrade/index.vue b/apps/jnpf-web-apps-main/src/views/x/tms/examGrade/index.vue
index f5b4455..c2f95ab 100644
--- a/apps/jnpf-web-apps-main/src/views/x/tms/examGrade/index.vue
+++ b/apps/jnpf-web-apps-main/src/views/x/tms/examGrade/index.vue
@@ -8,13 +8,16 @@
 import { BasicVxeTable, TableAction, useVxeTable } from '@jnpf/ui/vxeTable';
 
 import { getGradeSessionList } from '#/api/x/tms/examGrade';
+import { TMS_BTN } from '#/views/x/tms/shared/ui';
+
+import '#/views/x/tms/shared/page.css';
 
 defineOptions({ name: 'TmsExamGrade' });
 
 const router = useRouter();
 
 const columns: BasicColumn[] = [
-  { title: '鍩硅缂栧彿', dataIndex: 'taskNo', width: 140 },
+  { title: '璇曞嵎缂栧彿', dataIndex: 'taskNo', width: 140 },
   { title: '鍩硅涓婚', dataIndex: 'taskSubject', minWidth: 260 },
   { title: '璇曞嵎鍚嶇О', dataIndex: 'paperName', minWidth: 200 },
   {
@@ -51,9 +54,9 @@
     schemas: [
       {
         field: 'taskNo',
-        label: '鍩硅缂栧彿',
+        label: '璇曞嵎缂栧彿',
         component: 'Input',
-        componentProps: { placeholder: '璇疯緭鍏ュ煿璁紪鍙�', submitOnPressEnter: true },
+        componentProps: { placeholder: '璇疯緭鍏ヨ瘯鍗风紪鍙�', submitOnPressEnter: true },
       },
       {
         field: 'keyword',
@@ -72,7 +75,13 @@
 });
 
 async function fetchList(params: Record<string, any>) {
-  return { data: await getGradeSessionList(params) };
+  const page = await getGradeSessionList(params);
+  return {
+    data: {
+      list: Array.isArray(page?.list) ? page.list : [],
+      pagination: page?.pagination || { total: 0 },
+    },
+  };
 }
 
 function handleEnter(record: GradeSessionListItem) {
@@ -80,7 +89,7 @@
 }
 
 function getTableActions(record: GradeSessionListItem): ActionItem[] {
-  return [{ label: '杩涘叆', onClick: handleEnter.bind(null, record) }];
+  return [{ label: TMS_BTN.grade, onClick: handleEnter.bind(null, record) }];
 }
 </script>
 
@@ -91,8 +100,8 @@
         <BasicVxeTable @register="registerTable">
           <template #tableTitle>
             <div>
-              <div class="text-base font-medium">鑰冭瘯闃呭嵎</div>
-              <div class="mt-1 text-gray-400 text-sm">闃呭嵎鍒楄〃锛岄�夋嫨璇曞嵎杩涜闃呭嵎锛屾垨鏌ョ湅鑰冭瘯璇︽儏銆�</div>
+              <div class="tms-page-header__title">鑰冭瘯闃呭嵎</div>
+              <div class="tms-page-header__sub">閫夋嫨鍦烘杩涘叆绛斿嵎鍒楄〃锛屽寰呴槄璇曞嵎璇勫垎銆�</div>
             </div>
           </template>
           <template #examTime="{ record }">

--
Gitblit v1.8.0