Ver código fonte

-问题卷 文案补充

刘洋 2 anos atrás
pai
commit
c74d927ec6
1 arquivos alterados com 12 adições e 3 exclusões
  1. 12 3
      src/modules/quality/subjective-check/index.vue

+ 12 - 3
src/modules/quality/subjective-check/index.vue

@@ -155,7 +155,7 @@ const currentHistoryData = computed(() => {
   return scoreHistoryList.value
 })
 
-const currentHistoryColumns = computed(() => [
+const currentHistoryColumns = computed<any>(() => [
   { label: '评卷员', prop: 'markerName', fixed: 'left' },
   {
     label: `分数`,
@@ -165,7 +165,14 @@ const currentHistoryColumns = computed(() => [
       return `${row.markScore === null ? '' : row.markScore}`
     },
   },
-  { label: '类型', prop: 'historyType' },
+  {
+    label: '类型',
+    prop: 'historyType',
+    width: 104,
+    formatter(row: any) {
+      return `${row.historyType}${row.markScore === null ? '-问题卷' : ''}`
+    },
+  },
   { label: '路径', prop: 'source' },
   { label: '评卷时间', prop: 'markTime', width: 130 },
 ])
@@ -344,8 +351,10 @@ const {
   nextRow,
 } = useTableCheck(subjectiveCheckList)
 watch(currentSubjectiveCheck, () => {
-  getMarkScoreHistoryListWithTask({ taskId: currentSubjectiveCheck.value.taskId })
+  // getMarkScoreHistoryListWithTask({ taskId: currentSubjectiveCheck.value.taskId })
   if (currentSubjectiveCheck.value) {
+    getMarkScoreHistoryListWithTask({ taskId: currentSubjectiveCheck.value.taskId })
+
     useFetch('viewActiveCheck').fetch({ taskId: currentSubjectiveCheck.value.taskId })
   }
 })