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