实现基本的监控终端管理

This commit is contained in:
刘祥超
2021-09-08 19:34:51 +08:00
parent ab9cd13abc
commit ce97f20826
19 changed files with 345 additions and 12 deletions

View 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
}
})
})