feat:group 添加折叠

This commit is contained in:
zhangyu
2022-01-21 15:35:09 +08:00
parent 4b74f3de5a
commit f5abbaeef9
6 changed files with 48 additions and 23 deletions

View File

@@ -15,6 +15,7 @@
:table="table"
@loadMore="loadMore"
@refresh="refresh"
@groupShow="groupShow"
@showFullscreen="showFullscreen"
@tableChange="tableChange"
></chart-header>
@@ -22,7 +23,7 @@
<!-- 数据查询后传入chart组件chart组件内不查询只根据接传递的数据来渲染 -->
<chart
ref="chart"
v-if="((!isBlock) || !(chartInfo.params && chartInfo.params.collapse)) && !isTitle"
v-if="(!isGroup) || !(chartInfo.params && chartInfo.params.collpase) && !isTitle"
:chart-data="chartData"
:result-type="resultType"
:chart-info="chartInfo"
@@ -306,7 +307,10 @@ export default {
},
getTargetPageData (pageNum, pageSize, tableData) {
return this.$_.slice(tableData, (pageNum - 1) * pageSize, pageNum * pageSize)
}
},
groupShow (chartInfo) {
this.$emit('groupShow',chartInfo)
},
},
mounted () {
this.showLoading(true)