| | |
| | | this.ProjectreeDisplay = false; |
| | | this.leftMessage = "init"; |
| | | this.OpenLeftInitChart(); |
| | | this.$parent.ChangeWidth("leftView"); |
| | | |
| | | }, |
| | | //打开工程树 |
| | | OpenLeftProjectTree() { |
| | | this.ChartDisplay = false; |
| | | this.ProjectreeDisplay = true; |
| | | this.leftMessage = "projectree"; |
| | | this.$parent.ChangeWidth("leftTree"); |
| | | }, |
| | | //大屏界面图表 |
| | | OpenLeftInitChart() { |
| | |
| | | <mapsdk></mapsdk> |
| | | <top class="title" ref="title"></top> |
| | | <left class="mapleft" :style="{ width: leftWidth }" ref="mapleft"></left> |
| | | <right class="mapright" :style="{ width: rightWidth }" ref="mapright"></right> |
| | | <bottom class="mapbottom" ref="mapbottom"></bottom> |
| | | </div> |
| | | <right class="mapright" :style="{ width: rightWidth }" ref="mapright"></right> |
| | | <bottom class="mapbottom" ref="mapbottom"></bottom> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | import mapsdk from "@/components/Screen/mapsdk.vue" |
| | | import top from "../../components/Screen/top.vue" |
| | | import left from "@/components/Screen/left.vue" |
| | |
| | | rightWidth: "20%", |
| | | } |
| | | }, |
| | | mounted() {}, |
| | | created() {}, |
| | | mounted() { }, |
| | | created() { }, |
| | | methods: { |
| | | //修改左侧宽度 |
| | | ChangeWidth(parm) { |
| | |
| | | this.leftWidth = "20%" |
| | | } |
| | | } |
| | | debugger; |
| | | if (parm == "leftView" || parm == "leftTree") { this.leftWidth = "20%" } |
| | | |
| | | |
| | | |
| | | if (parm == "right") { |
| | | if (this.rightWidth == "20%") { |
| | | this.rightWidth = "36px" |
| | |
| | | position: absolute; |
| | | display: flex; |
| | | } |
| | | |
| | | .title { |
| | | position: absolute; |
| | | top: 0; |
| | |
| | | width: 100%; |
| | | z-index: 999; |
| | | } |
| | | |
| | | .mapleft { |
| | | position: absolute; |
| | | top: 90px; |
| | |
| | | height: calc(100% - 180px); |
| | | z-index: 999; |
| | | } |
| | | |
| | | .mapright { |
| | | position: absolute; |
| | | top: 90px; |
| | |
| | | height: calc(100% - 180px); |
| | | z-index: 999; |
| | | } |
| | | |
| | | .mapbottom { |
| | | position: absolute; |
| | | left: 0; |
| | |
| | | height: 90px; |
| | | width: 100%; |
| | | z-index: 999; |
| | | } |
| | | </style> |
| | | }</style> |