mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-12 03:10:26 +08:00
IP地址详情中增加区域监控雷达图、数据列表
This commit is contained in:
18
web/views/@default/clusters/ip-addrs/addr/reports.js
Normal file
18
web/views/@default/clusters/ip-addrs/addr/reports.js
Normal file
@@ -0,0 +1,18 @@
|
||||
Tea.context(function () {
|
||||
this.results.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