CN-341 Dashboard--dns 饼图调整

This commit is contained in:
hanyuxia
2022-03-08 12:09:41 +08:00
parent e5ccc621f8
commit 6e698ba60c
2 changed files with 71 additions and 8 deletions

View File

@@ -458,6 +458,12 @@ export function humpToLine (name) {
}
return name.replace(/([A-Z])/g, '_$1').toLowerCase()
}
//排序功能
export function sortBy (i) {
return function (a, b) {
return b[i] - a[i]
}
}
// 搜索功能:对象转字符串
export function objToStr (obj) {
return Object.keys(obj).map(k => {