CN-1592 fix: tag table 下拉的计数增加时间条件

This commit is contained in:
chenjinsong
2024-04-16 10:33:20 +08:00
parent 042f3f45f6
commit e14dd67a77

View File

@@ -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')