Kaynağa Gözat

主动抽查的浏览接口

刘洋 2 yıl önce
ebeveyn
işleme
9e814e11e1

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

@@ -178,6 +178,9 @@ export namespace Marking {
   /** 问题卷浏览 */
   type ViewProblemPaper = BaseDefine<{ id: number }>
 
+  // 主动抽查浏览
+  type ViewActiveCheck = BaseDefine<{ taskId: number }>
+
   interface MarkScoreHistory {
     id: number
     markScore: number
@@ -377,5 +380,6 @@ export namespace Marking {
     exportSimilarPaper: ExportSimilarPaper
     /** 提交雷同卷 */
     submitSimilarPaper: SubmitSimilarPaper
+    viewActiveCheck: ViewActiveCheck
   }
 }

+ 1 - 0
src/api/marking.ts

@@ -75,6 +75,7 @@ const MarkingApi: DefineApiModule<Marking.ApiMap> = {
   },
   /** 提交雷同卷 */
   submitSimilarPaper: '/api/mark/same',
+  viewActiveCheck: '/api/leader/operate/view',
 }
 
 export default MarkingApi

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

@@ -4,7 +4,7 @@
     :modal="false"
     draggable
     class="mark-history-list"
-    :title="`给分记录( ${number ? number : task.secretNumber} )`"
+    :title="`给分记录( ${number ? number : task?.secretNumber} )`"
     width="600px"
   >
     <template #default>

+ 3 - 0
src/modules/analysis/group-monitoring-detail/index.vue

@@ -186,6 +186,9 @@ watch(
         imgWrap.value.scrollTop = 0
       }
     }
+    if (current.value) {
+      useFetch('viewActiveCheck').fetch({ taskId: current.value?.taskId })
+    }
   },
   { immediate: true, deep: true }
 )

+ 5 - 0
src/modules/analysis/view-marked-detail/index.vue

@@ -269,6 +269,11 @@ const onSubmit = async () => {
 // watch(current, () => {
 //   modelScore.value = [current.value?.markerScore || 0]
 // })
+watch(current, () => {
+  if (current.value) {
+    useFetch('viewActiveCheck').fetch({ taskId: current.value?.taskId })
+  }
+})
 const imgOption = computed<SetImgBgOption>(() => {
   return {
     image: current?.value?.filePath || '',

+ 3 - 0
src/modules/marking/repeat/index.vue

@@ -244,6 +244,9 @@ const {
 watch(currentReMarkPaper, () => {
   if (currentReMarkPaper.value) {
     modelScore.value = JSON.parse(JSON.stringify(currentReMarkPaper.value.markScores || []))
+    if (currentReMarkPaper.value) {
+      useFetch('viewActiveCheck').fetch({ taskId: currentReMarkPaper.value?.taskId })
+    }
   }
 })
 const onSearch = async () => {

+ 7 - 1
src/modules/monitor/training-monitoring-detail/index.vue

@@ -56,7 +56,7 @@
 
 <script setup lang="tsx" name="TrainingDetail">
 /** 培训监控调卷详情 */
-import { ref, computed } from 'vue'
+import { ref, computed, watch } from 'vue'
 import { useRoute } from 'vue-router'
 import { ElButton } from 'element-plus'
 import { useSetImgBg } from '@/hooks/useSetImgBg'
@@ -177,6 +177,12 @@ const {
   onCurrentChange,
 } = useTableCheck(monitorDetail)
 
+watch(current, () => {
+  if (current.value) {
+    useFetch('viewActiveCheck').fetch({ taskId: current.value?.taskId })
+  }
+})
+
 const imgOption = computed<SetImgBgOption>(() => {
   return {
     image: current?.value?.filePath,

+ 7 - 1
src/modules/quality/self-check-detail/index.vue

@@ -85,7 +85,7 @@
 
 <script setup lang="ts" name="QualitySelfCheckDetail">
 /** 自查数据详情 */
-import { ref, computed } from 'vue'
+import { ref, computed, watch } from 'vue'
 import { useRoute } from 'vue-router'
 import { ElButton, ElMessage } from 'element-plus'
 import { add } from '@/utils/common'
@@ -203,6 +203,12 @@ const {
   nextRow,
 } = useTableCheck(selfCheckDataDetail)
 
+watch(current, () => {
+  if (current.value) {
+    useFetch('viewActiveCheck').fetch({ taskId: current.value.taskId })
+  }
+})
+
 /** 修改给分 */
 const { fetch: markSelfCheckData } = useFetch('markSelfCheckData')
 

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

@@ -345,6 +345,9 @@ const {
 } = useTableCheck(subjectiveCheckList)
 watch(currentSubjectiveCheck, () => {
   getMarkScoreHistoryListWithTask({ taskId: currentSubjectiveCheck.value.taskId })
+  if (currentSubjectiveCheck.value) {
+    useFetch('viewActiveCheck').fetch({ taskId: currentSubjectiveCheck.value.taskId })
+  }
 })
 const statusText = ref<string>('未处理')