NEZ-2193 fix:asset 详细视图 页面展示错误
This commit is contained in:
@@ -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.targetTab = this.$route.query.targetTab
|
this.$nextTick(()=>{
|
||||||
|
this.targetTab = this.$route.query.targetTab
|
||||||
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (this.from === fromRoute.asset) {
|
if (this.from === fromRoute.asset) {
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user