From e14dd67a77ac179cf84c6b1fa4e1f9a735e8286e Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Tue, 16 Apr 2024 10:33:20 +0800 Subject: [PATCH] =?UTF-8?q?CN-1592=20fix:=20tag=20table=20=E4=B8=8B?= =?UTF-8?q?=E6=8B=89=E7=9A=84=E8=AE=A1=E6=95=B0=E5=A2=9E=E5=8A=A0=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/table/tag/TagTable.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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')