From 15dcccb405f0ae223818326c1ba651453befac83 Mon Sep 17 00:00:00 2001 From: mediabot-pt <295750538+mediabot-pt@users.noreply.github.com> Date: Mon, 6 Jul 2026 22:31:52 +0800 Subject: [PATCH] feat: add enable/disable switch for each TASK requirement Each requirement has an el-switch; disabled items grey out and input is locked Sites can pick only the conditions they need (e.g. upload+download only) --- web/src/views/RiskRules.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/web/src/views/RiskRules.vue b/web/src/views/RiskRules.vue index cc7d0d8..551ba10 100644 --- a/web/src/views/RiskRules.vue +++ b/web/src/views/RiskRules.vue @@ -117,9 +117,10 @@
考核要求
- {{ r.label }} + + {{ r.label }} 不低于 - + {{ r.unit }}
@@ -278,11 +279,11 @@ const rankDisplay = (v) => { } const taskReqDefaults = [ - { metric:'upload_gb', label:'上传量', threshold:10, unit:'GB', condition:'GTE' }, - { metric:'download_gb', label:'下载量', threshold:10, unit:'GB', condition:'GTE' }, - { metric:'bonus', label:'魔力值', threshold:1000, unit:'', condition:'GTE' }, - { metric:'seeding_score', label:'做种积分', threshold:100, unit:'', condition:'GTE' }, - { metric:'avg_seed_time', label:'平均做种时间', threshold:24, unit:'小时', condition:'GTE' }, + { metric:'upload_gb', label:'上传量', threshold:10, unit:'GB', condition:'GTE', enabled:true }, + { metric:'download_gb', label:'下载量', threshold:10, unit:'GB', condition:'GTE', enabled:true }, + { metric:'bonus', label:'魔力值', threshold:1000, unit:'', condition:'GTE', enabled:true }, + { metric:'seeding_score', label:'做种积分', threshold:100, unit:'', condition:'GTE', enabled:true }, + { metric:'avg_seed_time', label:'平均做种时间', threshold:24, unit:'小时', condition:'GTE', enabled:true }, ] const onTypeChange = (rule) => {