This commit is contained in:
2026-01-04 17:59:28 +08:00
parent 71bf46e0a1
commit 2caf2d3c0c
7 changed files with 621 additions and 614 deletions

View File

@@ -465,12 +465,12 @@ const riskScore = computed(() => {
const lowRiskCount = summaryData.value.byRiskLevel.find(item => item.id === 'low')?.triggered || 0;
// 计算风险分数
// 高风险项:每个扣 30 分
// 中风险项:每个扣 15
// 低风险项:每个扣 5 分
// 高风险项(无法收回):每个扣 40 分
// 中风险项(严重逾期):每个扣 20
// 低风险项(短期逾期):每个扣 5 分
let score = 100;
score -= highRiskCount * 30;
score -= mediumRiskCount * 15;
score -= highRiskCount * 40;
score -= mediumRiskCount * 20;
score -= lowRiskCount * 5;
return Math.max(0, Math.min(100, score));
@@ -544,11 +544,11 @@ onMounted(() => {
</div>
<p class="text-sm text-gray-600 mt-1">
{{
riskSeverity.level === 'critical'
? '存在无法收回风险,请立即处理'
: riskSeverity.level === 'warning'
? '存在严重逾期风险,建议尽快处理'
: '存在短期逾期风险,请注意处理'
riskSeverity.level === 'critical'
? '存在无法收回风险,请立即处理'
: riskSeverity.level === 'warning'
? '存在严重逾期风险,建议尽快处理'
: '存在短期逾期风险,请注意处理'
}}
</p>
</div>