From ae513f1426cab2bad08a0a7f07eccbaaacd8f0cc Mon Sep 17 00:00:00 2001 From: paidaxing444 <12qwaszx> Date: Sat, 23 May 2020 15:21:45 +0800 Subject: [PATCH] =?UTF-8?q?20200523-zlp-2=20=E5=9B=AD=E5=8E=86=E6=A0=B7?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/benyi/calendarshow/index.vue | 53 ++------- .../views/benyi/schoolcalendarclass/index.vue | 112 ++++++++++++------ .../controller/ByCalendarController.java | 2 +- 3 files changed, 86 insertions(+), 81 deletions(-) diff --git a/ruoyi-ui/src/views/benyi/calendarshow/index.vue b/ruoyi-ui/src/views/benyi/calendarshow/index.vue index b06aceeff..894f94e7b 100644 --- a/ruoyi-ui/src/views/benyi/calendarshow/index.vue +++ b/ruoyi-ui/src/views/benyi/calendarshow/index.vue @@ -111,52 +111,8 @@ export default { }); }, methods: { - getCalendarEvents(info, successCallback, failureCallback) { - // const events = this.getSchoolCalendarList(); - console.log("ceshi11111111"); - getAllSchoolCalendars(this.queryParams).then(response => { - this.calendarData = response.calendarData; - }); - console.log("ceshi22222222"); - const events = this.calendarData; - console.log(this.calendarData); - console.log(events); - // const events = [ - // ...this.calendarEvents, - // { - // title: '五一劳动节', - // start: '2020-05-01 00:00:00', - // end: '2020-05-06 00:00:00', - // color:'orange' - // }, - // { - // start: '2020-05-02 10:00:00', - // end: '2020-05-02 14:00:00', - // title: '东南大学计算机学术会议', - // color:'green' - // } - // ] - successCallback(events); - }, - toggleWeekends() { - this.calendarWeekends = !this.calendarWeekends; // update a property - }, - gotoPast() { - this.calendarApi.gotoDate("2019-08-01"); // call a method on the Calendar object - }, - handleDateClick(arg) { - if (confirm("Would you like to add an event to " + arg.dateStr + " ?")) { - this.calendarEvents.push({ - // add new event data - title: "New Event", - start: arg.date, - allDay: arg.allDay - }); - } - this.calendarApi.refetchEvents(); - }, handleEventClick(info) { - alert("活动: " + info.event.title); + this.msgSuccess("活动: " + info.event.title); } }, mounted() { @@ -196,4 +152,11 @@ export default { .no-border-btn { border: none; } +.fc-header-toolbar { + @media screen and (max-width: 768px) { + .fc-left > .fc-today-button, .fc-right > .fc-listWeek-button { + display: none; + } + } +} diff --git a/ruoyi-ui/src/views/benyi/schoolcalendarclass/index.vue b/ruoyi-ui/src/views/benyi/schoolcalendarclass/index.vue index 1ad4970fa..a4377b6bf 100644 --- a/ruoyi-ui/src/views/benyi/schoolcalendarclass/index.vue +++ b/ruoyi-ui/src/views/benyi/schoolcalendarclass/index.vue @@ -32,12 +32,15 @@ - - + placeholder="选择活动时间" + > 搜索 @@ -86,14 +89,18 @@ - - + + - + - + - + - - + range-separator="-" + start-placeholder="开始日期" + end-placeholder="结束日期" + > +