fix: 修正dns下钻后折线图的url
This commit is contained in:
@@ -220,7 +220,8 @@ export const api = {
|
|||||||
recentEvents: '/interface/dnsInsight/recentEvents',
|
recentEvents: '/interface/dnsInsight/recentEvents',
|
||||||
activeMaliciousDomain: '/interface/dnsInsight/activeMaliciousDomain',
|
activeMaliciousDomain: '/interface/dnsInsight/activeMaliciousDomain',
|
||||||
totalTrafficAnalysis: '/interface/dns/overview/totalTrafficAnalysis',
|
totalTrafficAnalysis: '/interface/dns/overview/totalTrafficAnalysis',
|
||||||
eventChart: '/interface/dnsInsight/eventChart'
|
eventChart: '/interface/dnsInsight/eventChart',
|
||||||
|
drilldownTrafficAnalysis: '/interface/dns/overview/drilldown/trafficAnalysis'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div v-if="activeTab !== 709 && activeTab !== 710" class="panel-chart__no-data">No data</div>
|
<div v-if="activeTab !== 709 && activeTab !== 710" class="panel-chart__no-data">{{ $t('npm.noData') }}</div>
|
||||||
<div v-else class="panel-chart__no-data all-clear">
|
<div v-else class="panel-chart__no-data all-clear">
|
||||||
<div class="no-recent-alerts">
|
<div class="no-recent-alerts">
|
||||||
<i class="el-icon-circle-check"></i>
|
<i class="el-icon-circle-check"></i>
|
||||||
|
|||||||
@@ -189,7 +189,11 @@ export default {
|
|||||||
params.q = this.queryCondition
|
params.q = this.queryCondition
|
||||||
}
|
}
|
||||||
this.toggleLoading(true)
|
this.toggleLoading(true)
|
||||||
get(api.dnsInsight.totalTrafficAnalysis, params).then((res) => {
|
let url = api.dnsInsight.totalTrafficAnalysis
|
||||||
|
if (this.queryCondition) {
|
||||||
|
url = api.dnsInsight.drilldownTrafficAnalysis
|
||||||
|
}
|
||||||
|
get(url, params).then((res) => {
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.isNoData = res.data.result.length === 0
|
this.isNoData = res.data.result.length === 0
|
||||||
res.data.result.forEach((t, i) => {
|
res.data.result.forEach((t, i) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user