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

View File

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