|
@@ -2,6 +2,7 @@
|
|
|
import type { RouteLocationRaw } from 'vue-router'
|
|
|
import request from '~/utils/request'
|
|
|
// import { stepsMap } from '~/composables/steps'
|
|
|
+import { user } from '~/store/index'
|
|
|
|
|
|
const props = defineProps<{
|
|
|
id: string
|
|
@@ -22,10 +23,9 @@ sessionStorage.setItem('ykl_lc', JSON.stringify(ykl_lc))
|
|
|
|
|
|
const stepsReactiveMap = reactive<unknown[][][]>(ykl_lc.processList)
|
|
|
|
|
|
-// 先上传后划块
|
|
|
const steps = reactive(
|
|
|
ykl_lc.ykj_yjlc === '1'
|
|
|
- ? [
|
|
|
+ ? [// 先上传后划块
|
|
|
{
|
|
|
title: '组卷考试',
|
|
|
children: [
|
|
@@ -58,7 +58,7 @@ const steps = reactive(
|
|
|
{
|
|
|
title: '答题卡扫描',
|
|
|
children: [
|
|
|
- { title: '连接扫描仪', optional: false, description: '启动客户端扫描学生答题卡并进行识别与上传' },
|
|
|
+ { title: '答题卡扫描', optional: false, description: '启动客户端扫描学生答题卡并进行识别与上传' },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
@@ -81,7 +81,7 @@ const steps = reactive(
|
|
|
{
|
|
|
title: '答题卡二次扫描',
|
|
|
children: [
|
|
|
- { title: '连接扫描仪', optional: false, description: '启动客户端二次扫描批阅试卷' },
|
|
|
+ { title: '答题卡二次扫描', optional: false, description: '启动客户端二次扫描批阅试卷' },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
@@ -133,7 +133,7 @@ const steps = reactive(
|
|
|
],
|
|
|
},
|
|
|
]
|
|
|
- : [
|
|
|
+ : [// 先划块后上传
|
|
|
{
|
|
|
title: '组卷考试',
|
|
|
children: [
|
|
@@ -467,6 +467,20 @@ const TaskEventMap: { [key: string]: () => void } = {
|
|
|
附件出题: () => {
|
|
|
routerPush({ name: 'process-fjct-ze_id-zs_id', params: { ze_id: ykl_lc.ze_id, zs_id: ykl_lc.zs_id } })
|
|
|
},
|
|
|
+ // 先上传后划块
|
|
|
+ 答题卡扫描: () => {
|
|
|
+ window.open(`BozeduYuejuan://${user.value.token},${ykl_lc.ze_id},${window.GLOBAL_CONFIG.yzy},upload_papers`, '_blank')
|
|
|
+ handleCompleteTaskAuto()
|
|
|
+ },
|
|
|
+ 答题卡二次扫描: () => {
|
|
|
+ window.open(`BozeduYuejuan://${user.value.token},${ykl_lc.ze_id},${window.GLOBAL_CONFIG.yzy},review_papers`, '_blank')
|
|
|
+ handleCompleteTaskAuto()
|
|
|
+ },
|
|
|
+ // 先划块后上传 老流程
|
|
|
+ 启动客户端: () => {
|
|
|
+ window.open(`BozeduYuejuan://${user.value.token},${ykl_lc.ze_id},${window.GLOBAL_CONFIG.yzy}`, '_blank')
|
|
|
+ handleCompleteTaskAuto()
|
|
|
+ },
|
|
|
}
|
|
|
</script>
|
|
|
|