| | |
| | | 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; |