From 73f7a943ded76e65677a6a621b586be70d364c4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BB=BB=E7=8F=AE=E5=AE=87?= Date: Mon, 5 Feb 2024 14:53:15 +0800 Subject: [PATCH] =?UTF-8?q?Server=20Monitor=E3=80=81Database=20Monitor?= =?UTF-8?q?=E3=80=81Email=20Monitor=20=E4=B8=89=E4=B8=AA=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E4=BB=8E=20Overview=20=E5=88=97=E8=A1=A8=E9=A1=B5=E5=8F=8C?= =?UTF-8?q?=E5=87=BB=E8=BF=9B=E5=8E=BB=20Instances=20=E5=90=8E=EF=BC=8C?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E6=A1=86=E6=95=B0=E6=8D=AE=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../emailMonitor/instances/index.vue | 3 ++ .../serverMonitor/instances/cpu.vue | 3 ++ .../serverMonitor/instances/details.vue | 36 +++++++++++++++++++ .../serverMonitor/instances/monitor.vue | 3 ++ .../instances/serviceProcess.vue | 3 ++ 5 files changed, 48 insertions(+) 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) {