diff --git a/ayanova/src/views/home-schedule.vue b/ayanova/src/views/home-schedule.vue index 4a9aa288..6b1fc328 100644 --- a/ayanova/src/views/home-schedule.vue +++ b/ayanova/src/views/home-schedule.vue @@ -66,10 +66,8 @@ @change="fetchEvents" > @@ -242,14 +240,14 @@ export default { this.$refs.calendar.checkChange(); }, methods: { - getContrastYIQ(hexcolor) { - hexcolor = hexcolor.replace("#", ""); - var r = parseInt(hexcolor.substr(0, 2), 16); - var g = parseInt(hexcolor.substr(2, 2), 16); - var b = parseInt(hexcolor.substr(4, 2), 16); - var yiq = (r * 299 + g * 587 + b * 114) / 1000; - return yiq >= 128 ? "black" : "white"; - }, + // getContrastYIQ(hexcolor) { + // hexcolor = hexcolor.replace("#", ""); + // var r = parseInt(hexcolor.substr(0, 2), 16); + // var g = parseInt(hexcolor.substr(2, 2), 16); + // var b = parseInt(hexcolor.substr(4, 2), 16); + // var yiq = (r * 299 + g * 587 + b * 114) / 1000; + // return yiq >= 128 ? "black" : "white"; + // }, onResize() { this.calendarHeight = window.innerHeight * 0.84; }, @@ -327,6 +325,7 @@ export default { window.$gz.form.deleteAllErrorBoxErrors(this); let res = await window.$gz.api.post("schedule/personal", { + view: v, start: window.$gz.locale.localTimeDateStringToUTC8601String( `${start.date}T00:00:00`, this.timeZoneName