浏览代码

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

刘洋 2 年之前
父节点
当前提交
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})` : ''}`
         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: 'source' },
     { label: '评卷时间', prop: 'markTime', width: 130 },
     { label: '评卷时间', prop: 'markTime', width: 130 },
   ]
   ]