CN-700 界面刷新保持状态-下钻table等
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user