fix: 新人考核统一逻辑方向,改为'低于X'与其他规则一致

卡片显示:上传量 低于 10 GB → 封号
摘要显示:上传量 < 10GB 或 做种积分 < 2500 → 封号
This commit is contained in:
mediabot-pt
2026-07-08 23:50:06 +08:00
parent c7f1b7b66d
commit de16176442

View File

@@ -120,7 +120,7 @@
<div v-for="(r, ri) in (rule.requirements||[])" :key="ri" class="field-row">
<el-switch v-model="r.enabled" size="small" @change="sync" style="margin-right:2px" />
<span class="field-label" :style="r.enabled?{}:{color:'#c0c4cc'}">{{ r.label }}</span>
<span class="condition-text">不低于</span>
<span class="condition-text">低于</span>
<el-input v-model.number="r.threshold" size="small" type="number" @input="sync" :disabled="!r.enabled" style="width:100px" />
<span class="field-hint">{{ r.unit }}</span>
</div>
@@ -331,8 +331,8 @@ const ruleText = (r) => {
return `等级豁免:永久保留 ≥ ${rankDisplay(r.permRank)}、封存豁免 ≥ ${rankDisplay(r.sealExemptRank)} → <span style="color:#67c23a;font-weight:500">保号</span>`
}
if (r.type === 'TASK') {
const reqs = (r.requirements||[]).filter(x => x.enabled).map(x => `${x.label} ≥ ${x.threshold}${x.unit}`).join('、')
return `新人考核:${r.threshold||30}天内,${reqs},不满足 → <span style="color:#f56c6c;font-weight:500">封号/删除账号</span>${appText}`
const reqs = (r.requirements||[]).filter(x => x.enabled).map(x => `${x.label} < ${x.threshold}${x.unit}`).join(' 或 ')
return `新人考核:${r.threshold||30}天内,${reqs} → <span style="color:#f56c6c;font-weight:500">封号/删除账号</span>${appText}`
}
const metric = metricLabel(r.metric)
const cond = condLabel(r.condition)