|
@@ -41,13 +41,13 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <image-preview v-model="previewModalVisible" :url="MockImg"></image-preview>
|
|
|
+ <image-preview v-model="previewModalVisible" :url="currentSystemCheckPaper?.filePath"></image-preview>
|
|
|
<scoring-panel-with-confirm
|
|
|
v-model:visible="scoringPanelVisible"
|
|
|
v-model:score="modelScore"
|
|
|
modal
|
|
|
:toggle-modal="false"
|
|
|
- :main-number="mockTask.mainNumber"
|
|
|
+ :main-number="currentSystemCheckPaper?.mainNumber"
|
|
|
@submit="onSubmit"
|
|
|
></scoring-panel-with-confirm>
|
|
|
<mark-history-list :id="currentViewHistory?.taskId" v-model="visibleHistory"></mark-history-list>
|
|
@@ -56,9 +56,8 @@
|
|
|
|
|
|
<script setup lang="ts" name="SystemCheck">
|
|
|
/** 系统抽查卷 */
|
|
|
-import { reactive, ref, computed, watch, nextTick } from 'vue'
|
|
|
+import { reactive, ref, computed, watch } from 'vue'
|
|
|
import { ElButton } from 'element-plus'
|
|
|
-import { add } from '@/utils/common'
|
|
|
import { useSetImgBg } from '@/hooks/useSetImgBg'
|
|
|
import useVW from '@/hooks/useVW'
|
|
|
import useFetch from '@/hooks/useFetch'
|
|
@@ -77,7 +76,6 @@ import RightButton from '@/components/shared/RightButton.vue'
|
|
|
import ScoringPanelWithConfirm from '@/components/shared/ScoringPanelWithConfirm.vue'
|
|
|
import ImagePreview from '@/components/shared/ImagePreview.vue'
|
|
|
|
|
|
-import MockImg from '@/assets/mock/SAMPA-1.jpg'
|
|
|
import type { SetImgBgOption } from '@/hooks/useSetImgBg'
|
|
|
import type { ExtractApiParams, ExtractApiResponse, ExtractMultipleApiResponse } from 'api-type'
|
|
|
import type { MarkHeaderInstance, EpFormItem, EpTableColumn } from 'global-type'
|
|
@@ -112,7 +110,7 @@ const modelScore = ref<number[]>([])
|
|
|
|
|
|
const imgOption = computed<SetImgBgOption>(() => {
|
|
|
return {
|
|
|
- image: MockImg,
|
|
|
+ image: currentSystemCheckPaper?.value?.filePath,
|
|
|
immediate: true,
|
|
|
rotate: rotate.value,
|
|
|
scale: scale.value,
|
|
@@ -121,10 +119,6 @@ const imgOption = computed<SetImgBgOption>(() => {
|
|
|
|
|
|
const { drawing, dataUrl } = useSetImgBg(imgOption)
|
|
|
|
|
|
-const mockTask = ref<{ mainNumber: number }>({
|
|
|
- mainNumber: 1,
|
|
|
-})
|
|
|
-
|
|
|
/** 刷新 */
|
|
|
const onRefresh = () => {
|
|
|
onSearch()
|