CN-700 界面刷新保持状态-下钻table等

This commit is contained in:
hanyuxia
2022-09-16 17:46:20 +08:00
parent ddc47208e1
commit 7967f9a764
11 changed files with 633 additions and 478 deletions

View File

@@ -238,6 +238,15 @@ export const cycle = {
pre: 1
}
export const curTabState = {
curTab: 'curTab',
tableMetric: 'tableMetric',
tableShowMore: 'tableShowMore',
tableSortColumn: 'tableSortColumn',
tableSortType: 'tableSortType',
tableSortTab: 'tableSortTab'
}
export const scoreUrl = [
'/interface/application/performance/overview/drilldown/dimensionTcpSessionDelay',
'/interface/application/performance/overview/drilldown/dimensionSslConDelay',

View File

@@ -837,6 +837,15 @@ export function computeScore (data, index) {
return score * k
}
// 改变tab状态(url中)当前tab
export function changeTabState (param, value) {
const query = router.query
query[param] = JSON.stringify(value)
router.push({
query: query
})
}
// cleanOldParams: true|false是否清除oldParams
export function urlParamsHandler (url, oldParams, newParams, cleanOldParams) {
let newUrl = url.split('?')[0]