From fce89affcbc15073f2e41b647239b3fff777006b Mon Sep 17 00:00:00 2001
From: TreeWish <1131093754@qq.com>
Date: 星期一, 27 二月 2023 14:20:27 +0800
Subject: [PATCH] 修改切换逻辑

---
 src/components/Screen/right.vue |   39 ++++++++++++++++++++-------------------
 1 files changed, 20 insertions(+), 19 deletions(-)

diff --git a/src/components/Screen/right.vue b/src/components/Screen/right.vue
index 47b45a5..6b74147 100644
--- a/src/components/Screen/right.vue
+++ b/src/components/Screen/right.vue
@@ -17,12 +17,11 @@
       </div>
       <div class="current1">
         <div class="aside-title">鏈嶅姟璁块棶娆℃暟</div>
-
         <Service-Get></Service-Get>
       </div>
     </div>
 
-    <!-- <div
+    <div
       class="rightContainer2"
       v-if="CourtyDisplay && currentProject =='鍏ㄧ悆椤圭洰'"
     >
@@ -46,7 +45,7 @@
         <div class="aside-title">椤圭洰鏁伴噺楗肩姸鍥�</div>
         <province-dimension-pie ref="pieRef"></province-dimension-pie>
       </div>
-    </div> -->
+    </div>
     <div class="rightarrow">
       <img :src="RightImg" @click="ChangeRight" />
     </div>
@@ -93,6 +92,8 @@
   mounted() {
     this.$bus.$on("changeProject", name => {
       this.currentProject = name
+      this.CourtyDisplay = true
+      this.ChartDisplay = false
     })
   },
   methods: {
@@ -172,23 +173,23 @@
       background-repeat: no-repeat;
     }
   }
-  // .rightContainer2 {
-  //   height: 100%;
-  //   width: calc(100% - 45px);
+  .rightContainer2 {
+    height: 100%;
+    width: calc(100% - 45px);
 
-  //   display: flex;
-  //   flex-direction: column;
-  //   align-items: center;
-  //   .current1 {
-  //     margin-top: 10px;
-  //     margin-bottom: 30px;
-  //     height: 30%;
-  //     width: 100%;
-  //     background: url(../../assets/img/Screen/chartbg.png);
-  //     background-size: 100% 100%;
-  //     background-repeat: no-repeat;
-  //   }
-  // }
+    display: flex;
+    flex-direction: column;
+    align-items: center;
+    .current1 {
+      margin-top: 10px;
+      margin-bottom: 30px;
+      height: 30%;
+      width: 100%;
+      background: url(../../assets/img/Screen/chartbg.png);
+      background-size: 100% 100%;
+      background-repeat: no-repeat;
+    }
+  }
   .content {
     width: 100%;
     background: url(../../assets/img/Screen/contentBg.png);

--
Gitblit v1.9.3