Merge branch 'cherry-pick-a26b0c84' into 'dev'

fix: 修复链路四元组图字段名未升级的问题

See merge request cyber-narrator/cn-ui!70
This commit is contained in:
陈劲松
2024-04-30 09:10:18 +00:00

View File

@@ -168,7 +168,7 @@ export default {
if (tab === 0) { if (tab === 0) {
result.forEach(t => { result.forEach(t => {
this.cnLinkInfo.forEach(e => { this.cnLinkInfo.forEach(e => {
if (parseInt(t.commonInLinkId) === e.linkId) { if (parseInt(t.inLinkId) === e.linkId) {
t.linkId = e.interfaceName t.linkId = e.interfaceName
t.linkDirection = e.peerCity t.linkDirection = e.peerCity
t.bandwidth = e.bandwidth t.bandwidth = e.bandwidth
@@ -182,7 +182,7 @@ export default {
} else { } else {
result.forEach(t => { result.forEach(t => {
this.cnLinkInfo.forEach(e => { this.cnLinkInfo.forEach(e => {
if (parseInt(t.commonOutLinkId) === e.linkId) { if (parseInt(t.outLinkId) === e.linkId) {
t.linkId = e.interfaceName t.linkId = e.interfaceName
t.bandwidth = e.bandwidth t.bandwidth = e.bandwidth
t.linkDirection = e.peerCity t.linkDirection = e.peerCity