From 4cdc35b7911554a955a7f5b29f55dbd91d7fd34e Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期五, 17 五月 2024 22:26:23 +0800 Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/TCM_CharacterLibrary --- 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 2da7bd0..44f026c 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