From 21a340c24815a55a07db2dc3d2e5a19e7de440cd Mon Sep 17 00:00:00 2001 From: hanbaoshan <hanbaoshan@aiotlink.com> Date: 星期六, 29 八月 2020 19:27:57 +0800 Subject: [PATCH] 添加摄像机区域管理应用 --- src/pages/cameraAccess/index/App.vue | 25 +++++++++++++++---------- 1 files changed, 15 insertions(+), 10 deletions(-) diff --git a/src/pages/cameraAccess/index/App.vue b/src/pages/cameraAccess/index/App.vue index e219928..bf4b566 100644 --- a/src/pages/cameraAccess/index/App.vue +++ b/src/pages/cameraAccess/index/App.vue @@ -4,7 +4,7 @@ <div class="resize-bar"></div> <div class="resize-line"></div> <div class="resize-save"> - <left-nav :appName="app" :edit="editTree"></left-nav> + <left-nav :appName="app" :edit="editTree" :height="screenHeight"></left-nav> </div> </div> <div class="column-right" > @@ -37,14 +37,15 @@ } }, mounted() { + debugger this.screenHeight = document.documentElement.clientHeight; window.onresize = () => { return (() => { this.screenHeight = document.documentElement.clientHeight; })(); }; - debugger - this.leftWith = this.$refs['left'].width; + + this.leftWith = this.$refs['left'].offsetWidth; }, methods: { getUrlKey() { @@ -57,23 +58,28 @@ <style lang="scss" scoped> .column { - //overflow: hidden; + overflow-y: hidden; display: flex; width: 100%; + height: 100%; } .column-left { - height: inherit; + height: 100%; + padding-bottom: 20px; + box-sizing: border-box; + // height: inherit; background-color: #fff; position: relative; } .column-right { - min-width: 1442px; - flex:1; position: relative; + flex:1; background-color: #fff; box-sizing: border-box; - overflow: auto; - //height: 100%; + overflow-y: hidden; + + height: 100%; + min-width: 1433px; } .resize-save { position: absolute; @@ -84,7 +90,6 @@ padding: 14px; overflow-x: hidden; overflow-y: hidden; - cursor: ew-resize; } .resize-bar { width: 310px; -- Gitblit v1.8.0