From 3afff5d94219522784bf17830adf6cd1cfc5e1d3 Mon Sep 17 00:00:00 2001
From: wkc <978997012@qq.com>
Date: Mon, 24 Aug 2026 16:28:28 +0800
Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E4=B8=AA=E4=BA=BA=E6=A8=A1?=
=?UTF-8?q?=E5=9E=8B=E9=97=AE=E5=8F=B7=E6=8F=90=E7=A4=BA=E4=BD=8D=E7=BD=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../components/ModelOutputDisplay.vue | 47 +++++++++----------
1 file changed, 23 insertions(+), 24 deletions(-)
diff --git a/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue b/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue
index 687d849..2c799bc 100644
--- a/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue
+++ b/ruoyi-ui/src/views/loanPricing/workflow/components/ModelOutputDisplay.vue
@@ -41,16 +41,15 @@
| 模型输出结果 | 影响BP |
+ | 汇总 {{ item.label }}{{ item.value }} |
-
- 汇总
-
-
+
+ {{ row.bpLabel }}:{{ row.bpValue }}
+
+
- {{ item.label }}{{ item.value }}
|
- {{ row.bpLabel }}:{{ row.bpValue }} |
@@ -67,20 +66,17 @@
汇总
{{ item.label }}
-
-
-
{{ item.value }}
- {{ row.bpLabel }}
-
-
- :
+ {{ row.bpLabel }}:
{{ row.bpValue }}
+
+
+
|
@@ -220,7 +216,7 @@ export default {
this.resultItem('贷款年日均', this.retailOutput.loanAvg),
this.resultItem('派生率', this.formatRate(this.retailOutput.derivationRate))
]),
- this.totalRow('TOTAL_BP_贡献度', this.retailOutput.totalBpContribution, '最高上限100BP')
+ this.totalRow('TOTAL_BP_贡献度', this.retailOutput.totalBpContribution, '最高上限100BP', '查看贡献度汇总上限')
]
},
retailRelevanceRows() {
@@ -237,8 +233,7 @@ export default {
this.middleBusinessRow('中间业务_个人_市民卡', this.retailOutput.midPerCitizencard),
this.middleBusinessRow('中间业务_个人_理财业务', this.retailOutput.midPerFinMan),
this.middleBusinessRow('中间业务_个人_etc', this.retailOutput.midPerEtc),
- this.summaryRow('BP_中间业务', this.retailOutput.bpMid, '最高上限-30BP'),
- this.totalRow('TOTAL_BP_关联度', this.retailOutput.totalBpRelevance)
+ this.totalRow('TOTAL_BP_关联度', this.retailOutput.totalBpRelevance, '最高上限-30BP', '查看中间业务BP上限')
]
},
retailRiskRows() {
@@ -323,8 +318,8 @@ export default {
},
methods: {
formatRate,
- resultItem(label, value, tooltip = null, showValue = true) {
- return {label, value: this.formatOutputValue(value), tooltip, showValue}
+ resultItem(label, value, showValue = true) {
+ return {label, value: this.formatOutputValue(value), showValue}
},
groupedAnalysisRow(results, bpLabel, bpValue, total = false, category = null) {
return {results, bpLabel, bpValue: this.formatOutputValue(bpValue), total, category}
@@ -333,13 +328,17 @@ export default {
return this.groupedAnalysisRow([this.resultItem(resultLabel, resultValue)], bpLabel, bpValue)
},
middleBusinessRow(resultLabel, bpValue, tooltip = null) {
- return this.groupedAnalysisRow([this.resultItem(resultLabel, null, tooltip, false)], null, bpValue)
+ return {
+ results: [this.resultItem(resultLabel, null, false)],
+ bpLabel: null,
+ bpValue: this.formatOutputValue(bpValue),
+ total: false,
+ bpTooltip: tooltip,
+ bpTooltipAriaLabel: tooltip ? `${resultLabel}提示` : null
+ }
},
- summaryRow(bpLabel, bpValue, bpTooltip) {
- return {summary: true, bpLabel, bpValue: this.formatOutputValue(bpValue), bpTooltip, total: false}
- },
- totalRow(bpLabel, bpValue, summaryTooltip = null) {
- return {summary: true, bpLabel, bpValue: this.formatOutputValue(bpValue), total: true, summaryTooltip}
+ totalRow(bpLabel, bpValue, bpTooltip = null, bpTooltipAriaLabel = null) {
+ return {summary: true, bpLabel, bpValue: this.formatOutputValue(bpValue), total: true, bpTooltip, bpTooltipAriaLabel}
},
/** 格式化布尔值为中文 */
formatBoolean(value) {