From 6d9237c399e805fbef31e97fc9eadbd544815593 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Wed, 22 Dec 2021 21:37:07 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=97=A5=E5=8E=86=E6=97=A5=E3=80=81?= =?UTF-8?q?=E5=91=A8=E8=A7=86=E5=9B=BE=E9=80=89=E6=8B=A9=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E4=BC=9A=E8=BF=9B=E5=85=A5all=20day?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/assets/js/pages/manage/calendar.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/pages/manage/calendar.vue b/resources/assets/js/pages/manage/calendar.vue index fca693ad..26d1e100 100644 --- a/resources/assets/js/pages/manage/calendar.vue +++ b/resources/assets/js/pages/manage/calendar.vue @@ -30,6 +30,7 @@ :template="calendarTemplate" :calendars="calendarList" :schedules="list" + :taskView="false" @beforeCreateSchedule="onBeforeCreateSchedule" @beforeClickSchedule="onBeforeClickSchedule" @beforeUpdateSchedule="onBeforeUpdateSchedule" @@ -87,12 +88,14 @@ export default { return data.owner; }) return datas.map(data => { + let isAllday = $A.rightExists(data.start_at, "00:00:00") && $A.rightExists(data.end_at, "23:59:59") let task = { id: data.id, calendarId: String(data.project_id), title: data.name, body: data.desc, - category: 'allday', + isAllDay: isAllday, + category: isAllday ? 'allday' : 'time', start: $A.Date(data.start_at).toISOString(), end: $A.Date(data.end_at).toISOString(), color: "#515a6e",