commit
b0a586695c
|
@ -77,7 +77,8 @@ export default {
|
|||
// 使用率
|
||||
ringRate() {
|
||||
let ringRate = this.currentInstrumentBoardData.rate
|
||||
return ringRate < 1 ? ringRate * 100 : ringRate
|
||||
ringRate = ringRate < 1 ? ringRate * 100 : ringRate
|
||||
return parseFloat(ringRate.toFixed(4))
|
||||
},
|
||||
// 仪表盘id
|
||||
ringGraphId() {
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
<el-option
|
||||
v-for="(item,index) in allServerInfo"
|
||||
:key="item.id"
|
||||
:label="item.name"
|
||||
:label="item.name || item.ip"
|
||||
:value="index"
|
||||
>
|
||||
</el-option>
|
||||
|
@ -288,7 +288,7 @@ export default {
|
|||
this.allServerInfo = response.data
|
||||
if (this.allServerInfo.length > 0) {
|
||||
this.currentServer = this.allServerInfo[serverIndex || this.currentServerIndex]
|
||||
this.currentServerName = this.currentServer.name
|
||||
this.currentServerName = this.currentServer.name || this.currentServer.ip
|
||||
}
|
||||
this.loading.close()
|
||||
})
|
||||
|
@ -368,7 +368,7 @@ export default {
|
|||
chooseServerInfo(index) {
|
||||
this.currentServerIndex = index
|
||||
this.currentServer = this.allServerInfo[index]
|
||||
this.currentServerName = this.currentServer.name
|
||||
this.currentServerName = this.currentServer.name || this.currentServer.ip
|
||||
},
|
||||
// 更改更新频率(周期)数值
|
||||
handleIntervalChange: debounce(function(value) {
|
||||
|
@ -421,9 +421,10 @@ export default {
|
|||
}
|
||||
|
||||
.information-instrument-panel {
|
||||
width: 20%;
|
||||
display: inline-block;
|
||||
min-height: 300px;
|
||||
min-width: 400px;
|
||||
min-width: 300px;
|
||||
margin: 0 10px;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue