fix: 后退前进功能
This commit is contained in:
@@ -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
|
||||
// }
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -398,7 +398,8 @@ export default {
|
||||
query: {
|
||||
...this.$route.query,
|
||||
thirdPanel: curTable.panelIdOfThirdMenu ? curTable.panelIdOfThirdMenu : '',
|
||||
fourthPanel: toPanel || ''
|
||||
fourthPanel: toPanel || '',
|
||||
t: +new Date()
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -326,7 +326,8 @@ export default {
|
||||
query: {
|
||||
...this.$route.query,
|
||||
thirdPanel: curTable.panelIdOfThirdMenu ? curTable.panelIdOfThirdMenu : '',
|
||||
fourthPanel: toPanel || ''
|
||||
fourthPanel: toPanel || '',
|
||||
t: +new Date()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -116,7 +116,6 @@ export default {
|
||||
t.score = 6
|
||||
}
|
||||
})
|
||||
console.info(mapData)
|
||||
this.loadMarkerData(imageSeries, mapData)
|
||||
})
|
||||
}).finally(() => {
|
||||
|
||||
Reference in New Issue
Block a user