fix: 修改链路部分字段名
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -733,7 +733,7 @@ export const networkOverviewTabList = [
|
||||
checked: true,
|
||||
disabled: false,
|
||||
panelId: drillDownPanelTypeMapping.networkOverview
|
||||
},{
|
||||
}, {
|
||||
label: 'network.protocols',
|
||||
prop: 'l7Protocol',
|
||||
queryCycleTotalProp: 'protocols',
|
||||
@@ -741,7 +741,7 @@ export const networkOverviewTabList = [
|
||||
checked: true,
|
||||
disabled: false,
|
||||
panelId: drillDownPanelTypeMapping.networkOverview
|
||||
},{
|
||||
}, {
|
||||
label: 'network.regions',
|
||||
prop: 'superAdminArea',
|
||||
queryCycleTotalProp: 'regions',
|
||||
@@ -945,7 +945,7 @@ export const networkAppPerformanceTabList = [
|
||||
checked: true,
|
||||
disabled: false,
|
||||
panelId: drillDownPanelTypeMapping.npmOverviewDomain
|
||||
},{
|
||||
}, {
|
||||
label: 'network.secondLevelDomains',
|
||||
prop: 'domainSld',
|
||||
queryCycleTotalProp: 'domainSld',
|
||||
@@ -1164,7 +1164,7 @@ export const linkMonitorTabList = [
|
||||
checked: true,
|
||||
disabled: false,
|
||||
panelId: drillDownPanelTypeMapping.linkMonitor
|
||||
},{
|
||||
}, {
|
||||
label: 'network.secondLevelDomains',
|
||||
prop: 'domainSld',
|
||||
queryCycleTotalProp: 'domainSld',
|
||||
@@ -1228,7 +1228,7 @@ export const linkMonitorTabList = [
|
||||
checked: false,
|
||||
disabled: false,
|
||||
panelId: drillDownPanelTypeMapping.linkMonitor
|
||||
},{
|
||||
}, {
|
||||
label: 'network.protocolPorts',
|
||||
prop: 'protocolPort',
|
||||
queryCycleTotalProp: 'protocolports',
|
||||
|
||||
@@ -205,8 +205,8 @@ export default {
|
||||
if (info) {
|
||||
const hit = data.find(d => d.linkId === info.linkId)
|
||||
if (hit) {
|
||||
hit.egressBitsRate += d.egressBitsRate
|
||||
hit.ingressBitsRate += d.ingressBitsRate
|
||||
hit.outBitsRate += d.outBitsRate
|
||||
hit.inBitsRate += d.inBitsRate
|
||||
if (info.direction === 'egress') {
|
||||
hit.egressBandwidth = info.bandwidth
|
||||
hit.egressLinkId = d.linkId
|
||||
@@ -217,8 +217,8 @@ export default {
|
||||
} else {
|
||||
const hit = {
|
||||
linkId: info.linkId,
|
||||
egressBitsRate: d.egressBitsRate,
|
||||
ingressBitsRate: d.ingressBitsRate
|
||||
outBitsRate: d.outBitsRate,
|
||||
inBitsRate: d.inBitsRate
|
||||
}
|
||||
if (info.direction === 'egress') {
|
||||
hit.egressBandwidth = info.bandwidth
|
||||
@@ -232,16 +232,16 @@ export default {
|
||||
}
|
||||
})
|
||||
this.linkNoData = data.length === 0
|
||||
data.forEach((item) => {
|
||||
item.totalBitsRate = item.egressBitsRate + item.ingressBitsRate
|
||||
data.forEach(item => {
|
||||
item.totalBitsRate = item.outBitsRate + item.inBitsRate
|
||||
})
|
||||
|
||||
const sorted = data.sort((a, b) => b.totalBitsRate - a.totalBitsRate)
|
||||
const linkColors = colorGradientCalculation(this.gradientColor[0], this.gradientColor[1], sorted.map(s => s.totalBitsRate))
|
||||
sorted.forEach((s, i) => {
|
||||
s.color = linkColors[i]
|
||||
s.egressUsage = this.computeUsage(s.egressBitsRate, s.egressBandwidth)
|
||||
s.ingressUsage = this.computeUsage(s.ingressBitsRate, s.ingressBandwidth)
|
||||
s.egressUsage = this.computeUsage(s.outBitsRate, s.egressBandwidth)
|
||||
s.ingressUsage = this.computeUsage(s.inBitsRate, s.ingressBandwidth)
|
||||
s.popoverWidth = this.computePopoverWidth(s.egressUsage, s.ingressUsage)
|
||||
})
|
||||
this.linkData = sorted
|
||||
@@ -260,9 +260,9 @@ export default {
|
||||
if (!this.nextHopNoData) {
|
||||
let directionArr = []
|
||||
nextHopData.forEach((item) => {
|
||||
if (item.egressLinkDirection !== '' && item.ingressLinkDirection !== '') {
|
||||
directionArr.push(item.egressLinkDirection)
|
||||
directionArr.push(item.ingressLinkDirection)
|
||||
if (item.outLinkDirection !== '' && item.inLinkDirection !== '') {
|
||||
directionArr.push(item.outLinkDirection)
|
||||
directionArr.push(item.inLinkDirection)
|
||||
}
|
||||
})
|
||||
directionArr = Array.from(new Set(directionArr))
|
||||
@@ -270,15 +270,15 @@ export default {
|
||||
const newNextHopData = []
|
||||
this.nextHopNoData = directionArr.length === 0
|
||||
directionArr.forEach((item1) => {
|
||||
const newObj = { egressBitsRate: 0, ingressBitsRate: 0, totalBitsRate: 0, linkDirection: item1 }
|
||||
const newObj = { outBitsRate: 0, inBitsRate: 0, totalBitsRate: 0, linkDirection: item1 }
|
||||
nextHopData.forEach((item2) => {
|
||||
if (item1 === item2.egressLinkDirection) {
|
||||
newObj.egressBitsRate += item2.egressBitsRate
|
||||
newObj.totalBitsRate += item2.egressBitsRate
|
||||
if (item1 === item2.outLinkDirection) {
|
||||
newObj.outBitsRate += item2.outBitsRate
|
||||
newObj.totalBitsRate += item2.outBitsRate
|
||||
}
|
||||
if (item1 === item2.ingressLinkDirection) {
|
||||
newObj.ingressBitsRate += item2.ingressBitsRate
|
||||
newObj.totalBitsRate += item2.ingressBitsRate
|
||||
if (item1 === item2.inLinkDirection) {
|
||||
newObj.inBitsRate += item2.inBitsRate
|
||||
newObj.totalBitsRate += item2.inBitsRate
|
||||
}
|
||||
})
|
||||
newNextHopData.push(newObj)
|
||||
@@ -298,9 +298,9 @@ export default {
|
||||
})
|
||||
|
||||
// 上行使用情况计算
|
||||
const egressUsage = this.computeUsage(s.egressBitsRate, sum)
|
||||
const egressUsage = this.computeUsage(s.outBitsRate, sum)
|
||||
// 下行使用情况计算
|
||||
const ingressUsage = this.computeUsage(s.ingressBitsRate, sum)
|
||||
const ingressUsage = this.computeUsage(s.inBitsRate, sum)
|
||||
s.egressUsage = egressUsage
|
||||
s.ingressUsage = ingressUsage
|
||||
s.popoverWidth = this.computePopoverWidth(egressUsage, ingressUsage)
|
||||
|
||||
@@ -756,9 +756,9 @@ export default {
|
||||
}
|
||||
const rootNode = new Node(nodeType.rootNode, this.entity.entityName, {
|
||||
entityType: this.entity.entityType,
|
||||
entityName: this.entity.entityName,
|
||||
/*x: coordinate.rootNode.fx,
|
||||
y: coordinate.rootNode.fy*/
|
||||
entityName: this.entity.entityName
|
||||
/* x: coordinate.rootNode.fx,
|
||||
y: coordinate.rootNode.fy */
|
||||
})
|
||||
await rootNode.queryDetailData()
|
||||
nodes.push(rootNode)
|
||||
@@ -774,9 +774,9 @@ export default {
|
||||
nodeType.listNode,
|
||||
`${rootNode.id}__${k}-list`,
|
||||
{
|
||||
entityType: k,
|
||||
/*x: coordinate[`${k}ListNode`].fx,
|
||||
y: coordinate[`${k}ListNode`].fy*/
|
||||
entityType: k
|
||||
/* x: coordinate[`${k}ListNode`].fx,
|
||||
y: coordinate[`${k}ListNode`].fy */
|
||||
},
|
||||
rootNode
|
||||
)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -278,7 +278,7 @@ export default {
|
||||
}
|
||||
})
|
||||
this.pageObj.total = response.data.data.total
|
||||
this.isNoData = !this.tableData || this.tableData.length === 0;
|
||||
this.isNoData = !this.tableData || this.tableData.length === 0
|
||||
})
|
||||
// TODO 回到顶部
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user