fix plugin
This commit is contained in:
parent
e6d8587282
commit
fd7aa3b759
@ -276,30 +276,30 @@ class AutoSignIn(_PluginBase):
|
|||||||
break
|
break
|
||||||
if sign_data:
|
if sign_data:
|
||||||
contents = [
|
contents = [
|
||||||
{
|
{
|
||||||
'component': 'tr',
|
'component': 'tr',
|
||||||
'props': {
|
'props': {
|
||||||
'class': 'text-sm'
|
'class': 'text-sm'
|
||||||
},
|
},
|
||||||
'content': [
|
'content': [
|
||||||
{
|
{
|
||||||
'component': 'td',
|
'component': 'td',
|
||||||
'props': {
|
'props': {
|
||||||
'class': 'whitespace-nowrap break-keep'
|
'class': 'whitespace-nowrap break-keep'
|
||||||
},
|
},
|
||||||
'text': current_day
|
'text': current_day
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'component': 'td',
|
'component': 'td',
|
||||||
'text': data.get("site")
|
'text': data.get("site")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'component': 'td',
|
'component': 'td',
|
||||||
'text': data.get("status")
|
'text': data.get("status")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
} for data in sign_data
|
} for data in sign_data
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
contents = [
|
contents = [
|
||||||
{
|
{
|
||||||
@ -331,14 +331,23 @@ class AutoSignIn(_PluginBase):
|
|||||||
'content': [
|
'content': [
|
||||||
{
|
{
|
||||||
'component': 'th',
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
'text': '日期'
|
'text': '日期'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'component': 'th',
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
'text': '站点'
|
'text': '站点'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'component': 'th',
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
'text': '状态'
|
'text': '状态'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -299,6 +299,57 @@ class SiteStatistic(_PluginBase):
|
|||||||
total_seed_size = sum([data.get("seeding_size")
|
total_seed_size = sum([data.get("seeding_size")
|
||||||
for data in stattistic_data.values() if data.get("seeding_size")])
|
for data in stattistic_data.values() if data.get("seeding_size")])
|
||||||
|
|
||||||
|
# 站点数据明细
|
||||||
|
site_trs = [
|
||||||
|
{
|
||||||
|
'component': 'tr',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-sm'
|
||||||
|
},
|
||||||
|
'content': [
|
||||||
|
{
|
||||||
|
'component': 'td',
|
||||||
|
'props': {
|
||||||
|
'class': 'whitespace-nowrap break-keep'
|
||||||
|
},
|
||||||
|
'text': site
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'td',
|
||||||
|
'text': data.get("username")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'td',
|
||||||
|
'text': data.get("user_level")
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'td',
|
||||||
|
'text': StringUtils.str_filesize(data.get("upload"))
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'td',
|
||||||
|
'text': StringUtils.str_filesize(data.get("download"))
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'td',
|
||||||
|
'text': data.get('ratio')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'td',
|
||||||
|
'text': data.get('bonus')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'td',
|
||||||
|
'text': data.get('seeding')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'td',
|
||||||
|
'text': StringUtils.str_filesize(data.get('seeding_size'))
|
||||||
|
}
|
||||||
|
]
|
||||||
|
} for site, data in stattistic_data.items() if not data.get("err_msg")
|
||||||
|
]
|
||||||
|
|
||||||
# 拼装页面
|
# 拼装页面
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
@ -575,6 +626,95 @@ class SiteStatistic(_PluginBase):
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
# 各站点数据明细
|
||||||
|
{
|
||||||
|
'component': 'VCol',
|
||||||
|
'props': {
|
||||||
|
'cols': 12,
|
||||||
|
},
|
||||||
|
'content': [
|
||||||
|
{
|
||||||
|
'component': 'VTable',
|
||||||
|
'props': {
|
||||||
|
'hover': True
|
||||||
|
},
|
||||||
|
'content': [
|
||||||
|
{
|
||||||
|
'component': 'thead',
|
||||||
|
'content': [
|
||||||
|
{
|
||||||
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
|
'text': '站点'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
|
'text': '用户名'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
|
'text': '用户等级'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
|
'text': '上传量'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
|
'text': '下载量'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
|
'text': '分享率'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
|
'text': '魔力值'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
|
'text': '做种数'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'th',
|
||||||
|
'props': {
|
||||||
|
'class': 'text-start ps-4'
|
||||||
|
},
|
||||||
|
'text': '做种体积'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
'component': 'tbody',
|
||||||
|
'content': site_trs
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user