| | |
| | | } |
| | | |
| | | setVideoArr(index: number, value: object, vue: any): void { |
| | | debugger |
| | | vue.$set(this.videoArr, index, value); |
| | | this.activeForceChoose = false; |
| | | } |
| | |
| | | loadingGBTree: false |
| | | }; |
| | | }, |
| | | watch: { |
| | | $route(to, from) { |
| | | switch (to.name) { |
| | | case "Searching": |
| | | this.cameraAuth = "videoSearch:camera" |
| | | this.dataStack = "videoSearch:dataStack" |
| | | break |
| | | case "VideoManage": |
| | | this.cameraAuth = "VIDEOCAMERA:camera" |
| | | this.dataStack = "VIDEOCAMERA:dataStack" |
| | | break |
| | | default: |
| | | this.cameraAuth = "videoMonitor:camera" |
| | | this.dataStack = "videoMonitor:dataStack" |
| | | } |
| | | // console.log("路由变化:", to, from) |
| | | } |
| | | }, |
| | | // watch: { |
| | | // $route(to, from) { |
| | | // switch (to.name) { |
| | | // case "Searching": |
| | | // this.cameraAuth = "videoSearch:camera" |
| | | // this.dataStack = "videoSearch:dataStack" |
| | | // break |
| | | // case "VideoManage": |
| | | // this.cameraAuth = "VIDEOCAMERA:camera" |
| | | // this.dataStack = "VIDEOCAMERA:dataStack" |
| | | // break |
| | | // default: |
| | | // this.cameraAuth = "videoMonitor:camera" |
| | | // this.dataStack = "videoMonitor:dataStack" |
| | | // } |
| | | // // console.log("路由变化:", to, from) |
| | | // } |
| | | // }, |
| | | created() { |
| | | if (this.showCam) { |
| | | this.TreeDataPool.treeActiveName = "camera" |
| | |
| | | hoverNodeId: "", |
| | | itemClickEvents: { |
| | | dblclick: (VNode, item, e) => { |
| | | |
| | | if (item.type !== "4" || this.app !== "Video") { |
| | | console.log('dblclick',item); |
| | | console.log('dblclick',this.TreeDataPool.videoArr); |
| | | console.log(this.app) |
| | | // if (item.type !== "4" || this.app !== "Video") { |
| | | // return; |
| | | // } |
| | | if (item.type !== "4" || this.app !== "Camera") { |
| | | return; |
| | | } |
| | | |
| | | console.log('activeForceChoose',this.TreeDataPool.activeForceChoose) |
| | | this.TreeDataPool.activeVideoId = item.id; |
| | | let videoArr = this.TreeDataPool.videoArr; |
| | | let nullVideoIndex = ""; |
| | |
| | | this.TreeDataPool.activeVideoIndex !== "" && |
| | | this.TreeDataPool.activeVideoIndex <= videoArr.length - 1 |
| | | ) { |
| | | console.log('setVideoArr') |
| | | this.TreeDataPool.setVideoArr(this.TreeDataPool.activeVideoIndex, undefined, this); |
| | | this.$nextTick(() => { |
| | | this.TreeDataPool.setVideoArr( |
| | |
| | | this.showDialog = true; |
| | | }, |
| | | itemClick(node, item, e) { |
| | | console.log('jsTree index.vue',item) |
| | | this.TreeDataPool.selectedNode = item; |
| | | this.TreeDataPool.updateSelectedNodes(); |
| | | this.TreeDataPool.treeType = this.treeName; |
| | |
| | | }, |
| | | created() { |
| | | console.log("befor created") |
| | | debugger |
| | | // this.TreeDataPool.clean(); |
| | | // this.TreeDataPool.fetchTreeData(); |
| | | // this.guid = sessionStorage.guid ? Number(sessionStorage.guid) : this.guid; |
| | |
| | | }, |
| | | watch: { |
| | | "TreeDataPool.videoArr": function (newArry) { |
| | | console.log('newArry',newArry) |
| | | const cameras = this.filterNodes(newArry); |
| | | this.getActiveIndex(); |
| | | this.$refs.taskview.showTasks(cameras); |
| | |
| | | </script> |
| | | <style lang="scss"> |
| | | .s-basic-setting { |
| | | width: 100%; |
| | | height: 100%; |
| | | padding: 0 30px; |
| | | .el-form { |
| | | width: 1000px; |
| | | margin-top: 30px; |