修复BUG(服务监控): 服务器不存在名称的情况下,使用ip作为name;
parent
2b9774083d
commit
c12221a57b
|
@ -74,7 +74,7 @@
|
||||||
<el-option
|
<el-option
|
||||||
v-for="(item,index) in allServerInfo"
|
v-for="(item,index) in allServerInfo"
|
||||||
:key="item.id"
|
:key="item.id"
|
||||||
:label="item.name"
|
:label="item.name || item.ip"
|
||||||
:value="index"
|
:value="index"
|
||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
|
@ -288,7 +288,7 @@ export default {
|
||||||
this.allServerInfo = response.data
|
this.allServerInfo = response.data
|
||||||
if (this.allServerInfo.length > 0) {
|
if (this.allServerInfo.length > 0) {
|
||||||
this.currentServer = this.allServerInfo[serverIndex || this.currentServerIndex]
|
this.currentServer = this.allServerInfo[serverIndex || this.currentServerIndex]
|
||||||
this.currentServerName = this.currentServer.name
|
this.currentServerName = this.currentServer.name || this.currentServer.ip
|
||||||
}
|
}
|
||||||
this.loading.close()
|
this.loading.close()
|
||||||
})
|
})
|
||||||
|
@ -368,7 +368,7 @@ export default {
|
||||||
chooseServerInfo(index) {
|
chooseServerInfo(index) {
|
||||||
this.currentServerIndex = index
|
this.currentServerIndex = index
|
||||||
this.currentServer = this.allServerInfo[index]
|
this.currentServer = this.allServerInfo[index]
|
||||||
this.currentServerName = this.currentServer.name
|
this.currentServerName = this.currentServer.name || this.currentServer.ip
|
||||||
},
|
},
|
||||||
// 更改更新频率(周期)数值
|
// 更改更新频率(周期)数值
|
||||||
handleIntervalChange: debounce(function(value) {
|
handleIntervalChange: debounce(function(value) {
|
||||||
|
|
Loading…
Reference in New Issue