CN-700 界面刷新保持状态-下钻table等:queryCondition,type,panelName,thirdMenu,fourthMenu

This commit is contained in:
hanyuxia
2022-09-20 11:44:39 +08:00
parent 250b3d21aa
commit 2510299540
7 changed files with 108 additions and 52 deletions

View File

@@ -45,8 +45,8 @@ const panel = {
//networkOverviewBeforeTab: null, // 点击表格的值时使用记录点击当前tab表格的值之前点击的表格值所属的tab
// queryCondition: '', // 数据查询的条件
networkOverviewTabList: [], // 存储tab列表的一些状态如是否选中
tabOperationType: 0, // 操作类型:2-二级菜单3-三级菜单4-四级菜单5-切换tab6-切换metric7-操作Customize
tabOperationBeforeType: 0, // 记录上次的操作类型
//tabOperationType: 0, // 操作类型:2-二级菜单3-三级菜单4-四级菜单5-切换tab6-切换metric7-操作Customize
//tabOperationBeforeType: 0, // 记录上次的操作类型
npmThirdLevelMenuScore: null, // npm overview 第三级菜单的panel分数
npmLocationCountry: '', // npm location的查询条件--国家
npmLocationSide: 'server' // npm location的查询条件--方向
@@ -121,15 +121,15 @@ const panel = {
setNetworkOverviewTabList (state, networkOverviewTabList) {
state.networkOverviewTabList = networkOverviewTabList
},
setTabOperationType (state, tabOperationType) {
state.tabOperationType = tabOperationType
},
//setTabOperationType (state, tabOperationType) {
//state.tabOperationType = tabOperationType
//},
//setNetworkOverviewBeforeTab (state, networkOverviewBeforeTab) {
//state.networkOverviewBeforeTab = networkOverviewBeforeTab
//},
setTabOperationBeforeType (state, tabOperationBeforeType) {
state.tabOperationBeforeType = tabOperationBeforeType
},
//setTabOperationBeforeType (state, tabOperationBeforeType) {
//state.tabOperationBeforeType = tabOperationBeforeType
//},
setNpmLocationCountry (state, country) {
state.npmLocationCountry = country
},
@@ -204,15 +204,15 @@ const panel = {
getNetworkOverviewTabList (state) {
return state.networkOverviewTabList
},
getTabOperationType (state) {
return state.tabOperationType
},
//getTabOperationType (state) {
//return state.tabOperationType
//},
//getNetworkOverviewBeforeTab (state) {
//return state.networkOverviewBeforeTab
//},
getTabOperationBeforeType (state) {
return state.tabOperationBeforeType
},
//getTabOperationBeforeType (state) {
//return state.tabOperationBeforeType
//},
getNpmLocationCountry (state) {
return state.npmLocationCountry
},