| | |
| | | </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" |
| | |
| | | idIndex: 0, |
| | | activeId: 28, |
| | | conditionId: "", |
| | | searchType: "KEYWORD", |
| | | searchType: "DYNASTY", |
| | | dynasty: [], |
| | | nodeData: [], |
| | | showTool: false, |
| | |
| | | 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, |
| | |
| | | }); |
| | | } |
| | | } |
| | | console.log(this.nodeData, "nodeData"); |
| | | console.log(this.nodeData); |
| | | // 初始化 echarts |
| | | this.initBarChart(); |
| | | }); |