瀏覽代碼

feat: 给分记录展示类型

chenhao 2 年之前
父節點
當前提交
ec34bd61ac
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 0
      src/api/api-types/marking.d.ts
  2. 1 1
      src/components/shared/MarkHistoryList.vue

+ 1 - 0
src/api/api-types/marking.d.ts

@@ -175,6 +175,7 @@ export namespace Marking {
     markScore: number
     markerName: string
     scoreLevel: 'LEVEL_1' | 'LEVEL_2' | 'LEVEL_3' | 'LEVEL_4' | 'LEVEL_5'
+    historyType: string
     markTime: string
     secretNumber: string
     status: string

+ 1 - 1
src/components/shared/MarkHistoryList.vue

@@ -79,7 +79,7 @@ const columns = computed<EpTableColumn<ExtractArrayValue<ExtractApiResponse<'get
         return `${row.markScore}${props.showLevel ? `(${row.scoreLevel})` : ''}`
       },
     },
-    { label: '类型' },
+    { label: '类型', prop: 'historyType' },
     { label: '评卷时间', prop: 'markTime' },
   ]
 )