Browse Source

添加自动通道刷新

pull/13/head
648540858 4 years ago
parent
commit
120eaa534e
  1. 20
      web_src/src/components/channelList.vue

20
web_src/src/components/channelList.vue

@ -104,7 +104,7 @@ export default {
mounted() {
this.initData();
// this.updateLooper = setInterval(this.initData, 10000);
this.updateLooper = setInterval(this.initData, 10000);
},
destroyed() {
this.$destroy('videojs');
@ -173,24 +173,6 @@ export default {
},
//gb28181
//
refDevice: function (itemData) {
///api/devices/{deviceId}/sync
console.log("刷新对应设备:" + itemData.deviceId);
this.$axios({
method: 'post',
url: '/api/devices/' + itemData.deviceId + '/sync'
}).then(function (res) {
// console.log(""+JSON.stringify(res));
}).catch(function (e) {
that.$message({
showClose: true,
message: '请求成功',
type: 'success'
});
});
},
//
sendDevicePush: function (itemData) {
console.log(itemData)

Loading…
Cancel
Save