Commit 80b5dc0068f86a633fca363656d827a70b0bfd61
1 parent
d568a18e
修正页码计算错误
Showing
2 changed files
with
3 additions
and
4 deletions
web_src/src/components/channelList.vue
| @@ -153,11 +153,10 @@ export default { | @@ -153,11 +153,10 @@ export default { | ||
| 153 | }, | 153 | }, |
| 154 | getDeviceChannelList: function () { | 154 | getDeviceChannelList: function () { |
| 155 | let that = this; | 155 | let that = this; |
| 156 | - console.log(this.currentPage - 1) | ||
| 157 | 156 | ||
| 158 | this.$axios.get(`/api/devices/${this.$route.params.deviceId}/channels`, { | 157 | this.$axios.get(`/api/devices/${this.$route.params.deviceId}/channels`, { |
| 159 | params: { | 158 | params: { |
| 160 | - page: that.currentPage - 1, | 159 | + page: that.currentPage, |
| 161 | count: that.count, | 160 | count: that.count, |
| 162 | query: that.searchSrt, | 161 | query: that.searchSrt, |
| 163 | online: that.online, | 162 | online: that.online, |
| @@ -254,7 +253,7 @@ export default { | @@ -254,7 +253,7 @@ export default { | ||
| 254 | 253 | ||
| 255 | this.$axios.get(`/api/subChannels/${this.deviceId}/${this.parentChannelId}/channels`, { | 254 | this.$axios.get(`/api/subChannels/${this.deviceId}/${this.parentChannelId}/channels`, { |
| 256 | params: { | 255 | params: { |
| 257 | - page: that.currentPage - 1, | 256 | + page: that.currentPage, |
| 258 | count: that.count, | 257 | count: that.count, |
| 259 | query: that.searchSrt, | 258 | query: that.searchSrt, |
| 260 | online: that.online, | 259 | online: that.online, |
web_src/src/components/videoList.vue
| @@ -134,7 +134,7 @@ | @@ -134,7 +134,7 @@ | ||
| 134 | this.getDeviceListLoading = true; | 134 | this.getDeviceListLoading = true; |
| 135 | this.$axios.get(`/api/devices`,{ | 135 | this.$axios.get(`/api/devices`,{ |
| 136 | params: { | 136 | params: { |
| 137 | - page: that.currentPage - 1, | 137 | + page: that.currentPage, |
| 138 | count: that.count | 138 | count: that.count |
| 139 | } | 139 | } |
| 140 | } ) | 140 | } ) |