DESKTOP-SVI9JE1\muzen 1 éve
szülő
commit
a5999b3881
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      src/components/GanttChart/index.vue

+ 3 - 1
src/components/GanttChart/index.vue

@@ -131,6 +131,9 @@ function getTime() {
       let d = nowDate.value.getDate()
       let d = nowDate.value.getDate()
       start = new Date(y, m, d).getTime() + start * 1000
       start = new Date(y, m, d).getTime() + start * 1000
       end = new Date(y, m, d).getTime() + end * 1000
       end = new Date(y, m, d).getTime() + end * 1000
+      if(i === 23) {
+        end = start + 3600000
+      }
     }
     }
     data.timeList[i].timer[0] = start
     data.timeList[i].timer[0] = start
     data.timeList[i].timer[1] = end
     data.timeList[i].timer[1] = end
@@ -177,7 +180,6 @@ const modal = (res) => {
         }
         }
       })
       })
       list.map(e => {
       list.map(e => {
-        e.list = []
         e.list.push({ ...i, listDate: j })
         e.list.push({ ...i, listDate: j })
       })
       })
     })
     })