From 417e07eebf6313b19ab6d26ebd8e39c7d08516ea Mon Sep 17 00:00:00 2001
From: TreeWish <1131093754@qq.com>
Date: 星期五, 24 二月 2023 19:39:28 +0800
Subject: [PATCH] 解决收缩菜单不一致情况

---
 src/components/Screen/right.vue |   38 +++++++++-----------------------------
 1 files changed, 9 insertions(+), 29 deletions(-)

diff --git a/src/components/Screen/right.vue b/src/components/Screen/right.vue
index 5e9e2f5..bb7186f 100644
--- a/src/components/Screen/right.vue
+++ b/src/components/Screen/right.vue
@@ -5,7 +5,7 @@
         <div class="aside-title">宸ョ▼绉嶇被</div>
         <project-category></project-category>
       </div>
-      <div class="" style="height: 60%">
+      <div class="" style="width: 100%;height: 60%">
         <div class="aside-title">鏂囦欢鏍煎紡</div>
         <div class="content" style="height: calc(100% - 30px)">
           <div class="header">
@@ -79,33 +79,13 @@
       provinceData: [],
     }
   },
-  created() {
-    // this.getCountryData()
-    // this.getProvinceData()
-  },
-  mounted() {
-    // const countryData = this.countryData
-    // const provinceData = this.provinceData
 
-    // this.$refs.barRef.initChart(countryData)
-    // this.$refs.pieRef.initChart(countryData)
+  mounted() {
     this.$bus.$on("changeProject", name => {
       this.currentProject = name
     })
   },
   methods: {
-    async getCountryData() {
-      const res = await countCountryDimension()
-      if (res.code == 200) {
-        this.countryData = res.result
-      }
-    },
-    async getProvinceData() {
-      const res = await countProvinceDimension()
-      if (res.code == 200) {
-        this.provinceData = res.result
-      }
-    },
     ChangeRight() {
       if (this.leftMessage == "init") {
         if (this.ChartDisplay) {
@@ -117,15 +97,15 @@
       }
 
       if (this.leftMessage == "projectree") {
-        if (this.ProjectreeDisplay) {
+        if (this.CourtyDisplay) {
           this.RightImg = require("../../assets/img/Screen/leftArrow.png")
         } else {
           this.RightImg = require("../../assets/img/Screen/rightArrow.png")
         }
-        this.ProjectreeDisplay = !this.ProjectreeDisplay
+        this.CourtyDisplay = !this.CourtyDisplay
       }
 
-      this.ChartDisplay = !this.ChartDisplay
+      // this.ChartDisplay = !this.ChartDisplay
       this.$parent.ChangeWidth("right")
     },
     //鎵撳紑澶у睆宸︿晶鐣岄潰
@@ -134,7 +114,7 @@
       this.CourtyDisplay = false
       this.leftMessage = "init"
       // this.OpenLeftInitChart();
-      this.$parent.ChangeWidth("leftTree")
+      // this.$parent.ChangeWidth("leftTree")
     },
 
     //鎵撳紑宸ョ▼鏍�
@@ -169,7 +149,7 @@
   }
   .rightContainer {
     height: 100%;
-    width: calc(100% - 7px);
+    width: calc(100% - 45px);
 
     display: flex;
     flex-direction: column;
@@ -185,7 +165,7 @@
   }
   .rightContainer2 {
     height: 100%;
-    width: calc(100% - 7px);
+    width: calc(100% - 45px);
 
     display: flex;
     flex-direction: column;
@@ -202,7 +182,7 @@
   }
 }
 .content {
-  width: 377px;
+  width: 100%;
   background: url(../../assets/img/Screen/contentBg.png);
   background-size: 100% 100%;
   background-repeat: no-repeat;

--
Gitblit v1.9.3