刘洋 1 year ago
parent
commit
85327cf660
1 changed files with 8 additions and 2 deletions
  1. 8 2
      src/features/admin/confirmPaper/ConfirmPaper.vue

+ 8 - 2
src/features/admin/confirmPaper/ConfirmPaper.vue

@@ -139,10 +139,15 @@
         </div>
 
         <div class="tw-flex tw-justify-between tw-bg-white tw-p-4">
-          <a-tooltip v-if="!allViewed" placement="top">
+          <a-tooltip
+            v-if="!allViewed && route.path == '/admin/exam/check/student/start'"
+            placement="top"
+          >
             <template #title>请先浏览完该学生的所有试卷</template>
             <a-button
-              :disabled="!allViewed"
+              :disabled="
+                !allViewed && route.path == '/admin/exam/check/student/start'
+              "
               type="primary"
               shape="round"
               @click="saveStudentAnswer"
@@ -232,6 +237,7 @@ import { ArrowLeftOutlined, ArrowRightOutlined } from "@ant-design/icons-vue";
 const { addTimeout } = useTimers();
 
 const route = useRoute();
+console.log("route:", route);
 // 使用 location.search 替代
 // const checkType = route.query.checkType;
 const queryId = route.query.queryId as string;