From 822f4e819209d0a0044fd7f786ab6b0016af3788 Mon Sep 17 00:00:00 2001
From: YunaiV <zhijiantianya@gmail.com>
Date: Thu, 17 Feb 2022 19:23:50 +0800
Subject: [PATCH] =?UTF-8?q?v3.8.2=20=E4=BF=AE=E5=A4=8D=E5=88=86=E9=A1=B5?=
 =?UTF-8?q?=E7=BB=84=E4=BB=B6=E8=AF=B7=E6=B1=82=E4=B8=A4=E6=AC=A1=E9=97=AE?=
 =?UTF-8?q?=E9=A2=98(I4SQOR)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 yudao-ui-admin/src/components/Pagination/index.vue | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/yudao-ui-admin/src/components/Pagination/index.vue b/yudao-ui-admin/src/components/Pagination/index.vue
index 71ccbf1d1..b09f080c9 100644
--- a/yudao-ui-admin/src/components/Pagination/index.vue
+++ b/yudao-ui-admin/src/components/Pagination/index.vue
@@ -1,11 +1,13 @@
 <template>
   <div :class="{'hidden':hidden}" class="pagination-container">
     <el-pagination
+      v-if="pageShow"
       :background="background"
       :current-page.sync="currentPage"
       :page-size.sync="pageSize"
       :layout="layout"
       :page-sizes="pageSizes"
+      :pager-count="pagerCount"
       :total="total"
       v-bind="$attrs"
       @size-change="handleSizeChange"
@@ -60,6 +62,11 @@ export default {
       default: false
     }
   },
+  data() {
+    return {
+      pageShow: true
+    };
+  },
   computed: {
     currentPage: {
       get() {
@@ -80,6 +87,12 @@ export default {
   },
   methods: {
     handleSizeChange(val) {
+      if (this.currentPage * val > this.total) {
+        this.pageShow = false;
+        this.$nextTick(() => {
+          this.pageShow = true
+        })
+      }
       this.$emit('pagination', { page: this.currentPage, limit: val })
       if (this.autoScroll) {
         scrollTo(0, 800)