diff --git a/src/views/abnormalAlarm/emailMonitor/instances/index.vue b/src/views/abnormalAlarm/emailMonitor/instances/index.vue index 9f5010b..ba1de5e 100644 --- a/src/views/abnormalAlarm/emailMonitor/instances/index.vue +++ b/src/views/abnormalAlarm/emailMonitor/instances/index.vue @@ -239,6 +239,9 @@ export default { mounted() { this.getEmailList() }, + activated() { + this.getEmailList() + }, watch: { emailId(newValue, oldValue) { this.currId = newValue diff --git a/src/views/abnormalAlarm/serverMonitor/instances/cpu.vue b/src/views/abnormalAlarm/serverMonitor/instances/cpu.vue index 3efae28..f1b17b5 100644 --- a/src/views/abnormalAlarm/serverMonitor/instances/cpu.vue +++ b/src/views/abnormalAlarm/serverMonitor/instances/cpu.vue @@ -237,6 +237,9 @@ export default { mounted() { this.getServerList() }, + activated() { + this.getServerList() + }, methods: { handleRefresh() { if (!this.userDefined) { diff --git a/src/views/abnormalAlarm/serverMonitor/instances/details.vue b/src/views/abnormalAlarm/serverMonitor/instances/details.vue index 92fecdb..4b1d6ef 100644 --- a/src/views/abnormalAlarm/serverMonitor/instances/details.vue +++ b/src/views/abnormalAlarm/serverMonitor/instances/details.vue @@ -492,6 +492,42 @@ export default { // }, 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: { moment, // Basic lnformation diff --git a/src/views/abnormalAlarm/serverMonitor/instances/monitor.vue b/src/views/abnormalAlarm/serverMonitor/instances/monitor.vue index c384d95..093459a 100644 --- a/src/views/abnormalAlarm/serverMonitor/instances/monitor.vue +++ b/src/views/abnormalAlarm/serverMonitor/instances/monitor.vue @@ -166,6 +166,9 @@ export default { mounted() { this.getServerList() }, + activated() { + this.getServerList() + }, methods: { handleRefresh() { if (!this.userDefined) { diff --git a/src/views/abnormalAlarm/serverMonitor/instances/serviceProcess.vue b/src/views/abnormalAlarm/serverMonitor/instances/serviceProcess.vue index db1d04f..68de0b0 100644 --- a/src/views/abnormalAlarm/serverMonitor/instances/serviceProcess.vue +++ b/src/views/abnormalAlarm/serverMonitor/instances/serviceProcess.vue @@ -286,6 +286,9 @@ export default { setTimeout(() => {}, 0) }) }, + activated() { + this.getServerList() + }, methods: { handleRefresh() { if (!this.userDefined) {