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