Commit 8b4d8a76acf3a699744caeda8ca6f0268136727e

Authored by panlinlin
2 parents d94135c9 021b8207

Merge remote-tracking branch 'origin/master' into wvp-28181-2.0

src/main/java/com/genersoft/iot/vmp/storager/impl/VideoManagerStoragerImpl.java
@@ -119,7 +119,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { @@ -119,7 +119,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager {
119 @Override 119 @Override
120 public PageInfo queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, int page, int count) { 120 public PageInfo queryChannelsByDeviceId(String deviceId, String query, Boolean hasSubChannel, Boolean online, int page, int count) {
121 // 获取到所有正在播放的流 121 // 获取到所有正在播放的流
122 - PageHelper.startPage(page+1, count); 122 + PageHelper.startPage(page, count);
123 List<DeviceChannel> all = deviceChannelMapper.queryChannelsByDeviceId(deviceId, null, query, hasSubChannel, online); 123 List<DeviceChannel> all = deviceChannelMapper.queryChannelsByDeviceId(deviceId, null, query, hasSubChannel, online);
124 return new PageInfo<>(all); 124 return new PageInfo<>(all);
125 } 125 }
@@ -131,7 +131,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { @@ -131,7 +131,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager {
131 131
132 @Override 132 @Override
133 public PageInfo<DeviceChannel> querySubChannels(String deviceId, String parentChannelId, String query, Boolean hasSubChannel, String online, int page, int count) { 133 public PageInfo<DeviceChannel> querySubChannels(String deviceId, String parentChannelId, String query, Boolean hasSubChannel, String online, int page, int count) {
134 - PageHelper.startPage(page+1, count); 134 + PageHelper.startPage(page, count);
135 List<DeviceChannel> all = deviceChannelMapper.queryChannelsByDeviceId(deviceId, parentChannelId, null, null, null); 135 List<DeviceChannel> all = deviceChannelMapper.queryChannelsByDeviceId(deviceId, parentChannelId, null, null, null);
136 return new PageInfo<>(all); 136 return new PageInfo<>(all);
137 } 137 }
@@ -151,7 +151,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager { @@ -151,7 +151,7 @@ public class VideoManagerStoragerImpl implements IVideoManagerStorager {
151 */ 151 */
152 @Override 152 @Override
153 public PageInfo<Device> queryVideoDeviceList(int page, int count) { 153 public PageInfo<Device> queryVideoDeviceList(int page, int count) {
154 - PageHelper.startPage(page+1, count); 154 + PageHelper.startPage(page, count);
155 List<Device> all = deviceMapper.getDevices(); 155 List<Device> all = deviceMapper.getDevices();
156 return new PageInfo<>(all); 156 return new PageInfo<>(all);
157 } 157 }
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 } )