CN-803 fix: 批量查询参数格式变更
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user