NEZ-2193 fix:asset 详细视图 页面展示错误

This commit is contained in:
zhangyu
2022-09-09 09:30:10 +08:00
parent 9034d53712
commit 786ef24559
2 changed files with 7 additions and 5 deletions

View File

@@ -103,7 +103,7 @@ export default {
from: {
immediate: true,
handler (n) {
this.setTargetTab()
this.setTargetTab(true)
}
},
obj: {
@@ -294,9 +294,11 @@ export default {
getTableData () {
this.$emit('getTableData')
},
setTargetTab () {
if (this.$route.query.targetTab) {
setTargetTab (flag) {
if (this.$route.query.targetTab && flag) {
this.$nextTick(()=>{
this.targetTab = this.$route.query.targetTab
})
return
}
if (this.from === fromRoute.asset) {

View File

@@ -97,7 +97,7 @@ export default {
name: this.detailViewRightObj.name,
configs: this.detailViewRightObj.configs ? this.detailViewRightObj.configs.map(item => { return { type: item.type, enable: item.enable } }) : '',
childrenNum: this.detailViewRightObj.childrenNum || '',
clientState: this.bottomBox.object.clientState || ''
clientState: this.detailViewRightObj.clientState || ''
})
this.$router.replace({ path: path, query: params }).catch(err => {})
} else if (from === 'bottomBox' && this.targetTab) {