NEZ-2193 fix:asset 详细视图 页面展示错误
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user