Server Monitor、Database Monitor、Email Monitor 三个模块从 Overview 列表页双击进去 Instances 后,下拉框数据不对应

This commit is contained in:
任珮宇 2024-02-05 14:53:15 +08:00
parent 864ad75ce3
commit 73f7a943de
5 changed files with 48 additions and 0 deletions

View File

@ -239,6 +239,9 @@ export default {
mounted() {
this.getEmailList()
},
activated() {
this.getEmailList()
},
watch: {
emailId(newValue, oldValue) {
this.currId = newValue

View File

@ -237,6 +237,9 @@ export default {
mounted() {
this.getServerList()
},
activated() {
this.getServerList()
},
methods: {
handleRefresh() {
if (!this.userDefined) {

View File

@ -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

View File

@ -166,6 +166,9 @@ export default {
mounted() {
this.getServerList()
},
activated() {
this.getServerList()
},
methods: {
handleRefresh() {
if (!this.userDefined) {

View File

@ -286,6 +286,9 @@ export default {
setTimeout(() => {}, 0)
})
},
activated() {
this.getServerList()
},
methods: {
handleRefresh() {
if (!this.userDefined) {