设备监控页面添加定时器请求接口
This commit is contained in:
@@ -11,10 +11,7 @@
|
||||
>前置服务 {{ item.server_name }} ({{ item.url }}:{{ item.port }} )
|
||||
<el-tag
|
||||
:color="serveStatus[item.status].backgroundColor"
|
||||
:style="{
|
||||
color: serveStatus[item.status].textColor,
|
||||
borderColor: serveStatus[item.status].borderColor,
|
||||
}"
|
||||
:style="{color:serveStatus[item.status].textColor,borderColor:serveStatus[item.status].borderColor}"
|
||||
>
|
||||
{{ serveStatus[item.status].name }}
|
||||
</el-tag>
|
||||
@@ -211,14 +208,15 @@ export default {
|
||||
type: 'error'
|
||||
})
|
||||
this.$set(this.serverData[index], 'status', 'offline')
|
||||
|
||||
// this.$delete(this.serverData, index);
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.getServe()
|
||||
setInterval(()=>{
|
||||
this.getServe()
|
||||
}, 30000)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user