From 736cdddad2899ee4462cc10d077ac78683e88735 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 15 Sep 2021 15:18:33 +0000 Subject: [PATCH] --- ayanova/src/views/home-schedule.vue | 43 +++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 12 deletions(-) diff --git a/ayanova/src/views/home-schedule.vue b/ayanova/src/views/home-schedule.vue index d5b4b61a..4a9aa288 100644 --- a/ayanova/src/views/home-schedule.vue +++ b/ayanova/src/views/home-schedule.vue @@ -31,21 +31,21 @@ - + Day - + Week - + Month - + 4 days @@ -59,7 +59,7 @@ color="primary" :events="events" :event-color="getEventColor" - :type="type" + :type="viewType" @click:event="showEvent" @click:more="viewDay" @click:date="viewDay" @@ -188,7 +188,7 @@ export default { return { formCustomTemplateKey: FORM_CUSTOM_TEMPLATE_KEY, focus: "", - type: "month", + viewType: "month", typeToLabel: { month: "Month", week: "Week", @@ -255,7 +255,7 @@ export default { }, viewDay({ date }) { this.focus = date; - this.type = "day"; + this.viewType = "day"; }, getEventColor(event) { return event.color; @@ -291,10 +291,10 @@ export default { //NOTE: Need to add six days at least on either side due to calendar potentially showing up to six days of end and start of adjacent months //maybe easier if server does it and this just sticks to the - console.log( - "UPDATE RANGE:", - JSON.stringify({ start: start.date, end: end.date }) - ); + // console.log( + // "UPDATE RANGE:", + // JSON.stringify({ start: start.date, end: end.date }) + // ); /* public enum PersonalScheduleWorkOrderColorSource : int { @@ -303,7 +303,26 @@ export default { WorkOrderItemStatus = 3, WorkOrderItemPriority = 4 } + public enum ScheduleView : int + { + Day = 1, + Week = 2, + Month = 3, + Day4 = 4 + } */ + let v = 3; //month - default + switch (this.viewType) { + case "day": + v = 1; + break; + case "week": + v = 2; + break; + case "4day": + v = 4; + break; + } try { window.$gz.form.deleteAllErrorBoxErrors(this);