bzkf3 2 gadi atpakaļ
vecāks
revīzija
9d0648ba3c
1 mainītis faili ar 24 papildinājumiem un 17 dzēšanām
  1. 24 17
      src/pages/step/[id].vue

+ 24 - 17
src/pages/step/[id].vue

@@ -445,18 +445,8 @@ function handleCompleteTaskAuto() {
 }
 
 const TaskEventMap: { [key: string]: () => void } = {
-  考试关闭: () => {
-    ElMessageBox({
-      title: '提示',
-      message: '确定要关闭考试吗?',
-      type: 'warning',
-      showCancelButton: true,
-      confirmButtonText: '确定',
-      cancelButtonText: '取消',
-    }).then(() => {
-      const { gid, pid, cid } = JSON.parse(sessionStorage.getItem('StepId')!)
-      handleJumpTask(gid, pid, cid)
-    })
+  附件出题: () => {
+    routerPush({ name: 'process-fjct-ze_id-zs_id', params: { ze_id: ykl_lc.ze_id, zs_id: ykl_lc.zs_id } })
   },
   预划考号区域: () => {
     windowPushState(`${window.GLOBAL_CONFIG.base}/dtk/index.html`)
@@ -464,9 +454,6 @@ const TaskEventMap: { [key: string]: () => void } = {
   制作答题卡: () => {
     windowPushState(`${window.GLOBAL_CONFIG.base}/dtk/index.html`)
   },
-  附件出题: () => {
-    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')
@@ -481,6 +468,28 @@ const TaskEventMap: { [key: string]: () => void } = {
     window.open(`BozeduYuejuan://${user.value.token},${ykl_lc.ze_id},${window.GLOBAL_CONFIG.yzy}`, '_blank')
     handleCompleteTaskAuto()
   },
+  平台接收试卷确认: () => {
+    handleCompleteTaskAuto()
+  },
+  批阅任务分配: () => {
+  },
+  阅卷: () => {
+  },
+  成绩发布: () => {
+  },
+  考试关闭: () => {
+    ElMessageBox({
+      title: '提示',
+      message: '确定要关闭考试吗?',
+      type: 'warning',
+      showCancelButton: true,
+      confirmButtonText: '确定',
+      cancelButtonText: '取消',
+    }).then(() => {
+      const { gid, pid, cid } = JSON.parse(sessionStorage.getItem('StepId')!)
+      handleJumpTask(gid, pid, cid)
+    })
+  },
 }
 </script>
 
@@ -516,8 +525,6 @@ const TaskEventMap: { [key: string]: () => void } = {
           </el-steps>
         </div>
         <div class="flex-auto p-4">
-          <!-- <div ref="Ref1" class="Ref1" h-10 w-10 bg-red-500 />
-      <div ref="Ref2" class="Ref2" mt-100 h-10 w-10 bg-red-500 /> -->
           <div class="h-full flex justify-between">
             <div
               v-for="(step, idx) in steps[currentStep].children " :key="idx"