fix: 状态卡片百分比错误
feat: 群聊Bot开关,防止Bot乱窜
This commit is contained in:
9
liteyuki/resources/templates/js/status.js
Normal file
9
liteyuki/resources/templates/js/status.js
Normal file
@ -0,0 +1,9 @@
|
||||
const data = JSON.parse(document.getElementById('data').innerText);
|
||||
|
||||
function createPieChartOption(title, data){
|
||||
// data为各项占比列表
|
||||
}
|
||||
|
||||
function createBarChartOption(title, percent){
|
||||
// percent为百分比,最大值为100
|
||||
}
|
@ -132,8 +132,7 @@
|
||||
used += item.value
|
||||
}
|
||||
})
|
||||
console.log(used, total)
|
||||
return used / total * 100
|
||||
return (1 - used / total) * 100
|
||||
}
|
||||
|
||||
|
||||
@ -146,6 +145,7 @@
|
||||
top: 'center',
|
||||
textStyle: {
|
||||
//文字颜色
|
||||
|
||||
lineHeight: 36,
|
||||
color: '#fff',
|
||||
fontSize: 30
|
||||
|
Reference in New Issue
Block a user