CN-803 fix: 批量查询参数格式变更

This commit is contained in:
@changcode
2022-11-16 18:10:48 +08:00
parent c30f6e642a
commit 57b607fca5
4 changed files with 4 additions and 4 deletions

View File

@@ -221,7 +221,7 @@ export default {
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime),
appLabels: appCards.map(item => {
return item.name
return `'${item.name}'`
}).join(',')
}
prevRequest = get(api.netWorkOverview.applicationCycleTrafficTotal, params)
@@ -233,7 +233,7 @@ export default {
startTime: getSecond(this.timeFilter.startTime),
endTime: getSecond(this.timeFilter.endTime),
appCompanies: providerCards.map(item => {
return item.name
return `'${item.name}'`
}).join(',')
}
prevRequest = get(api.netWorkOverview.appCompanyCycleTrafficTotal, params)

View File

@@ -93,7 +93,7 @@ export default {
getData(api.npm.overview.map, params).then(res => {
const subParams = {
...params,
params: res.map(r => r.country).join(',')
params: res.map(r => `'${r.country}'`).join(',')
}
// 计算分数
const tcpRequest = get(api.npm.overview.mapTcp, subParams)

View File

@@ -118,6 +118,7 @@ export default {
getData(api.npm.location.map, params).then(res => {
if (res.length > 0) {
// 计算分数
params.country = params.country ? `'${params.country}'` : ''
const tcpRequest = get(api.npm.location.mapTcp, params)
const httpRequest = get(api.npm.location.mapHttp, params)
const sslRequest = get(api.npm.location.mapSsl, params)

View File

@@ -107,7 +107,6 @@ export default {
if (type && condition) {
this.toggleLoading(true)
get(api.npm.overview.networkAnalysis, params).then(res => {
console.log(res)
if (res.code === 200) {
this.npmNetworkCycleData = res.data.result
}