From 956289c2b729f643a528983b7ceb5103f32aff23 Mon Sep 17 00:00:00 2001
From: lohir <3399054449@qq.com>
Date: 星期三, 16 十月 2024 09:26:29 +0800
Subject: [PATCH] bug

---
 src/views/class-management/Class.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/views/class-management/Class.vue b/src/views/class-management/Class.vue
index a259483..d1508bc 100644
--- a/src/views/class-management/Class.vue
+++ b/src/views/class-management/Class.vue
@@ -120,7 +120,7 @@
       </el-table-column>
     </el-table>
 
-      <pagination v-show="total>0" :total="total" :page.sync="searchForm.pageIndex"
+      <pagination v-show="total>0" :total="total" :page.sync="searchForm.currentPage"
                   :limit.sync="searchForm.pageSize"
                   @pagination="page"/>
     <el-dialog
@@ -146,7 +146,8 @@
       :title="title"
       :visible.sync="open"
       width="700px"
-      :before-close="handleClose">
+      :before-close="handleClose"
+      :close-on-click-modal="false">
       <el-form :model="form" :rules="rules" ref="form" label-width="100px" class="demo-ruleForm">
         <el-form-item label="鐝骇鍚嶇О" prop="className">
           <el-input v-model="form.className" size="small"></el-input>
@@ -213,7 +214,7 @@
         status: '',
         subject: null,
         pageSize: 10,
-        pageNum: 1
+        currentPage: 1
       },
       form: {
         id: null,
@@ -330,9 +331,10 @@
       this.form = row
       this.open = true
     },
-    handleClose () {
+    handleClose (done) {
       this.open = false
       this.resetForm()
+      done()
     },
     handlerAdd () {
       this.open = true

--
Gitblit v1.8.0