| | |
| | | <template> |
| | | <div class="s-video-manage"> |
| | | <el-tabs class="video-tab" ref="topTab" v-model="activeName" type="border-card" @tab-click="handleClick"> |
| | | <el-tabs |
| | | class="video-tab" |
| | | ref="topTab" |
| | | v-model="activeName" |
| | | type="border-card" |
| | | @tab-click="handleClick" |
| | | > |
| | | <el-tab-pane |
| | | :label="firstLabeName" |
| | | name="camera-info" |
| | |
| | | }, |
| | | "DataStackPool.selectedDir": { |
| | | handler(node, oldNode) { |
| | | console.log(this.activeName) |
| | | console.log(node, '勾选本地视频') |
| | | if (this.TreeDataPool.treeActiveName !== 'dataStack') { |
| | | return |
| | | } |
| | | this.$nextTick(() => { |
| | | if (this.activeName == "camera-info") { |
| | | console.log("dataStackInfo.selectDir(node)") |
| | | this.$refs.dataStackInfo.selectDir(node); |
| | | } else if (this.activeName == "separate-rule" && node.length !== 0) { |
| | | this.$refs.sepRule.initCameraData(node.id); |
| | |
| | | }, |
| | | deep: true |
| | | }, |
| | | |
| | | |
| | | }, |
| | | created() { |
| | | if (this.TreeDataPool.treeActiveName == 'camera') { |
| | |
| | | <style lang="scss"> |
| | | .s-video-manage { |
| | | width: 100%; |
| | | min-width:1599px; |
| | | min-width: 1599px; |
| | | height: 100%; |
| | | float: left; |
| | | box-sizing: border-box; |
| | |
| | | .el-tabs--border-card { |
| | | height: 100%; |
| | | width: 100%; |
| | | &.video-tab{ |
| | | &>.el-tabs__header{ |
| | | &.video-tab { |
| | | & > .el-tabs__header { |
| | | //position: fixed; |
| | | //position: absolute; |
| | | //top:0; |