f
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user