bzkf3 2 anos atrás
pai
commit
a886bae6ac
2 arquivos alterados com 3 adições e 3 exclusões
  1. 1 0
      src/components/step/link/xgstda.vue
  2. 2 3
      src/pages/step/[id].vue

+ 1 - 0
src/components/step/link/xgstda.vue

@@ -158,6 +158,7 @@ function handleSubmit() {
       yk: {
         ykl_dtkmb: JSON.stringify(newData),
       },
+      force: 1,
     },
   }).then((res) => {
     if (res.code === '1') {

+ 2 - 3
src/pages/step/[id].vue

@@ -617,7 +617,7 @@ const TaskEventMap: { [key: string]: () => void } = {
     })
   },
   '修改成绩': async () => {
-    await handleCompleteTaskAuto()
+    await handleCompleteTaskAuto({ force: 1 })
     routerPush({ name: 'process-xgcj-id', params: { id: ykl_lc.ze_id } })
   },
   '考试关闭': () => {
@@ -629,8 +629,7 @@ const TaskEventMap: { [key: string]: () => void } = {
       confirmButtonText: '确定',
       cancelButtonText: '取消',
     }).then(() => {
-      const { gid, pid, cid } = JSON.parse(sessionStorage.getItem('StepId')!)
-      handleJumpTask(gid, pid, cid)
+      handleCompleteTaskAuto({ force: 1 })
     })
   },
 }