feat:group 添加折叠
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user