| | |
| | | <div class="top"> |
| | | <div class="topleft"> |
| | | <div |
| | | class="topleft1 topleftC" @click="OpenInitChart" |
| | | :class="{ topleft1: screen == false, topleftC: screen == true }" |
| | | class="topleft1" |
| | | :class="currView == 'chart' ? 'active' : ''" |
| | | @click="OpenInitChart" |
| | | > |
| | | <img src="../../assets/img/Screen/bigST.png" /> |
| | | <span>大屏视图</span> |
| | | </div> |
| | | <div |
| | | class="topleft1 topleftC" @click="OpenProjectree" |
| | | :class="{ topleft1: tree == false, topleftC: tree == true }" |
| | | class="topleft1" |
| | | @click="OpenProjectree" |
| | | :class="currView == 'tree' ? 'active' : ''" |
| | | > |
| | | <img src="../../assets/img/Screen/ptree.png" /> |
| | | <span>工程项目</span> |
| | |
| | | return { |
| | | tree: false, |
| | | screen: false, |
| | | currView: "chart", |
| | | } |
| | | }, |
| | | mounted() {}, |
| | |
| | | }, |
| | | |
| | | //打开大屏 |
| | | OpenInitChart(){ |
| | | this.$parent.$refs.mapleft.OpenLeftInit(); |
| | | OpenInitChart() { |
| | | this.currView = "chart" |
| | | this.screen = true |
| | | this.$parent.$refs.mapleft.OpenLeftInit() |
| | | }, |
| | | |
| | | //打开工程树 |
| | | OpenProjectree(){ |
| | | this.$parent.$refs.mapleft.OpenLeftProjectTree(); |
| | | } |
| | | OpenProjectree() { |
| | | this.screen = false |
| | | |
| | | this.currView = "tree" |
| | | |
| | | |
| | | this.$parent.$refs.mapleft.OpenLeftProjectTree() |
| | | }, |
| | | }, |
| | | } |
| | | </script> |
| | |
| | | justify-content: space-around; |
| | | cursor: pointer; |
| | | .topleft1 { |
| | | width: 131px; |
| | | height: 40px; |
| | | background-image: url(../../assets/img/Screen/btnc.png); |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .topleftC { |
| | | width: 131px; |
| | | height: 40px; |
| | | width: 127px; |
| | | height: 36px; |
| | | // border: 1px solid #30acff; |
| | | border-radius: 4px; |
| | | background-image: url(../../assets/img/Screen/btnbg.png); |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100%; |
| | | display: flex; |
| | | align-items: center; |
| | | } |
| | | .active { |
| | | background-image: url(../../assets/img/Screen/btnc.png); |
| | | background-repeat: no-repeat; |
| | | background-size: 100% 100%; |
| | | } |
| | | img { |
| | | height: 26px; |
| | | width: 32px; |