diff --git a/src/components/table/tag/TagTable.vue b/src/components/table/tag/TagTable.vue index 69521f28..9c79a829 100644 --- a/src/components/table/tag/TagTable.vue +++ b/src/components/table/tag/TagTable.vue @@ -631,9 +631,13 @@ export default { }) }, initStatistics (item, statisticsUrl) { + const params = { + startTime: getSecond(this.timeFilter.startTime), + endTime: getSecond(this.timeFilter.endTime) + } statisticsUrl = statisticsUrl || api.tagTrafficEntityStatistics statisticsUrl = statisticsUrl.replace('{{name}}', item.name) - axios.get(statisticsUrl, { params: { startTime: 1, endTime: 9999999999 } }).then(response => { // TODO 计数统计暂时不限制时间 + axios.get(statisticsUrl, { params }).then(response => { const res = response.data if (response.status === 200) { const ipFind = res.data.result.find(item => item.type === 'IP')