src/utils/exception_common_function/index.js
@@ -1,5 +1,9 @@
import dayjs from 'dayjs'
export default  {
    /**
     * description:返回时间数组,间隔15分钟。
     * @param: 异常的开始,异常结束时间
@@ -14,7 +18,7 @@
        }
        time.push(begin);
        let temp = dayjs(begin).add(15, 'minute').format('YYYY-MM-DD HH:mm:ss');
        while (temp != end) {
        while (temp >= end) {
          time.push(temp);
          temp = dayjs(temp).add(15, 'minute').format('YYYY-MM-DD HH:mm:ss');
        }
@@ -73,7 +77,7 @@
     */
    diffFiftyMinutesNum(beginNormal, endNormal) {
        // 将开始时间和结束时间转换为dayjs对象
        const start = dayjs(beginNormal).subtract(15, 'minute');
        const start = dayjs(beginNormal)
        const end = dayjs(endNormal);
  
        // 计算结束时间减去开始时间中间相差多少个十分钟
@@ -112,9 +116,8 @@
        let obj = {};
        let current = intervalStarTime;
        let tail = dayjs(intervalEndTime)
          .add(15, 'minute')
          .format('YYYY-MM-DD HH:mm:ss');
        while (current != tail) {
        while (current <= tail) {
          let value = this.findTimeInExceptionData(
            headAndTailExceptionData,
            current