From 77536cfa95b1e3c5e60f94dce3a53aa2e93f121a Mon Sep 17 00:00:00 2001
From: zhangxiaoxu123 <819527061@qq.com>
Date: 星期三, 14 九月 2022 17:35:54 +0800
Subject: [PATCH] echarts添加显示隐藏按钮

---
 src/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue |   26 ++++++++++++++++++++++----
 1 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/src/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue b/src/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue
index 3eb3935..64ee0f4 100644
--- a/src/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue
+++ b/src/pages/show/otherBusiness/otherBusinessChild/OtherB_PeopleJunShouRu.vue
@@ -102,7 +102,11 @@
       </el-table>
     </div>
     <!--鍥捐〃-->
-    <div class="OtherB-PeopleJunShouRu__echart">
+    <div class="OtherB-PeopleJunShouRu__echart"  v-show="echartsShow">
+    </div>
+    <div class="yincang-box">
+      <el-button @click="showEchartsBtn" v-show="echartsShow" type="primary">闅愯棌</el-button>
+      <el-button @click="showEchartsBtn" v-show="!echartsShow" type="primary">鏄剧ず</el-button>
     </div>
   </div>
 </template>
@@ -115,6 +119,7 @@
   name: "OtherB_PerpleJunShouRu",
   data() {
     return {
+      echartsShow: true,
       tableData: [
         // {
         //   year: 2020,
@@ -156,6 +161,14 @@
     this.getIncomeLine()
   },
   methods: {
+      showEchartsBtn() {
+          this.echartsShow = !this.echartsShow
+          if(this.echartsShow) {
+              this.tableHeight = window.innerHeight - nowSize(960)
+          }else {
+              this.tableHeight = window.innerHeight - nowSize(320)
+          }
+      },
     // 31. 鏌ヨ灞呮皯浜哄潎鍙敮閰嶆敹鍏ヨ〃鏍兼暟鎹帴鍙�
     getIncomeTable() {
       getIncomeTable().then(res => {
@@ -382,9 +395,14 @@
 
 .OtherB_PerpleJunShouRu__wrap {
   width: 100%;
-  //height: calc(100% - 0.078125rem /* 20/256 */
-  //);
-
+  height: calc(100% - 0.078125rem /* 20/256 */
+  );
+  position: relative;
+  .yincang-box{
+    position: absolute;
+    right: 0.078125rem  /* 20/256 */;
+    bottom: 0;
+  }
   .OtherB-PeopleJunShouRu__table {
     width: 100%;
     margin-top: 0.078125rem /* 20/256 */

--
Gitblit v1.9.1