From 73eb942f31cb1d8ed6a2afd94263be9d6b3a845f Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Fri, 14 Oct 2022 16:02:14 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=93=BE=E8=B7=AF=E4=B8=8B=E9=92=BB?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=8E=A5=E5=8F=A3=E5=8F=82=E6=95=B0=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../localComponents/LinkTrafficDrillDownLine.vue | 6 +++++- .../localComponents/LinkTrafficDrillDownList.vue | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/views/charts2/charts/linkMonitor/localComponents/LinkTrafficDrillDownLine.vue b/src/views/charts2/charts/linkMonitor/localComponents/LinkTrafficDrillDownLine.vue index efd8f74d..1069ef96 100644 --- a/src/views/charts2/charts/linkMonitor/localComponents/LinkTrafficDrillDownLine.vue +++ b/src/views/charts2/charts/linkMonitor/localComponents/LinkTrafficDrillDownLine.vue @@ -156,7 +156,11 @@ export default { endTime: getSecond(this.timeFilter.endTime) } if (this.queryCondition) { - params.q = this.queryCondition + const condition = this.queryCondition.toLowerCase().split(' or ') + if (condition.length > 1) { + params.egressParam = condition.find(c => c.indexOf('common_egress_link_id') > -1 || c.indexOf('egress_link_direction') > -1) + params.ingressParam = condition.find(c => c.indexOf('common_ingress_link_id') > -1 || c.indexOf('ingress_link_direction') > -1) + } } this.loading = true get(api.linkMonitor.totalTrafficAnalysis, params).then((res) => { diff --git a/src/views/charts2/charts/linkMonitor/localComponents/LinkTrafficDrillDownList.vue b/src/views/charts2/charts/linkMonitor/localComponents/LinkTrafficDrillDownList.vue index b1c99af5..564fe766 100644 --- a/src/views/charts2/charts/linkMonitor/localComponents/LinkTrafficDrillDownList.vue +++ b/src/views/charts2/charts/linkMonitor/localComponents/LinkTrafficDrillDownList.vue @@ -79,7 +79,11 @@ export default { endTime: getSecond(this.timeFilter.endTime) } if (this.queryCondition) { - params.q = this.queryCondition + const condition = this.queryCondition.toLowerCase().split(' or ') + if (condition.length > 1) { + params.egressParam = condition.find(c => c.indexOf('common_egress_link_id') > -1 || c.indexOf('egress_link_direction') > -1) + params.ingressParam = condition.find(c => c.indexOf('common_ingress_link_id') > -1 || c.indexOf('ingress_link_direction') > -1) + } } this.loading = true get(api.linkMonitor.networkAnalysis, params).then(res => {