Commit 120eaa534e18749cc3e6aba0772e90fbdd790f5b
1 parent
87f49874
添加自动通道刷新
Showing
1 changed file
with
1 additions
and
19 deletions
web_src/src/components/channelList.vue
| @@ -104,7 +104,7 @@ export default { | @@ -104,7 +104,7 @@ export default { | ||
| 104 | 104 | ||
| 105 | mounted() { | 105 | mounted() { |
| 106 | this.initData(); | 106 | this.initData(); |
| 107 | - // this.updateLooper = setInterval(this.initData, 10000); | 107 | + this.updateLooper = setInterval(this.initData, 10000); |
| 108 | }, | 108 | }, |
| 109 | destroyed() { | 109 | destroyed() { |
| 110 | this.$destroy('videojs'); | 110 | this.$destroy('videojs'); |
| @@ -173,24 +173,6 @@ export default { | @@ -173,24 +173,6 @@ export default { | ||
| 173 | 173 | ||
| 174 | }, | 174 | }, |
| 175 | 175 | ||
| 176 | - //gb28181平台对接 | ||
| 177 | - //刷新设备信息 | ||
| 178 | - refDevice: function (itemData) { | ||
| 179 | - ///api/devices/{deviceId}/sync | ||
| 180 | - console.log("刷新对应设备:" + itemData.deviceId); | ||
| 181 | - this.$axios({ | ||
| 182 | - method: 'post', | ||
| 183 | - url: '/api/devices/' + itemData.deviceId + '/sync' | ||
| 184 | - }).then(function (res) { | ||
| 185 | - // console.log("刷新设备结果:"+JSON.stringify(res)); | ||
| 186 | - }).catch(function (e) { | ||
| 187 | - that.$message({ | ||
| 188 | - showClose: true, | ||
| 189 | - message: '请求成功', | ||
| 190 | - type: 'success' | ||
| 191 | - }); | ||
| 192 | - }); | ||
| 193 | - }, | ||
| 194 | //通知设备上传媒体流 | 176 | //通知设备上传媒体流 |
| 195 | sendDevicePush: function (itemData) { | 177 | sendDevicePush: function (itemData) { |
| 196 | console.log(itemData) | 178 | console.log(itemData) |