From 7024cd0dd22702c5a289a84fa652d7c70cfe4920 Mon Sep 17 00:00:00 2001
From: lohir <3399054449@qq.com>
Date: 星期四, 17 十月 2024 17:52:58 +0800
Subject: [PATCH] bug

---
 src/views/exam/exam/ExamManage.vue |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/views/exam/exam/ExamManage.vue b/src/views/exam/exam/ExamManage.vue
index 97a4c6c..5853fb9 100644
--- a/src/views/exam/exam/ExamManage.vue
+++ b/src/views/exam/exam/ExamManage.vue
@@ -119,7 +119,7 @@
       class="flex"
       style="justify-content:center;margin-top:20px;"
     >
-      <pagination v-show="total>0" :total="total" :page.sync="searchForm.pageIndex" :limit.sync="searchForm.pageSize"
+      <pagination v-show="total>0" :total="total" :page.sync="searchForm.currentPage" :limit.sync="searchForm.pageSize"
                   @pagination="page"/>
     </div>
     <el-dialog width="500px" :title="title" @close="closeHandler" :visible.sync="open" :destroy-on-close="true"
@@ -173,6 +173,7 @@
 <script>
 import Pagination from '@/components/Pagination'
 import { getExams, addExam, editExam, deleteExamById, cancel, recover } from '@/api/exam'
+import { myClasses } from '@/api/classes'
 import examPaperAPI from '@/api/examPaper'
 
 export default {
@@ -220,7 +221,7 @@
       searchForm: {
         examName: '',
         subject: null,
-        pageIndex: 1,
+        currentPage: 1,
         pageSize: 10
       },
       tableData: []

--
Gitblit v1.8.0