From c44f0ab61e6ca562baa6832cb4494900653f4c78 Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期五, 17 五月 2024 22:17:26 +0800
Subject: [PATCH] 11

---
 src/pages/inherit/index.vue |   17 +++++------------
 1 files changed, 5 insertions(+), 12 deletions(-)

diff --git a/src/pages/inherit/index.vue b/src/pages/inherit/index.vue
index 8a7b258..762cd6a 100644
--- a/src/pages/inherit/index.vue
+++ b/src/pages/inherit/index.vue
@@ -71,10 +71,7 @@
     </div>
     <div class="contentBox">
       <!-- echarts鍥� -->
-      <div v-if="nodeData.length > 0" class="barChart" ref="barChart"></div>
-      <div v-else>
-        <el-empty description="鏆傛棤鏁版嵁"></el-empty>
-      </div>
+      <div class="barChart" ref="barChart" ></div>
       <div
         class="toolBox"
         v-if="showTool"
@@ -101,7 +98,7 @@
       idIndex: 0,
       activeId: 28,
       conditionId: "",
-      searchType: "KEYWORD",
+      searchType: "DYNASTY",
       dynasty: [],
       nodeData: [],
       showTool: false,
@@ -113,25 +110,21 @@
   onLoad(options) {
     this.idIndex = options.id;
     console.log("optionsoptionsoptions", options.id);
-    // getDynasty();
   },
   mounted() {
     this.getStatistics();
-    // this.getDynasty();
   },
   methods: {
     getStatistics() {
       inheritMedicalSataStatistics().then((res) => {
         this.dynasty = res.object;
-        const defaultDynasty = this.dynasty.find((f) => f.dynasty == "瀹�");
-        this.activeId = defaultDynasty.dynastyId;
-        this.searchType = "DYNASTY";
         this.getData();
       });
     },
     getData() {
       this.nodeData = [];
-
+      // const defaultDynasty = this.dynasty.find(f.dynasty == "瀹�");
+      // this.activeId = defaultDynasty.dynastyId
       inheritMedicalList({
         keywords: this.keyword,
         dynastyId: this.activeId,
@@ -154,7 +147,7 @@
             });
           }
         }
-        console.log(this.nodeData, "nodeData");
+        console.log(this.nodeData);
         // 鍒濆鍖� echarts
         this.initBarChart();
       });

--
Gitblit v1.9.1