CN-269 图表重构-echarts类型图表重构

This commit is contained in:
hyx
2022-01-26 15:40:10 +08:00
parent 014abba5d1
commit 15a19edddf
13 changed files with 841 additions and 8 deletions

View File

@@ -13,11 +13,13 @@
:chart-data="chartData"
:chart-info="chartInfo"
:table="table"
:order-pie-table="orderPieTable"
@loadMore="loadMore"
@refresh="refresh"
@groupShow="groupShow"
@showFullscreen="showFullscreen"
@tableChange="tableChange"
@orderPieTableChange="orderPieTableChange"
></chart-header>
<!-- chart -->
<!-- 数据查询后传入chart组件chart组件内不查询只根据接传递的数据来渲染 -->
@@ -34,6 +36,7 @@
:entity="entity"
:table="table"
:is-fullscreen="isFullscreen"
:order-pie-table="orderPieTable"
@showLoading="showLoading"
></chart>
</div>
@@ -322,8 +325,13 @@ export default {
return this.$_.slice(tableData, (pageNum - 1) * pageSize, pageNum * pageSize)
},
groupShow (chartInfo) {
this.$emit('groupShow',chartInfo)
this.$emit('groupShow', chartInfo)
},
orderPieTableChange (orderPieTable) {
this.orderPieTable = orderPieTable
this.getChartData()
this.$refs.chart.initEchartsWithTable()
}
},
mounted () {
this.showLoading(true)