From d1ccf7e1835b3c583da16d90a286e749d5e27c84 Mon Sep 17 00:00:00 2001
From: zmc <zmc_li@foxmail.com>
Date: 星期四, 07 十二月 2023 14:15:20 +0800
Subject: [PATCH] 修改无数据时段的算法

---
 src/utils/chartFunction/lineChart.js |   36 ------------------------------------
 1 files changed, 0 insertions(+), 36 deletions(-)

diff --git a/src/utils/chartFunction/lineChart.js b/src/utils/chartFunction/lineChart.js
index e43ead8..1c4bc2e 100644
--- a/src/utils/chartFunction/lineChart.js
+++ b/src/utils/chartFunction/lineChart.js
@@ -79,42 +79,6 @@
   },
 
   /**
-   * 杩斿洖鏃犳暟鎹殑鏃堕棿娈�
-   * @param锛�
-   * @returns锛�
-   */
-  backNoDataInteval(dataBeginTime, dataEndTime) {
-    const result = []
-    // 鏁版嵁寮�濮嬫椂闂�
-    const start = dayjs(dataBeginTime)
-    // 鏁版嵁缁撴潫鏃堕棿
-    const end = dayjs(dataEndTime)
-    // 璇ユ湀鐨�1鍙�
-    const monthStart = start.startOf('month')
-    // 璇ユ湀鏈�鍚庝竴澶�
-    const monthEnd = start.endOf('month')
-
-    // 鏁版嵁璧峰涓嶇瓑浜庢湀鍒� 涓� 鏁版嵁缁撴潫涓嶇瓑浜庢湀鏈�
-    if (!start.isSame(monthStart, 'day') && !end.isSame(monthEnd, 'day')) {
-      result.push([monthStart.format('YYYY-MM-DD'), start.format('YYYY-MM-DD')])
-      result.push([end.format('YYYY-MM-DD'), monthEnd.format('YYYY-MM-DD')])
-    }
-
-    // 鏁版嵁璧峰绛変簬鏈堝垵 涓� 鏁版嵁缁撴潫涓嶇瓑浜庢湀鏈�
-    if (start.isSame(monthStart, 'day') && !end.isSame(monthEnd, 'day')) {
-      result.push([end.format('YYYY-MM-DD'), monthEnd.format('YYYY-MM-DD')])
-    }
-
-    // 鏁版嵁璧峰涓嶇瓑浜庢湀鍒� 涓� 鏁版嵁缁撴潫绛変簬鏈堟湯
-    if (!start.isSame(monthStart, 'day') && end.isSame(monthEnd, 'day')) {
-      result.push([monthStart.format('YYYY-MM-DD'), start.format('YYYY-MM-DD')])
-    }
-
-    // 鏁版嵁璧峰绛変簬鏈堝垵 涓� 鏁版嵁缁撴潫绛変簬鏈堟湯  (杩欑鎯呭喌娌℃湁绌烘暟鎹殑鏃堕棿闂撮殧)
-    return result
-  },
-
-  /**
    * 缁勬垚鏃犳暟鎹尯鍩�
    * @param锛� 2缁存暟缁�
    * @returns锛�

--
Gitblit v1.9.3