diff --git a/src/assets/css/components/views/charts2/networkOverviewTabs.scss b/src/assets/css/components/views/charts2/networkOverviewTabs.scss index ef15415e..2a087ae3 100644 --- a/src/assets/css/components/views/charts2/networkOverviewTabs.scss +++ b/src/assets/css/components/views/charts2/networkOverviewTabs.scss @@ -115,6 +115,15 @@ .el-table thead { color: $grey; } + .data-score-red { + color: #E26154; + } + .data-score-yellow { + color: #E5A219; + } + .data-score-green { + color: #749F4D; + } } .el-tabs__header { margin-bottom: 10px; diff --git a/src/utils/constants.js b/src/utils/constants.js index ecea5483..a2436300 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -291,7 +291,7 @@ export const customTableTitlesForAppPerformance = [ { label: 'network.score', prop: 'score', checked: true, tabColumn: false, columnType: tableColumnType.normal }, { label: 'networkAppPerformance.throughput', - prop: 'totalBitsRate', + prop: 'totalBytes', checked: true, tabColumn: false, columnType: tableColumnType.chainRatio, @@ -379,7 +379,7 @@ export const customTableTitlesForLinkMonitor = [ { label: 'network.score', prop: 'score', checked: true, tabColumn: false, columnType: tableColumnType.normal }, { label: 'networkAppPerformance.throughput', - prop: 'totalBitsRate', + prop: 'totalBytes', checked: true, tabColumn: false, columnType: tableColumnType.chainRatio, @@ -475,7 +475,7 @@ export const customTableTitlesForDns = [ }, { label: 'dns.queriesFromIE', prop: 'totalInExNum', checked: true, tabColumn: true, columnType: tableColumnType.percent }, { label: 'dns.dnsResponseTime', prop: 'dnsResponseLatencyAvg', checked: true, tabColumn: true, columnType: tableColumnType.normal }, - { label: 'overall.throughput', prop: 'totalBitsRate', checked: true, tabColumn: true, columnType: tableColumnType.normal } + { label: 'overall.throughput', prop: 'totalBytes', checked: true, tabColumn: true, columnType: tableColumnType.normal } ] // NetworkOverview类型表格的列:prop 为接口响应数据中的属性名 export const customTableTitlesForNetworkOverview = [ @@ -1041,7 +1041,7 @@ export const dnsServiceInsightsTabList = [ // 用于组织数据时的名称,对应的属性名称 export const bytesColumnNameGroupForNpm = { - totalBitsRate: 'totalBitsRate', + totalBytes: 'totalBytes', tcpConEstLatency: 'establishLatencyMs', packetLoss: 'tcpLostlenPercent', packetRetrans: 'pktRetransPercent', @@ -1050,7 +1050,7 @@ export const bytesColumnNameGroupForNpm = { } export const bytesCycleColumnNameGroupForNpm = { - totalBitsRate: 'totalBitsRate' + totalBytes: 'totalBytes' } // 用于组织数据时的名称,对应的属性名称 @@ -1058,7 +1058,7 @@ export const bytesColumnNameGroupForDns = { queryRate: 'queryRate', totalInExNum: 'totalInternalQueryNum,totalExternalQueryNum', dnsResponseLatencyAvg: 'dnsResponseLatencyAvg', - totalBitsRate: 'totalBitsRate' + totalBytes: 'totalBytes' } export const bytesCycleColumnNameGroupForDns = { diff --git a/src/views/charts2/charts/networkOverview/NetworkOverviewTabs.vue b/src/views/charts2/charts/networkOverview/NetworkOverviewTabs.vue index 8aa517a1..f61653ab 100644 --- a/src/views/charts2/charts/networkOverview/NetworkOverviewTabs.vue +++ b/src/views/charts2/charts/networkOverview/NetworkOverviewTabs.vue @@ -86,7 +86,15 @@