CN-799 部分接口param参数内容本身带逗号时查询不准确的问题
This commit is contained in:
@@ -510,13 +510,10 @@ export default {
|
|||||||
}
|
}
|
||||||
this.curTabProp = this.$route.query.dimensionType ? this.$route.query.dimensionType : null
|
this.curTabProp = this.$route.query.dimensionType ? this.$route.query.dimensionType : null
|
||||||
document.getElementById('breadcrumbValue').innerText = value
|
document.getElementById('breadcrumbValue').innerText = value
|
||||||
// document.getElementById('breadcrumbButton').setAttribute('title', valName)
|
|
||||||
document.getElementById(this.valueMenuId).setAttribute('title', valName)
|
document.getElementById(this.valueMenuId).setAttribute('title', valName)
|
||||||
document.getElementById('breadcrumbButton').click()
|
document.getElementById('breadcrumbButton').click()
|
||||||
// const columnName = this.$store.getters.getBreadcrumbColumnName
|
|
||||||
const columnName = this.getUrlParam(this.curTabState.thirdMenu, '')
|
const columnName = this.getUrlParam(this.curTabState.thirdMenu, '')
|
||||||
// const tabObjGroup = networkOverviewTabList.filter(item => item.label == columnName)
|
const curTab = this.getCurTabByLabel(columnName)
|
||||||
const curTab = this.getCurTabByLabel()
|
|
||||||
if (curTab) {
|
if (curTab) {
|
||||||
const queryCondition = []
|
const queryCondition = []
|
||||||
const searchProps = curTab.dillDownProp
|
const searchProps = curTab.dillDownProp
|
||||||
|
|||||||
@@ -748,6 +748,22 @@ export const networkOverviewTabList = [
|
|||||||
checked: false,
|
checked: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
panelId: drillDownPanelTypeMapping.networkOverview
|
panelId: drillDownPanelTypeMapping.networkOverview
|
||||||
|
}, {
|
||||||
|
label: 'network.clientAsns',
|
||||||
|
prop: 'clientAsn',
|
||||||
|
queryCycleTotalProp: 'clientAsns',
|
||||||
|
dillDownProp: ['client_asn'],
|
||||||
|
checked: false,
|
||||||
|
disabled: false,
|
||||||
|
panelId: drillDownPanelTypeMapping.networkOverview
|
||||||
|
}, {
|
||||||
|
label: 'network.serverAsns',
|
||||||
|
prop: 'serverAsn',
|
||||||
|
queryCycleTotalProp: 'serverAsns',
|
||||||
|
dillDownProp: ['server_asn'],
|
||||||
|
checked: false,
|
||||||
|
disabled: false,
|
||||||
|
panelId: drillDownPanelTypeMapping.networkOverview
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -976,6 +992,22 @@ export const networkAppPerformanceTabList = [
|
|||||||
checked: false,
|
checked: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
panelId: drillDownPanelTypeMapping.npmOverviewCommon
|
panelId: drillDownPanelTypeMapping.npmOverviewCommon
|
||||||
|
}, {
|
||||||
|
label: 'network.clientAsns',
|
||||||
|
prop: 'clientAsn',
|
||||||
|
queryCycleTotalProp: 'clientAsns',
|
||||||
|
dillDownProp: ['client_asn'],
|
||||||
|
checked: false,
|
||||||
|
disabled: false,
|
||||||
|
panelId: drillDownPanelTypeMapping.npmOverviewCommon
|
||||||
|
}, {
|
||||||
|
label: 'network.serverAsns',
|
||||||
|
prop: 'serverAsn',
|
||||||
|
queryCycleTotalProp: 'serverAsns',
|
||||||
|
dillDownProp: ['server_asn'],
|
||||||
|
checked: false,
|
||||||
|
disabled: false,
|
||||||
|
panelId: drillDownPanelTypeMapping.npmOverviewCommon
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
export const linkMonitorTabList = [
|
export const linkMonitorTabList = [
|
||||||
@@ -1203,6 +1235,22 @@ export const linkMonitorTabList = [
|
|||||||
checked: false,
|
checked: false,
|
||||||
disabled: false,
|
disabled: false,
|
||||||
panelId: drillDownPanelTypeMapping.linkMonitor
|
panelId: drillDownPanelTypeMapping.linkMonitor
|
||||||
|
}, {
|
||||||
|
label: 'network.clientAsns',
|
||||||
|
prop: 'clientAsn',
|
||||||
|
queryCycleTotalProp: 'clientAsns',
|
||||||
|
dillDownProp: ['client_asn'],
|
||||||
|
checked: false,
|
||||||
|
disabled: false,
|
||||||
|
panelId: drillDownPanelTypeMapping.linkMonitor
|
||||||
|
}, {
|
||||||
|
label: 'network.serverAsns',
|
||||||
|
prop: 'serverAsn',
|
||||||
|
queryCycleTotalProp: 'serverAsns',
|
||||||
|
dillDownProp: ['server_asn'],
|
||||||
|
checked: false,
|
||||||
|
disabled: false,
|
||||||
|
panelId: drillDownPanelTypeMapping.linkMonitor
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
export const dnsServiceInsightsTabList = [
|
export const dnsServiceInsightsTabList = [
|
||||||
|
|||||||
@@ -613,8 +613,14 @@ export default {
|
|||||||
endTime: getSecond(this.timeFilter.endTime)
|
endTime: getSecond(this.timeFilter.endTime)
|
||||||
}
|
}
|
||||||
if (tabList.length > 0) {
|
if (tabList.length > 0) {
|
||||||
const conditionStr = tabList.filter(item => item != '')
|
let conditionGroup = tabList.filter(item => item != '')
|
||||||
queryParams.params = conditionStr.toString().replaceAll("'", "\\\\'")
|
let conditionHandleRlt = []
|
||||||
|
conditionGroup.forEach(condition => {
|
||||||
|
condition = condition.replaceAll("'", "\\\\'")
|
||||||
|
condition = "'"+condition+ "'"
|
||||||
|
conditionHandleRlt.push(condition)
|
||||||
|
})
|
||||||
|
queryParams.params = conditionHandleRlt.join(",")
|
||||||
queryParams.type = curTab.prop
|
queryParams.type = curTab.prop
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1079,7 +1085,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
if (tab.queryCondition) {
|
if (tab.queryCondition) {
|
||||||
tab.queryCondition.forEach(item => {
|
tab.queryCondition.forEach(item => {
|
||||||
queryCondition.push(item.replace('$param', value))
|
queryCondition.push(item.replaceAll('$param', value))
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (tab.dillDownProp) {
|
if (tab.dillDownProp) {
|
||||||
@@ -1237,7 +1243,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
if (curTab.queryCondition) {
|
if (curTab.queryCondition) {
|
||||||
curTab.queryCondition.forEach(item => {
|
curTab.queryCondition.forEach(item => {
|
||||||
queryCondition.push(item.replace('$param', columnValue))
|
queryCondition.push(item.replaceAll('$param', columnValue))
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (curTab.dillDownProp) {
|
if (curTab.dillDownProp) {
|
||||||
|
|||||||
Reference in New Issue
Block a user