Server Monitor、Database Monitor、Email Monitor 三个模块从 Overview 列表页双击进去 Instances 后,下拉框数据不对应
This commit is contained in:
parent
864ad75ce3
commit
73f7a943de
|
@ -239,6 +239,9 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getEmailList()
|
this.getEmailList()
|
||||||
},
|
},
|
||||||
|
activated() {
|
||||||
|
this.getEmailList()
|
||||||
|
},
|
||||||
watch: {
|
watch: {
|
||||||
emailId(newValue, oldValue) {
|
emailId(newValue, oldValue) {
|
||||||
this.currId = newValue
|
this.currId = newValue
|
||||||
|
|
|
@ -237,6 +237,9 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getServerList()
|
this.getServerList()
|
||||||
},
|
},
|
||||||
|
activated() {
|
||||||
|
this.getServerList()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleRefresh() {
|
handleRefresh() {
|
||||||
if (!this.userDefined) {
|
if (!this.userDefined) {
|
||||||
|
|
|
@ -492,6 +492,42 @@ export default {
|
||||||
// }, 0)
|
// }, 0)
|
||||||
// })
|
// })
|
||||||
},
|
},
|
||||||
|
activated() {
|
||||||
|
this.getSysServer((res) => {
|
||||||
|
this.loading = false
|
||||||
|
if (res.success) {
|
||||||
|
this.ipagination.total = res.result.total
|
||||||
|
this.dataSource = res.result.records
|
||||||
|
if (this.$route.query.serverId) {
|
||||||
|
this.serverId = this.$route.query.serverId
|
||||||
|
this.currIndex = this.dataSource.findIndex((item) => item.sourceId === this.serverId)
|
||||||
|
this.currHostId = this.dataSource.find((item) => item.sourceId === this.serverId).hostId
|
||||||
|
this.currSourceId = this.dataSource.find((item) => item.sourceId === this.serverId).sourceId
|
||||||
|
this.currItemId = this.dataSource.find((item) => item.sourceId === this.serverId).cpuUsedItemId
|
||||||
|
} else {
|
||||||
|
this.currHostId = this.dataSource[0].hostId
|
||||||
|
this.currSourceId = this.dataSource[0].sourceId
|
||||||
|
this.currItemId = this.dataSource[0].cpuUsedItemId
|
||||||
|
this.currIndex = 0
|
||||||
|
}
|
||||||
|
this.getBasiclnfo(this.currHostId)
|
||||||
|
this.getCpuUtilizationData()
|
||||||
|
this.getTimeLineData()
|
||||||
|
// this.EchartsTimeline()
|
||||||
|
this.getDetailsAlarmInfo((res) => {
|
||||||
|
this.loading_alarm_info = false
|
||||||
|
if (res.success) {
|
||||||
|
this.ipagination_alarm_info.total = res.result.total
|
||||||
|
this.dataSource_alarm_info = res.result.records
|
||||||
|
} else {
|
||||||
|
this.$message.warning('This operation fails. Contact your system administrator')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.$message.warning('This operation fails. Contact your system administrator')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
moment,
|
moment,
|
||||||
// Basic lnformation
|
// Basic lnformation
|
||||||
|
|
|
@ -166,6 +166,9 @@ export default {
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getServerList()
|
this.getServerList()
|
||||||
},
|
},
|
||||||
|
activated() {
|
||||||
|
this.getServerList()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleRefresh() {
|
handleRefresh() {
|
||||||
if (!this.userDefined) {
|
if (!this.userDefined) {
|
||||||
|
|
|
@ -286,6 +286,9 @@ export default {
|
||||||
setTimeout(() => {}, 0)
|
setTimeout(() => {}, 0)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
activated() {
|
||||||
|
this.getServerList()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleRefresh() {
|
handleRefresh() {
|
||||||
if (!this.userDefined) {
|
if (!this.userDefined) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user