|
@@ -102,7 +102,7 @@
|
|
></send-back-mark>
|
|
></send-back-mark>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
-<script setup lang="ts" name="SystemCheck">
|
|
|
|
|
|
+<script setup lang="tsx" name="SystemCheck">
|
|
/** 系统抽查卷 */
|
|
/** 系统抽查卷 */
|
|
import { reactive, ref, computed, watch } from 'vue'
|
|
import { reactive, ref, computed, watch } from 'vue'
|
|
import { ElButton, ElPagination, ElMessage } from 'element-plus'
|
|
import { ElButton, ElPagination, ElMessage } from 'element-plus'
|
|
@@ -125,6 +125,7 @@ import SendBackMark from '@/components/shared/SendBackMark.vue'
|
|
import RightButton from '@/components/shared/RightButton.vue'
|
|
import RightButton from '@/components/shared/RightButton.vue'
|
|
import ScoringPanelWithConfirm from '@/components/shared/ScoringPanelWithConfirm.vue'
|
|
import ScoringPanelWithConfirm from '@/components/shared/ScoringPanelWithConfirm.vue'
|
|
import ImagePreview from '@/components/shared/ImagePreview.vue'
|
|
import ImagePreview from '@/components/shared/ImagePreview.vue'
|
|
|
|
+import SecNumberStatus from '@/components/common/secNumberStatus.vue'
|
|
|
|
|
|
import type { SetImgBgOption } from '@/hooks/useSetImgBg'
|
|
import type { SetImgBgOption } from '@/hooks/useSetImgBg'
|
|
import type { ExtractApiParams } from '@/api/api'
|
|
import type { ExtractApiParams } from '@/api/api'
|
|
@@ -285,11 +286,28 @@ const formItems = computed<EpFormItem[]>(() => [
|
|
/** 系统抽查卷列表 */
|
|
/** 系统抽查卷列表 */
|
|
|
|
|
|
const columns: EpTableColumn[] = [
|
|
const columns: EpTableColumn[] = [
|
|
- { label: '密号', prop: 'secretNumber', minWidth: 100, fixed: 'left' },
|
|
|
|
|
|
+ {
|
|
|
|
+ label: '密号',
|
|
|
|
+ prop: 'secretNumber',
|
|
|
|
+ minWidth: 100,
|
|
|
|
+ fixed: 'left',
|
|
|
|
+ formatter(row: any) {
|
|
|
|
+ return (
|
|
|
|
+ <SecNumberStatus
|
|
|
|
+ secretNumber={row.secretNumber}
|
|
|
|
+ checked={row.checked}
|
|
|
|
+ corrected={row.corrected}
|
|
|
|
+ ></SecNumberStatus>
|
|
|
|
+ )
|
|
|
|
+ },
|
|
|
|
+ },
|
|
{ label: '评卷员', prop: 'markerName', minWidth: 80 },
|
|
{ label: '评卷员', prop: 'markerName', minWidth: 80 },
|
|
{ label: '评卷员给分', prop: 'markerScore', minWidth: 80 },
|
|
{ label: '评卷员给分', prop: 'markerScore', minWidth: 80 },
|
|
{ label: '组长给分', prop: 'headerScore', minWidth: 70 },
|
|
{ label: '组长给分', prop: 'headerScore', minWidth: 70 },
|
|
// { label: '评卷时间', prop: 'markTime', width: 160 },
|
|
// { label: '评卷时间', prop: 'markTime', width: 160 },
|
|
|
|
+ { label: '客观分', prop: 'objectiveScore', minWidth: 70 },
|
|
|
|
+ { label: '客主比', prop: 'ratio', minWidth: 70 },
|
|
|
|
+ { label: '成绩', prop: 'markScore', minWidth: 70 },
|
|
{ label: '抽查次数', prop: 'checkCount', minWidth: 70 },
|
|
{ label: '抽查次数', prop: 'checkCount', minWidth: 70 },
|
|
{ label: '评卷时间', prop: 'markTime', minWidth: 130 },
|
|
{ label: '评卷时间', prop: 'markTime', minWidth: 130 },
|
|
]
|
|
]
|
|
@@ -334,7 +352,7 @@ const onSubmit = async () => {
|
|
if (currentSystemCheckPaper.value) {
|
|
if (currentSystemCheckPaper.value) {
|
|
const scores = JSON.parse(JSON.stringify(modelScore.value))
|
|
const scores = JSON.parse(JSON.stringify(modelScore.value))
|
|
await markSystemSpotPaper({ id: currentSystemCheckPaper.value.id, scores: modelScore.value })
|
|
await markSystemSpotPaper({ id: currentSystemCheckPaper.value.id, scores: modelScore.value })
|
|
- currentSystemCheckPaper.value.headerScore = add(...scores)
|
|
|
|
|
|
+ currentSystemCheckPaper.value.markScore = currentSystemCheckPaper.value.headerScore = add(...scores)
|
|
currentSystemCheckPaper.value.markScores = scores
|
|
currentSystemCheckPaper.value.markScores = scores
|
|
ElMessage.success('修改成功')
|
|
ElMessage.success('修改成功')
|
|
// scoringPanelVisible.value = false
|
|
// scoringPanelVisible.value = false
|