接口字段调整,及相应的逻辑修改,将 sourceId 换成hostId
处理 overView 页面跳转 instances 页面失败的问题
This commit is contained in:
parent
4f73b1b5b2
commit
11d8d0bd4d
|
@ -466,9 +466,10 @@ export default {
|
||||||
this.ipagination.total = res.result.total
|
this.ipagination.total = res.result.total
|
||||||
this.dataSource = res.result.records
|
this.dataSource = res.result.records
|
||||||
if (this.$route.query.serverId) {
|
if (this.$route.query.serverId) {
|
||||||
this.currId = this.$route.query.serverId
|
this.serverId = this.$route.query.serverId
|
||||||
this.currIndex = this.dataSource.findIndex((item) => item.hostId === this.currId)
|
this.currIndex = this.dataSource.findIndex((item) => item.sourceId === this.serverId)
|
||||||
this.currItemId = this.dataSource.find((item) => item.hostId === this.currId).cpuUsedItemId
|
this.currId = this.dataSource.find((item) => item.sourceId === this.serverId).hostId
|
||||||
|
this.currItemId = this.dataSource.find((item) => item.sourceId === this.serverId).cpuUsedItemId
|
||||||
} else {
|
} else {
|
||||||
this.currId = this.dataSource[0].hostId
|
this.currId = this.dataSource[0].hostId
|
||||||
this.currItemId = this.dataSource[0].cpuUsedItemId
|
this.currItemId = this.dataSource[0].cpuUsedItemId
|
||||||
|
|
|
@ -353,7 +353,9 @@ export default {
|
||||||
value: item.hostId,
|
value: item.hostId,
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.queryParams.server = this.$route.query.serverId || res.result[0].hostId
|
let serverId = this.$route.query.serverId
|
||||||
|
this.queryParams.server = '10483'
|
||||||
|
// this.serverOptions.find((item) => item.sourceId === serverId).hostId || res.result[0].hostId
|
||||||
this.getRankProcesses()
|
this.getRankProcesses()
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning('This operation fails. Contact your system administrator')
|
this.$message.warning('This operation fails. Contact your system administrator')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user