fix: 修复 npm下钻tab为 Client Cities和Server Cities时,接口请求参数错误问题
This commit is contained in:
@@ -353,6 +353,10 @@ export default {
|
|||||||
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
||||||
} else if (type === 'serverIp') {
|
} else if (type === 'serverIp') {
|
||||||
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
||||||
|
} else if (type === 'clientCity') {
|
||||||
|
params.q = `client_city='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
||||||
|
} else if (type === 'serverCity') {
|
||||||
|
params.q = `server_city='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
||||||
} else {
|
} else {
|
||||||
params.q = condition
|
params.q = condition
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,6 +81,10 @@ export default {
|
|||||||
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
||||||
} else if (type === 'serverIp') {
|
} else if (type === 'serverIp') {
|
||||||
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
||||||
|
} else if (type === 'clientCity') {
|
||||||
|
params.q = `client_city='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
||||||
|
} else if (type === 'serverCity') {
|
||||||
|
params.q = `server_city='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
||||||
} else {
|
} else {
|
||||||
params.q = condition
|
params.q = condition
|
||||||
}
|
}
|
||||||
@@ -103,6 +107,7 @@ export default {
|
|||||||
if (type && condition) {
|
if (type && condition) {
|
||||||
this.toggleLoading(true)
|
this.toggleLoading(true)
|
||||||
get(api.npm.overview.networkAnalysis, params).then(res => {
|
get(api.npm.overview.networkAnalysis, params).then(res => {
|
||||||
|
console.log(res)
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
this.npmNetworkCycleData = res.data.result
|
this.npmNetworkCycleData = res.data.result
|
||||||
}
|
}
|
||||||
@@ -153,6 +158,10 @@ export default {
|
|||||||
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
||||||
} else if (type === 'serverIp') {
|
} else if (type === 'serverIp') {
|
||||||
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
||||||
|
} else if (type === 'clientCity') {
|
||||||
|
params.q = `client_city='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
||||||
|
} else if (type === 'serverCity') {
|
||||||
|
params.q = `server_city='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
||||||
} else {
|
} else {
|
||||||
params.q = condition
|
params.q = condition
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -161,6 +161,10 @@ export default {
|
|||||||
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
||||||
} else if (type === 'serverIp') {
|
} else if (type === 'serverIp') {
|
||||||
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
params.q = `ip='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
||||||
|
} else if (type === 'clientCity') {
|
||||||
|
params.q = `client_city='${condition.split(/'(.*?)'/)[1]}' and side='client'`
|
||||||
|
} else if (type === 'serverCity') {
|
||||||
|
params.q = `server_city='${condition.split(/'(.*?)'/)[1]}' and side='server'`
|
||||||
} else {
|
} else {
|
||||||
params.q = condition
|
params.q = condition
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user