var vms = Vue.component("amplify-spjk", { template: `
`, props: { }, data() { return { show:false, cqNum:0, dgNum:0, aiNum:0, offLineNum:0 } }, mounted(){ }, methods: { openAmplify(){ this.show = true this.getVideoOverview() }, closeAmplify(){ this.show = false }, closeAmplifyAll(e){ if(e.target.className == 'amplify-fixed'){ this.show = false } }, //视频概况 getVideoOverview() { axios.get("https://video.makalu.cc/mkl/api/getVideoOverview?projectId="+JSON.parse(localStorage.getItem("data")).spgk).then(res => { if(res.data != {}) { this.cqNum = res.data.data.cqNum; this.dgNum = res.data.data.dgNum; this.aiNum = res.data.data.aiNum; this.offLineNum = res.data.data.offLineNum; var data = []; var allVideoList = res.data.data.allVideoList; if(allVideoList){ for(let i = 0;i < allVideoList.length;i++){ var obj = {}; obj.x = allVideoList[i].x obj.y = allVideoList[i].y obj.angle = allVideoList[i].angle obj.title = allVideoList[i].title obj.state = allVideoList[i].state obj.token = allVideoList[i].token if(allVideoList[i].videoSource == 1){ obj.videoType = 'h5s' }else if(allVideoList[i].videoSource == 2){ obj.videoType = 'hk' }else if(allVideoList[i].videoSource == 3){ obj.videoType = 'hzhk' } data.push(obj) } } var token = this.videoListData[0].videoList[0].token console.log(token) for (let i=0 ;i