刘洋 1 ano atrás
pai
commit
c37af2abaa

+ 0 - 1
src/components/shared/ScoringPanelWithConfirm.vue

@@ -1,6 +1,5 @@
 <template>
   <scoring-panel
-    v-if="props.mainNumber"
     v-bind="attrs"
     :id="props.id"
     v-model:score="modelScore"

+ 3 - 1
src/modules/marking/inquiry-result/index.vue

@@ -368,7 +368,9 @@ watch(current, () => {
         current.value.customCheckNumber = (current.value.customCheckNumber || 0) + 1
       })
     // modelScore.value = [current.value?.headerScore ?? (current.value?.markerScore || 0)]
-    modelScore.value = current.value?.markScores || []
+    nextTick(() => {
+      modelScore.value = current.value?.markScores || []
+    })
   }
 })
 

+ 4 - 2
src/modules/marking/problem/index.vue

@@ -98,7 +98,7 @@
 
 <script setup lang="ts" name="MarkingProblem">
 /** 问题卷查看 */
-import { reactive, ref, computed, watch } from 'vue'
+import { reactive, ref, computed, watch, nextTick } from 'vue'
 import { ElButton, ElMessage } from 'element-plus'
 import { add } from '@/utils/common'
 import { useSetImgBg } from '@/hooks/useSetImgBg'
@@ -309,7 +309,9 @@ watch(currentProblem, () => {
     useFetch('viewProblemPaper').fetch({ id: currentProblem.value.id })
     if (currentProblem.value.problemSolveType !== 'MARK' && currentProblem.value.problemSolveType !== 'REJECT') {
       showScoreBoard.value = true
-      modelScore.value = JSON.parse(JSON.stringify(currentProblem.value.markScores || []))
+      nextTick(() => {
+        modelScore.value = JSON.parse(JSON.stringify(currentProblem.value.markScores || []))
+      })
     } else {
       showScoreBoard.value = false
     }

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

@@ -270,7 +270,9 @@ const {
 } = useTableCheck(data)
 watch(currentReMarkPaper, () => {
   if (currentReMarkPaper.value) {
-    modelScore.value = JSON.parse(JSON.stringify(currentReMarkPaper.value.markScores || []))
+    nextTick(() => {
+      modelScore.value = JSON.parse(JSON.stringify(currentReMarkPaper.value.markScores || []))
+    })
     if (currentReMarkPaper.value) {
       useFetch('viewActiveCheck').fetch({ taskId: currentReMarkPaper.value?.taskId })
     }

+ 4 - 2
src/modules/monitor/system-check/index.vue

@@ -120,7 +120,7 @@
 
 <script setup lang="tsx" name="SystemCheck">
 /** 系统抽查卷 */
-import { reactive, ref, computed, watch } from 'vue'
+import { reactive, ref, computed, watch, nextTick } from 'vue'
 import { ElButton, ElPagination, ElMessage } from 'element-plus'
 import { add } from '@/utils/common'
 import { useSetImgBg } from '@/hooks/useSetImgBg'
@@ -367,7 +367,9 @@ watch(currentSystemCheckPaper, () => {
         currentSystemCheckPaper.value.checkCount = (currentSystemCheckPaper.value.checkCount || 0) + 1
       })
     // modelScore.value = [currentSystemCheckPaper.value?.headerScore ?? (currentSystemCheckPaper.value?.markScore || 0)]
-    modelScore.value = currentSystemCheckPaper.value?.markScores || []
+    nextTick(() => {
+      modelScore.value = currentSystemCheckPaper.value?.markScores || []
+    })
   }
 })