mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-19 23:50:25 +08:00
实现基本的监控终端管理
This commit is contained in:
18
web/views/@default/clusters/monitors/index.js
Normal file
18
web/views/@default/clusters/monitors/index.js
Normal file
@@ -0,0 +1,18 @@
|
||||
Tea.context(function () {
|
||||
this.tasks.forEach(function (v) {
|
||||
switch (v.level) {
|
||||
case "good":
|
||||
v.color = "green"
|
||||
break
|
||||
case "normal":
|
||||
v.color = "blue"
|
||||
break
|
||||
case "bad":
|
||||
v.color = "orange"
|
||||
break
|
||||
case "broken":
|
||||
v.color = "red"
|
||||
break
|
||||
}
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user