Просмотр исходного кода

给分记录里,空分的试卷类型加上'-问题卷'

刘洋 2 лет назад
Родитель
Сommit
5f5f595267
1 измененных файлов с 7 добавлено и 1 удалено
  1. 7 1
      src/components/shared/MarkHistoryList.vue

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

@@ -101,7 +101,13 @@ const columns = computed<EpTableColumn<ExtractArrayValue<ExtractApiResponse<'get
         return `${row.markScore === null ? '' : row.markScore}${props.showLevel ? `(${row.scoreLevel})` : ''}`
       },
     },
-    { label: '类型', prop: 'historyType' },
+    {
+      label: '类型',
+      prop: 'historyType',
+      formatter(row) {
+        return `${row.historyType}${row.markScore === null ? '-问题卷' : ''}`
+      },
+    },
     { label: '路径', prop: 'source' },
     { label: '评卷时间', prop: 'markTime', width: 130 },
   ]