NEZ-2673 fix:Data centers通过Asset打开Terminal未修改
This commit is contained in:
@@ -79,6 +79,11 @@ export default {
|
|||||||
assetBox,
|
assetBox,
|
||||||
alertSilenceBox
|
alertSilenceBox
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
externalTerminal () {
|
||||||
|
return this.$store.getters.getExternalTerminal
|
||||||
|
}
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
url: '/asset/asset',
|
url: '/asset/asset',
|
||||||
@@ -220,7 +225,12 @@ export default {
|
|||||||
host: row.manageIp,
|
host: row.manageIp,
|
||||||
port: row.authProtocolPort
|
port: row.authProtocolPort
|
||||||
}
|
}
|
||||||
this.$store.commit('addConsole', consoleParam)
|
if (!this.externalTerminal) {
|
||||||
|
this.$store.dispatch('dispatchExternalTerminal', consoleParam)
|
||||||
|
} else {
|
||||||
|
this.$store.dispatch('dispatchOpenExternalTerminalWindow', consoleParam)
|
||||||
|
}
|
||||||
|
// this.$store.commit('addConsole', consoleParam)
|
||||||
},
|
},
|
||||||
getTableData (params) {
|
getTableData (params) {
|
||||||
if (params && Object.keys(params).length > 0) {
|
if (params && Object.keys(params).length > 0) {
|
||||||
|
|||||||
@@ -78,6 +78,11 @@ export default {
|
|||||||
assetBox,
|
assetBox,
|
||||||
alertSilenceBox
|
alertSilenceBox
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
externalTerminal () {
|
||||||
|
return this.$store.getters.getExternalTerminal
|
||||||
|
}
|
||||||
|
},
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
url: '/asset/asset',
|
url: '/asset/asset',
|
||||||
@@ -219,7 +224,12 @@ export default {
|
|||||||
host: row.manageIp,
|
host: row.manageIp,
|
||||||
port: row.authProtocolPort
|
port: row.authProtocolPort
|
||||||
}
|
}
|
||||||
this.$store.commit('addConsole', consoleParam)
|
if (!this.externalTerminal) {
|
||||||
|
this.$store.dispatch('dispatchExternalTerminal', consoleParam)
|
||||||
|
} else {
|
||||||
|
this.$store.dispatch('dispatchOpenExternalTerminalWindow', consoleParam)
|
||||||
|
}
|
||||||
|
// this.$store.commit('addConsole', consoleParam)
|
||||||
},
|
},
|
||||||
getTableData (params) {
|
getTableData (params) {
|
||||||
if (params && Object.keys(params).length > 0) {
|
if (params && Object.keys(params).length > 0) {
|
||||||
|
|||||||
@@ -180,9 +180,9 @@ export default {
|
|||||||
},
|
},
|
||||||
logout () {
|
logout () {
|
||||||
this.$get('logout').then(() => {
|
this.$get('logout').then(() => {
|
||||||
|
sessionStorage.setItem('nz-is-logout', '1')
|
||||||
this.logoutSuccess()
|
this.logoutSuccess()
|
||||||
document.location.href = '/'
|
document.location.href = '/'
|
||||||
sessionStorage.setItem('nz-is-logout', '1')
|
|
||||||
// this.$router.push('/login')
|
// this.$router.push('/login')
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user