From d48b876537cb59e9d71de8726a61af24ac62de63 Mon Sep 17 00:00:00 2001 From: Vce Date: Fri, 5 Jul 2024 23:28:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E6=8C=87?= =?UTF-8?q?=E6=8C=A5=E9=83=A8=E5=A4=A7=E5=B1=8F=E9=A1=B9=E7=9B=AE=E6=80=BB?= =?UTF-8?q?=E8=A7=88BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dialogCompnnents/weather-info.vue | 51 +++++++++++-------- 1 file changed, 31 insertions(+), 20 deletions(-) diff --git a/src/views/commandScreen/dialogCompnnents/weather-info.vue b/src/views/commandScreen/dialogCompnnents/weather-info.vue index 402786dd..7fc47f66 100644 --- a/src/views/commandScreen/dialogCompnnents/weather-info.vue +++ b/src/views/commandScreen/dialogCompnnents/weather-info.vue @@ -1105,23 +1105,34 @@ const getGanttStyle = (project: any) => { let endRef = null; // 抹灰工程1-1-2022/09/03 - const a = !(startArr[2] % 2); - // console.log(a, ":!(startArr[2] % 2:"); - if (a) { - const day = startArr[2] - 1; - startArr[2] = day < 10 ? "0" + day : day; - startDate = startArr.join("-"); - } - const b = !(endArr[2] % 2); - // console.log(a, ":!(endArr[2] % 2):"); - if (!(endArr[2] % 2)) { - const day = endArr[2] - 1; - endArr[2] = day < 10 ? "0" + day : day; - finishDate = endArr.join("-"); - } + const a = true; + console.log(a, ":!(startArr[2] % 2:"); + if (a) { + const day = +startArr[2]; + startArr[2] = day < 10 ? "0" + day : day; + startDate = startArr.join("-"); + } + const b = true; + console.log(a, ":!(endArr[2] % 2):"); + if (b) { + const day = +endArr[2]; + endArr[2] = day < 10 ? "0" + day : day; + finishDate = endArr.join("-"); + } + + // const a = !(startArr[2] % 2); + // if (a) { + // const day = startArr[2] - 1; + // startArr[2] = day < 10 ? "0" + day : day; + // startDate = startArr.join("-"); + // } + // const b = !(endArr[2] % 2); + // if (!(endArr[2] % 2)) { + // const day = endArr[2] - 1; + // endArr[2] = day < 10 ? "0" + day : day; + // finishDate = endArr.join("-"); + // } - // console.log(dateList, "finishDate ------------", itemRefs.length); - // console.log(id, "甘特图"); for (let index = 0; index < itemRefs.length; index++) { const data = itemRefs[index]; @@ -1210,7 +1221,7 @@ const getDays = (date: any) => { let fulldate = date + (num < 10 ? "-0" + num : "-" + num); return { num, date: fulldate }; }) - .filter(item => item.num % 2); + // .filter(item => item.num % 2); if (count === 28) { days.push({ num: 28, date: date + "-28" }); } else if (count === 30) { @@ -1860,7 +1871,7 @@ onMounted(async () => { } &:nth-child(n + 4) { - width: 400px; + width: 600px; } } } @@ -1965,12 +1976,12 @@ onMounted(async () => { } &:nth-child(n + 4) { - width: 400px; + width: 600px; } } .progress { - flex-shrink: 0; + // flex-shrink: 0; position: absolute; top: calc(50% - 7px); width: 20px;