CN-421 fix: 解析域名更改列名
This commit is contained in:
@@ -138,6 +138,7 @@ export const chartTableColumnMapping = {
|
||||
serverIp: 'overall.serverIp',
|
||||
domain: 'overall.domain',
|
||||
appName: 'overall.appName',
|
||||
dnsQname: 'QName',
|
||||
queryRate: 'dns.queryRate',
|
||||
queryCount: 'dns.queryCount',
|
||||
dnsLatency: 'dns.averageResolveLatency',
|
||||
|
||||
@@ -45,11 +45,11 @@ export default {
|
||||
// const domains = "office.com,dbank.com"
|
||||
this.$emit('showLoading', true)
|
||||
|
||||
let typeUrl = chartParams.byCategoryUrl.slice(0,chartParams.byCategoryUrl.indexOf('?'))
|
||||
let reputationUrlUrl = chartParams.byReputationUrl.slice(0,chartParams.byReputationUrl.indexOf('?'))
|
||||
const typeUrl = chartParams.byCategoryUrl.slice(0, chartParams.byCategoryUrl.indexOf('?'))
|
||||
const reputationUrlUrl = chartParams.byReputationUrl.slice(0, chartParams.byReputationUrl.indexOf('?'))
|
||||
|
||||
const byType = new Promise(resolve => {
|
||||
post(typeUrl, { domains: domains }).then(response => {
|
||||
get(typeUrl, { domains: domains }).then(response => {
|
||||
// post(replaceUrlPlaceholder(chartParams.byCategoryUrl, { domains: domains })).then(response => {
|
||||
if (response.code === 200) {
|
||||
if (this.$_.isEmpty(response.data.result)) {
|
||||
@@ -73,7 +73,7 @@ export default {
|
||||
})
|
||||
})
|
||||
const byReputation = new Promise(resolve => {
|
||||
post(reputationUrlUrl, { domains: domains }).then(response => {
|
||||
get(reputationUrlUrl, { domains: domains }).then(response => {
|
||||
if (response.code === 200) {
|
||||
if (this.$_.isEmpty(response.data.result)) {
|
||||
// this.noData1 = true
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
v-for="(c, i) in table.tableColumns.common"
|
||||
show-overflow-tooltip
|
||||
:key="i"
|
||||
:label="$t(chartTableColumnMapping[c])"
|
||||
:label="$t(chartTableColumnMapping[c] || c)"
|
||||
:prop="c"
|
||||
>
|
||||
</el-table-column>
|
||||
@@ -20,10 +20,10 @@
|
||||
v-for="(c, i) in table.tableColumns.order"
|
||||
show-overflow-tooltip
|
||||
:key="i"
|
||||
:label="$t(chartTableColumnMapping[c])"
|
||||
:label="$t(chartTableColumnMapping[c] || c)"
|
||||
:prop="c"
|
||||
>
|
||||
<template #header>{{$t(chartTableColumnMapping[c])}}</template>
|
||||
<template #header>{{$t(chartTableColumnMapping[c] || c)}}</template>
|
||||
<template #default="{ row }">
|
||||
<span v-if="c === 'bytes'">
|
||||
{{unitConvert(row[c], unitTypes.byte).join(' ')}}
|
||||
|
||||
Reference in New Issue
Block a user