fix: DRATIO 动态分享率默认值合理化,UI 加'要求'二字消除歧义

预设默认值: 1.0/2.0/3.0 → 0.3/0.5/0.8
意图: 下载量越大,允许的分享率越低,不是越高
This commit is contained in:
mediabot-pt
2026-07-08 22:28:03 +08:00
parent 6828220c77
commit ce794d1b61

View File

@@ -131,7 +131,7 @@
<div v-for="(lv, li) in (rule.levels||[])" :key="li" class="field-row">
<span class="field-label">下载量 ≥</span>
<el-input v-model.number="lv.threshold" size="small" type="number" placeholder="GB" @input="sync" style="width:90px" />
<span class="field-hint">GB 时,分享率 ≥</span>
<span class="field-hint">GB 时,要求分享率 ≥</span>
<el-input v-model.number="lv.ratio" size="small" type="number" :step="0.1" placeholder="分享率" @input="sync" style="width:80px" />
<el-button size="small" type="danger" text :icon="Delete" @click="removeDRatioLevel(rule, li)" />
</div>
@@ -273,7 +273,7 @@ const presets = [
// 新人考核
{ name:'新人考核', type:'TASK', threshold:30, unit:'天', description:'新注册用户需在考核周期内完成各项要求' },
// 动态分享率
{ name:'动态分享率', type:'DRATIO', levels:[{threshold:100,ratio:1.0},{threshold:500,ratio:2.0},{threshold:1000,ratio:3.0}], description:'下载量分级控制分享率' },
{ name:'动态分享率', type:'DRATIO', levels:[{threshold:100,ratio:0.3},{threshold:500,ratio:0.5},{threshold:1000,ratio:0.8}], description:'下载量分级控制分享率' },
// 等级豁免
{ name:'等级豁免', type:'EXEMPT', permRank:'Elite User', sealExemptRank:'Power User', description:'达到等级的账号可豁免清理' },
]
@@ -338,7 +338,7 @@ const ruleText = (r) => {
const cond = condLabel(r.condition)
const val = `${metric}${cond}${r.threshold}${r.unit||''}`
if (r.type === 'DRATIO') {
const levels = (r.levels||[]).map(l => `下载量≥${l.threshold}GB时分享率≥${l.ratio}`).join(',')
const levels = (r.levels||[]).map(l => `下载量≥${l.threshold}GB时要求分享率≥${l.ratio}`).join(',')
return `动态分享率:${levels} → <span style="color:#e6a23c;font-weight:500">封号(缓刑7天)</span>${appText}`
}
if (r.type === 'RATIO') {