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.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) {