From a9c4638c9413d17048df313971320e036d566d62 Mon Sep 17 00:00:00 2001
From: 648540858 <648540858@qq.com>
Date: 星期三, 15 六月 2022 11:02:19 +0800
Subject: [PATCH] 修复通道列表修改分页大小无效

---
 web_src/src/components/channelList.vue |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/web_src/src/components/channelList.vue b/web_src/src/components/channelList.vue
index 7828678..f0194ee 100644
--- a/web_src/src/components/channelList.vue
+++ b/web_src/src/components/channelList.vue
@@ -93,9 +93,15 @@
       </template>
     </el-table-column>
   </el-table>
-  <el-pagination style="float: right" @size-change="handleSizeChange" @current-change="currentChange"
-                 :current-page="currentPage" :page-size="count" :page-sizes="[15, 20, 30, 50]"
-                 layout="total, sizes, prev, pager, next" :total="total">
+  <el-pagination
+    style="float: right"
+    @size-change="handleSizeChange"
+    @current-change="currentChange"
+    :current-page="currentPage"
+    :page-size="count"
+    :page-sizes="[15, 25, 35, 50]"
+    layout="total, sizes, prev, pager, next"
+    :total="total">
   </el-pagination>
   </div>
 </template>
@@ -165,12 +171,8 @@
       })
     },
     handleSizeChange: function (val) {
-      var url = `/${this.$router.currentRoute.name}/${this.$router.params.deviceId}/${this.$router.params.parentChannelId}/${val}/1`
-      this.$router.push(url).then(() => {
-        this.initParam();
-        this.initData();
-      })
-
+      this.count = val;
+      this.getDeviceChannelList();
     },
     getDeviceChannelList: function () {
       let that = this;

--
Gitblit v1.8.0