zmc
2023-11-23 cc890f987b770e5a73f5ef12d41b25f6bb448fcd
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)
      }
    })
@@ -138,14 +138,26 @@
        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) {