From cc890f987b770e5a73f5ef12d41b25f6bb448fcd Mon Sep 17 00:00:00 2001 From: zmc <zmc_li@foxmail.com> Date: 星期四, 23 十一月 2023 16:37:45 +0800 Subject: [PATCH] 1.增加了风险模型跳转逻辑 2.修改了风险模型页面部分逻辑 --- src/utils/risk_estimate_common_function/index.js | 20 ++++++++++++++++---- 1 files changed, 16 insertions(+), 4 deletions(-) diff --git a/src/utils/risk_estimate_common_function/index.js b/src/utils/risk_estimate_common_function/index.js index 214c774..84295b7 100644 --- a/src/utils/risk_estimate_common_function/index.js +++ b/src/utils/risk_estimate_common_function/index.js @@ -109,8 +109,8 @@ if (exception.length == 0) { exception.push(item.exceptionType) } - // 淇濆瓨鏂扮殑寮傚父绫诲瀷 - else if (exception.indexOf(item.exceptionType) == -1) { + // 淇濆瓨鏂扮殑寮傚父绫诲瀷 鏁版嵁瓒呬綆銆侀暱鏃堕棿鏃犳尝鍔ㄧ瓑涓ょ被寮傚父鏆備笉绾冲叆鍒嗘瀽 + else if ( item.exceptionType!='1' && item.exceptionType!='3' && exception.indexOf(item.exceptionType) == -1) { exception.push(item.exceptionType) } }) @@ -137,15 +137,27 @@ default: return 'error' } - - exceptionTypeAggregation = (exception.length / 8).toFixed(2) + + // 鏁版嵁瓒呬綆銆侀暱鏃堕棿鏃犳尝鍔ㄧ瓑涓ょ被寮傚父鏆備笉绾冲叆鍒嗘瀽 + exceptionTypeAggregation = (exception.length / 6).toFixed(2) let obj = {} obj['exceptionRecurrence'] = exceptionTyprRecurRate obj['exceptionTypeAggregation'] = exceptionTypeAggregation + // 淇濆瓨璇ユ椂娈靛嚭鐜扮殑寮傚父 + obj['exception'] = exception + + // 涓夌被寮傚父鍑虹幇鐨勬鏁� + obj['mutationCount'] = mutationCount + obj['exceedingNearCount'] = exceedingNearCount + obj['exceedingCriticalDegree'] = exceedingCriticalDegree + + return obj }, + + // 鍙傛暟锛氬璞℃暟缁�(璇ュ璞′腑鐨勫睘鎬т笉鑳芥槸寮曠敤绫诲瀷锛屽惁鍒欐嫹璐濈殑鍊艰繕鏄細鐩镐簰褰卞搷) // 鍔熻兘锛氭嫹璐濊瀵硅薄鏁扮粍銆� shallowCopyList(val) { -- Gitblit v1.9.3