fix(仪表板): 修复明细表翻页后跳转获取的参数不准确问题

This commit is contained in:
wangjiahao 2022-08-18 10:20:18 +08:00
parent 2e4750a0ef
commit aae72c991a

View File

@ -239,6 +239,9 @@ export default {
if (this.chart.type === 'table-pivot') { if (this.chart.type === 'table-pivot') {
rowData = { ...meta.rowQuery, ...meta.colQuery } rowData = { ...meta.rowQuery, ...meta.colQuery }
rowData[meta.valueField] = meta.fieldValue rowData[meta.valueField] = meta.fieldValue
} else if (this.showPage) {
const rowIndex = (this.currentPage.page - 1) * this.currentPage.pageSize + meta.rowIndex
rowData = this.chart.data.tableRow[rowIndex]
} else { } else {
rowData = this.chart.data.tableRow[meta.rowIndex] rowData = this.chart.data.tableRow[meta.rowIndex]
} }