From 67692aad0f8c8a970c055d717d1ec0c2dcd2f6a8 Mon Sep 17 00:00:00 2001 From: zhanglipeng Date: Mon, 2 Aug 2021 15:47:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=BC=E5=84=BF=E5=9B=AD=E5=92=8C=E5=B9=BC?= =?UTF-8?q?=E5=84=BF=E5=9B=AD=E7=8F=AD=E7=BA=A7=E5=9B=AD=E5=8E=86=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E4=BC=98=E5=8C=96=EF=BC=8C=E5=BC=B9=E5=87=BA=E5=B1=82?= =?UTF-8?q?=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/dashboard/BarChart.vue | 27 +++++++++++++---------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/ruoyi-ui/src/views/dashboard/BarChart.vue b/ruoyi-ui/src/views/dashboard/BarChart.vue index 28c4621ee..e42a6a963 100644 --- a/ruoyi-ui/src/views/dashboard/BarChart.vue +++ b/ruoyi-ui/src/views/dashboard/BarChart.vue @@ -29,40 +29,40 @@ import { getAllSchoolCalendars } from "@/api/benyi/calendar"; export default { name: "fullcalendar_page", components: { - FullCalendar + FullCalendar, }, props: { className: { type: String, - default: "chart" + default: "chart", }, width: { type: String, - default: "100%" + default: "100%", }, height: { type: String, - default: "480px" - } + default: "480px", + }, }, data() { return { header: { left: "prev,next today", center: "title", - right: "dayGridMonth, listWeek" + right: "dayGridMonth, listWeek", }, buttonText: { today: "今天", month: "月", - list: "周列表" + list: "周列表", }, calendarPlugins: [ // plugins must be defined in the JS dayGridPlugin, //timeGridPlugin, //interactionPlugin, // needed for dateClick - listPlugin + listPlugin, ], calendarWeekends: true, calendarEvents: [ @@ -75,22 +75,22 @@ export default { ], calendarApi: null, calendarData: [], - queryParams: {} + queryParams: {}, }; }, created() { - getAllSchoolCalendars(this.queryParams).then(response => { + getAllSchoolCalendars(this.queryParams).then((response) => { this.calendarEvents = response.calendarData; }); }, methods: { handleEventClick(info) { this.msgSuccess("事件: " + info.event.title); - } + }, }, mounted() { this.calendarApi = this.$refs.fullCalendar.getApi(); - } + }, }; @@ -115,6 +115,9 @@ export default { //background: rgba(109, 113, 121, 0.6); } } +.fc-time { + display: none; +} .xs-btns-style { @media screen and (max-width: 768px) { display: flex;