diff --git a/src/views/charts2/Panel.vue b/src/views/charts2/Panel.vue index 49bf286c..59e65c9a 100644 --- a/src/views/charts2/Panel.vue +++ b/src/views/charts2/Panel.vue @@ -364,6 +364,8 @@ export default { let url = '' if (this.queryCondition.indexOf(' OR ') > -1) { condition = this.queryCondition.split(/["|'](.*?)["|']/) + } else if (this.queryCondition.indexOf('+OR+') > -1) { + condition = this.queryCondition.replace(/\+/g, ' ').split(/["|'](.*?)["|']/) } else { condition = this.queryCondition } diff --git a/src/views/charts2/charts/npm/NpmNetworkQuantity.vue b/src/views/charts2/charts/npm/NpmNetworkQuantity.vue index 9fdc244e..9f8b2da7 100644 --- a/src/views/charts2/charts/npm/NpmNetworkQuantity.vue +++ b/src/views/charts2/charts/npm/NpmNetworkQuantity.vue @@ -115,6 +115,8 @@ export default { let url = '' if (this.queryCondition && this.queryCondition.indexOf(' OR ') > -1) { condition = this.queryCondition.split(/["|'](.*?)["|']/) + } else if (this.queryCondition.indexOf('+OR+') > -1) { + condition = this.queryCondition.replace(/\+/g, ' ').split(/["|'](.*?)["|']/) } else { condition = this.queryCondition } diff --git a/src/views/charts2/charts/npm/NpmTrafficLine.vue b/src/views/charts2/charts/npm/NpmTrafficLine.vue index 67cd92c1..f30a4443 100644 --- a/src/views/charts2/charts/npm/NpmTrafficLine.vue +++ b/src/views/charts2/charts/npm/NpmTrafficLine.vue @@ -116,6 +116,8 @@ export default { if (this.queryCondition.indexOf(' OR ') > -1) { condition = this.queryCondition.split(/["|'](.*?)["|']/) + } else if (this.queryCondition.indexOf('+OR+') > -1) { + condition = this.queryCondition.replace(/\+/g, ' ').split(/["|'](.*?)["|']/) } else { condition = this.queryCondition }