fix: 修复detection左侧筛选有些无法选择的问题;
This commit is contained in:
@@ -53,6 +53,7 @@ import {
|
||||
isEcharts,
|
||||
isSingleValue,
|
||||
isTable,
|
||||
isBasicTable,
|
||||
isActiveIpTable,
|
||||
isTitle,
|
||||
isMap,
|
||||
@@ -149,14 +150,6 @@ export default {
|
||||
}
|
||||
] // table的所有数据
|
||||
},
|
||||
table: {
|
||||
pageSize: chartTableDefaultPageSize,
|
||||
limit: chartTableTopOptions[0], // top-n
|
||||
orderBy: 'sessions',
|
||||
tableColumns: [], // table字段
|
||||
tableData: [], // table的所有数据
|
||||
currentPageData: [] // table当前页的数据
|
||||
},
|
||||
tabHandleClickType: ''
|
||||
}
|
||||
},
|
||||
@@ -255,7 +248,7 @@ export default {
|
||||
}
|
||||
if (this.isTable) {
|
||||
this.table.tableData = response.data.result
|
||||
// this.table.tableColumns = chartParams.columns
|
||||
this.table.tableColumns = chartParams.columns
|
||||
// this.table.tableColumns = this.getTableTitle(response.data.result)
|
||||
this.table.currentPageData = this.getTargetPageData(1, this.table.pageSize, this.table.tableData)
|
||||
} else if (this.isSingleValue) {
|
||||
@@ -405,7 +398,7 @@ export default {
|
||||
const { startTime, endTime } = getNowTime(dateRangeValue)
|
||||
const chartTimeFilter = ref({ startTime, endTime, dateRangeValue })
|
||||
let table = {}
|
||||
if (isTable(props.chartInfo.type)) {
|
||||
if (isBasicTable(props.chartInfo.type)) {
|
||||
table = {
|
||||
pageSize: chartTableDefaultPageSize,
|
||||
limit: chartTableTopOptions[0], // top-n
|
||||
|
||||
Reference in New Issue
Block a user