From 920d34a20109cbec85e10b0345baea8723b36352 Mon Sep 17 00:00:00 2001 From: y505174330 <505174330@qq.com> Date: 星期六, 18 五月 2024 17:21:50 +0800 Subject: [PATCH] 1 --- src/pages/inherit/index.vue | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/src/pages/inherit/index.vue b/src/pages/inherit/index.vue index 2da7bd0..fcb2093 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,32 +110,27 @@ 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, searchType: this.searchType, path: this.conditionId, }).then((res) => { - console.log(res); for (let i = 0; i < res.object.nodeList.length; i++) { const node = res.object.nodeList[i]; if ( @@ -154,7 +146,7 @@ }); } } - console.log(this.nodeData, "nodeData"); + console.log(this.nodeData); // 鍒濆鍖� echarts this.initBarChart(); }); -- Gitblit v1.9.1