Commit a9c4638c9413d17048df313971320e036d566d62
1 parent
5fae9a7b
修复通道列表修改分页大小无效
Showing
1 changed file
with
11 additions
and
9 deletions
web_src/src/components/channelList.vue
| @@ -93,9 +93,15 @@ | @@ -93,9 +93,15 @@ | ||
| 93 | </template> | 93 | </template> |
| 94 | </el-table-column> | 94 | </el-table-column> |
| 95 | </el-table> | 95 | </el-table> |
| 96 | - <el-pagination style="float: right" @size-change="handleSizeChange" @current-change="currentChange" | ||
| 97 | - :current-page="currentPage" :page-size="count" :page-sizes="[15, 20, 30, 50]" | ||
| 98 | - layout="total, sizes, prev, pager, next" :total="total"> | 96 | + <el-pagination |
| 97 | + style="float: right" | ||
| 98 | + @size-change="handleSizeChange" | ||
| 99 | + @current-change="currentChange" | ||
| 100 | + :current-page="currentPage" | ||
| 101 | + :page-size="count" | ||
| 102 | + :page-sizes="[15, 25, 35, 50]" | ||
| 103 | + layout="total, sizes, prev, pager, next" | ||
| 104 | + :total="total"> | ||
| 99 | </el-pagination> | 105 | </el-pagination> |
| 100 | </div> | 106 | </div> |
| 101 | </template> | 107 | </template> |
| @@ -165,12 +171,8 @@ export default { | @@ -165,12 +171,8 @@ export default { | ||
| 165 | }) | 171 | }) |
| 166 | }, | 172 | }, |
| 167 | handleSizeChange: function (val) { | 173 | handleSizeChange: function (val) { |
| 168 | - var url = `/${this.$router.currentRoute.name}/${this.$router.params.deviceId}/${this.$router.params.parentChannelId}/${val}/1` | ||
| 169 | - this.$router.push(url).then(() => { | ||
| 170 | - this.initParam(); | ||
| 171 | - this.initData(); | ||
| 172 | - }) | ||
| 173 | - | 174 | + this.count = val; |
| 175 | + this.getDeviceChannelList(); | ||
| 174 | }, | 176 | }, |
| 175 | getDeviceChannelList: function () { | 177 | getDeviceChannelList: function () { |
| 176 | let that = this; | 178 | let that = this; |