From b46bc2dba51a3885a68e4c58316b41a31ea16bb2 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 14 二月 2023 13:35:03 +0800
Subject: [PATCH] 1.存货档案修改

---
 src/lib/v-gantt-chart/lib/components/time-line/index.vue |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/lib/v-gantt-chart/lib/components/time-line/index.vue b/src/lib/v-gantt-chart/lib/components/time-line/index.vue
index 1c069e1..5e43426 100644
--- a/src/lib/v-gantt-chart/lib/components/time-line/index.vue
+++ b/src/lib/v-gantt-chart/lib/components/time-line/index.vue
@@ -13,8 +13,8 @@
         class="gantt-timeline-day "
         :style="heightStyle"
       >
-        {{ day.format("YYYY-MM-DD") }}
-        {{ getDayMy(day.format("YYYY-MM-DD")) }}
+        {{ day.format('YYYY-MM-DD') }}
+        {{ getDayMy(day.format('YYYY-MM-DD')) }}
       </div>
       <div
         class="gantt-timeline-scale"
@@ -22,8 +22,8 @@
         style="border-right: 1px solid #eee"
       >
         <div
-          v-for="(hour,index) in getTimeScales(day)"
-          :key="index"
+          v-for="(hour,ind) in getTimeScales(day)"
+          :key="ind"
           :style="cellWidthStyle"
         >
           {{ hour }}
@@ -150,21 +150,21 @@
           throw new TypeError('閿欒鐨勮绠楃被鍨�')
       }
       while (!a.isAfter(b)) {
-        if (scale >= 60) {
-          totalblock.push(a.format('HH'))
-        } else {
-          totalblock.push(a.format('HH:mm'))
-        }
+        // if (scale >= 60) {
+        //   totalblock.push(a.format('HH'))
+        // } else {
+        totalblock.push(a.format('HH:mm'))
+        // }
         a = a.add(scale, 'minute')
       }
-
+      // console.log(1, totalblock)
       return totalblock
     }
   }
 }
 </script>
 <style lang="scss" scoped>
-.gantt-timeline-day{
+.gantt-timeline-day {
   border-right: 1px solid #ebeef5;
   border-bottom: 1px solid #ebeef5;
   //background: rgb(245, 245, 245);

--
Gitblit v1.9.3