From 72f058ff7e95b3c951ef78b1a08474f0d534fc1d Mon Sep 17 00:00:00 2001 From: "@changcode" Date: Tue, 30 Aug 2022 10:58:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20npm=20=E4=B8=8B=E9=92=BB=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E5=8F=82=E6=95=B0=E7=BC=BA=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/charts2/charts/npm/NpmNetworkQuantity.vue | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/views/charts2/charts/npm/NpmNetworkQuantity.vue b/src/views/charts2/charts/npm/NpmNetworkQuantity.vue index 03d82a53..8cdfd611 100644 --- a/src/views/charts2/charts/npm/NpmNetworkQuantity.vue +++ b/src/views/charts2/charts/npm/NpmNetworkQuantity.vue @@ -66,15 +66,20 @@ export default { } if (condition && (typeof condition !== 'object') && type) { params.q = condition + params.type = type } else if (condition.length > 1 && type && type === 'ip') { params.q = `${type}='${condition[1]}' and side='${this.side}'` + params.type = type } else if (condition.length > 1 && type && type !== 'ip') { if (type === 'country' || type === 'asn' || type === 'province' || type === 'city' || type === 'isp') { params.q = `${type}='${condition[1]}'` + params.type = type } else if (type === 'idcRenter') { params.q = `idc_renter='${condition[1]}'` + params.type = type } else { params.q = `${condition[0]}'${condition[1]}'` + params.type = type } } const tcp = get(api.npm.overview.tcpSessionDelay, params) @@ -113,15 +118,20 @@ export default { } if (condition && (typeof condition !== 'object') && type) { params.q = condition + params.type = type } else if (condition.length > 1 && type && type === 'ip') { params.q = `${type}='${condition[1]}' and side='${this.side}'` + params.type = type } else if (condition.length > 1 && type && type !== 'ip') { if (type === 'country' || type === 'asn' || type === 'province' || type === 'city' || type === 'isp') { params.q = `${type}='${condition[1]}'` + params.type = type } else if (type === 'idcRenter') { params.q = `idc_renter='${condition[1]}'` + params.type = type } else { params.q = `${condition[0]}'${condition[1]}'` + params.type = type } } const tcp = get(api.npm.overview.tcpSessionDelay, params)