diff options
| author | @changcode <[email protected]> | 2023-01-31 17:38:14 +0800 |
|---|---|---|
| committer | @changcode <[email protected]> | 2023-01-31 17:38:14 +0800 |
| commit | 48b7493b2ed8db8803ebd8f9f495c6d8d61adbfa (patch) | |
| tree | f2210abab9ffc135dcdf5102f2bb7cfed7984c11 | |
| parent | 98ba09b5862009ccfda3dd7a18c356effc585758 (diff) | |
fix: 修复network overview部分维度二级菜单判断逻辑调整
| -rw-r--r-- | src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue b/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue index 9fcfe2d8..988ab3ab 100644 --- a/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue +++ b/src/views/charts2/charts/networkOverview/NetworkOverviewLine.vue @@ -189,22 +189,8 @@ export default { startTime: getSecond(this.timeFilter.startTime), endTime: getSecond(this.timeFilter.endTime) } - let condition = '' - if (this.queryCondition && this.tabOperationType !== '3') { + if (this.queryCondition) { params.q = this.queryCondition - } else if (this.tabOperationType == '3' && this.queryCondition) { - if (this.queryCondition.indexOf(' OR ') > -1) { - if (this.networkOverviewBeforeTab === 'isp') { - condition = this.queryCondition.split(/["|'= ](.*?)["|'= ]/) - params.q = `notEmpty(${condition[0]}) OR notEmpty(${condition[9]})` - } else { - condition = this.queryCondition.split(/["|'= ](.*?)["|'= ]/) - params.q = `notEmpty(${condition[0]}) OR notEmpty(${condition[5]})` - } - } else { - condition = this.queryCondition.split(/['=](.*?)['=]/) - params.q = `notEmpty(${condition[0]})` - } } this.toggleLoading(true) axios.get(api.netWorkOverview.totalTrafficAnalysis, { params: params }).then(response => { |
