Commit b81660536c30777e7d489ba7508c85b12628965d

Authored by xiaoxie
1 parent 6e7cd084

live页面,删除一个不再使用的一些变量和函数

Showing 1 changed file with 0 additions and 33 deletions
web_src/src/components/live.vue
@@ -39,30 +39,15 @@ export default { @@ -39,30 +39,15 @@ export default {
39 }, 39 },
40 data() { 40 data() {
41 return { 41 return {
42 - showVideoDialog: true,  
43 - hasAudio: false,  
44 videoUrl: [''], 42 videoUrl: [''],
45 spilt: 1,//分屏 43 spilt: 1,//分屏
46 playerIdx: 0,//激活播放器 44 playerIdx: 0,//激活播放器
47 45
48 - deviceList: [], //设备列表  
49 - currentDevice: {}, //当前操作设备对象  
50 -  
51 - videoComponentList: [],  
52 updateLooper: 0, //数据刷新轮训标志 46 updateLooper: 0, //数据刷新轮训标志
53 - currentDeviceChannelsLenth: 0,  
54 - winHeight: window.innerHeight - 200,  
55 - currentPage: 1,  
56 count: 15, 47 count: 15,
57 total: 0, 48 total: 0,
58 - getDeviceListLoading: false,  
59 49
60 //channel 50 //channel
61 - searchSrt: "",  
62 - channelType: "",  
63 - online: "",  
64 - channelTotal: 0,  
65 - deviceChannelList: [],  
66 loading: false 51 loading: false
67 }; 52 };
68 }, 53 },
@@ -167,13 +152,6 @@ export default { @@ -167,13 +152,6 @@ export default {
167 this.sendDevicePush({deviceId, channelId}) 152 this.sendDevicePush({deviceId, channelId})
168 } 153 }
169 }, 154 },
170 - convertImageToCanvas(image) {  
171 - var canvas = document.createElement("canvas");  
172 - canvas.width = image.width;  
173 - canvas.height = image.height;  
174 - canvas.getContext("2d").drawImage(image, 0, 0);  
175 - return canvas;  
176 - },  
177 shot(e) { 155 shot(e) {
178 // console.log(e) 156 // console.log(e)
179 // send({code:'image',data:e}) 157 // send({code:'image',data:e})
@@ -211,17 +189,6 @@ export default { @@ -211,17 +189,6 @@ export default {
211 console.log(data); 189 console.log(data);
212 window.localStorage.setItem('playData', JSON.stringify(data)) 190 window.localStorage.setItem('playData', JSON.stringify(data))
213 }, 191 },
214 - loadAndPlay() {  
215 - let dataStr = window.localStorage.getItem('playData') || '[]'  
216 - let data = JSON.parse(dataStr);  
217 -  
218 - data.forEach((item, i) => {  
219 - if (item) {  
220 - this.playerIdx = i  
221 - this.sendDevicePush(item)  
222 - }  
223 - })  
224 - }  
225 } 192 }
226 }; 193 };
227 </script> 194 </script>