fix:添加请求入参

This commit is contained in:
刘洪洪
2022-09-21 14:02:48 +08:00
parent 39ea6f12a0
commit 923a526b3a
2 changed files with 7 additions and 5 deletions

View File

@@ -119,10 +119,7 @@ export default {
const params = {
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime),
limit: 8,
type: this.tableType,
severity: this.tableSeverity
endTime: getSecond(this.timeFilter.endTime)
}
get(api.dnsInsight.activeMaliciousDomain, params).then(res => {

View File

@@ -16,6 +16,7 @@ import { api } from '@/utils/api'
import chartMixin from '@/views/charts2/chart-mixin'
import dnsEventChartByPie from './DnsEventChartByPie'
import dnsEventChartByBar from './DnsEventChartByBar'
import { getSecond } from '@/utils/date-util'
export default {
name: 'DnsEventChart',
@@ -52,7 +53,11 @@ export default {
},
methods: {
initData () {
get(api.dnsInsight.eventChart).then(res => {
const params = {
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime)
}
get(api.dnsInsight.eventChart, params).then(res => {
const data = res.data.result
this.pieData = []