fix: 后退前进功能

This commit is contained in:
chenjinsong
2022-10-09 18:47:09 +08:00
parent 313591a5ef
commit 705bc0d58d
11 changed files with 42 additions and 96 deletions

View File

@@ -85,13 +85,7 @@ export default {
deep: true,
immediate: true,
handler (n) {
console.info(n)
this.score = n
// const curOperationType = this.$store.getters.getTabOperationType
// const curOperationType = this.getUrlParam(this.curTabState.tabOperationType, '', true)
// if (curOperationType === operationType.thirdMenu) { // 点击的为第三级菜单
// this.score = n
// }
}
}
},

View File

@@ -327,22 +327,28 @@ export default {
},
drillLinkId (item) {
const queryCondition = `common_egress_link_id = ${item.egressLinkId} AND common_ingress_link_id = ${item.ingressLinkId}`
this.jumpAndCache(this.$route.path, {
...this.$route.query,
thirdPanel: drillDownPanelTypeMapping.linkMonitor,
thirdMenu: `Link ID: ${item.linkId}`,
panelName: `Link ID: ${item.linkId}`,
queryCondition
this.$router.push({
query: {
...this.$route.query,
thirdPanel: drillDownPanelTypeMapping.linkMonitor,
thirdMenu: `Link ID: ${item.linkId}`,
panelName: `Link ID: ${item.linkId}`,
queryCondition,
t: +new Date()
}
})
},
drillNextHop (item) {
const queryCondition = `egress_link_direction = '${item.linkDirection}' AND ingress_link_direction = '${item.linkDirection}'`
this.jumpAndCache(this.$route.path, {
...this.$route.query,
thirdPanel: drillDownPanelTypeMapping.linkMonitor,
thirdMenu: `Link ID: ${item.linkDirection}`,
panelName: `Link ID: ${item.linkDirection}`,
queryCondition
this.$router.push({
query: {
...this.$route.query,
thirdPanel: drillDownPanelTypeMapping.linkMonitor,
thirdMenu: `Link ID: ${item.linkDirection}`,
panelName: `Link ID: ${item.linkDirection}`,
queryCondition,
t: +new Date()
}
})
}
}

View File

@@ -398,7 +398,8 @@ export default {
query: {
...this.$route.query,
thirdPanel: curTable.panelIdOfThirdMenu ? curTable.panelIdOfThirdMenu : '',
fourthPanel: toPanel || ''
fourthPanel: toPanel || '',
t: +new Date()
}
})
}

View File

@@ -1158,7 +1158,6 @@ export default {
})
}
this.saveUserLocalConfig()
console.log(this.drillDownTableConfigs)
this.$store.getters.menuList.forEach(menu => {
if (this.$_.isEmpty(menu.children) && menu.route) {
if (this.$route.path === menu.route) {
@@ -1183,10 +1182,14 @@ export default {
}
})
this.changeUrlTabState()
this.jumpAndCache(this.$route.path, {
...this.$route.query,
thirdPanel: this.curTable.panelIdOfThirdMenu,
fourthPanel: toPanel
this.$router.push({
path: this.$route.path,
query: {
...this.$route.query,
thirdPanel: this.curTable.panelIdOfThirdMenu,
fourthPanel: toPanel,
t: +new Date()
}
})
},
handleSearchParams (columnValue) {
@@ -1550,7 +1553,6 @@ export default {
async getUserLocalConfig () {
const userLocalCongfig = await db[dbDrilldownTableConfig].get({ id: this.userId })
if (userLocalCongfig) {
console.info(userLocalCongfig.config)
return userLocalCongfig.config
} else {
return null

View File

@@ -326,7 +326,8 @@ export default {
query: {
...this.$route.query,
thirdPanel: curTable.panelIdOfThirdMenu ? curTable.panelIdOfThirdMenu : '',
fourthPanel: toPanel || ''
fourthPanel: toPanel || '',
t: +new Date()
}
})
},

View File

@@ -116,7 +116,6 @@ export default {
t.score = 6
}
})
console.info(mapData)
this.loadMarkerData(imageSeries, mapData)
})
}).finally(() => {