From 72ea08f6ca504e184a13f3fefe1e5e3a9f20918a Mon Sep 17 00:00:00 2001 From: muqing Date: Wed, 10 Jun 2020 22:48:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BA=86=E9=98=B4=E5=8E=86?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=91=A8=E5=85=AD=E5=91=A8=E6=97=A5?= =?UTF-8?q?=E5=8A=A0=E4=BA=86=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/package.json | 1 + ruoyi-ui/src/main.js | 6 + .../src/views/benyi/calendarshow/index.vue | 12 +- .../src/views/benyi/calendarshow/index123.vue | 406 ++++++++++++++++++ ruoyi/pom.xml | 36 +- 5 files changed, 441 insertions(+), 20 deletions(-) create mode 100644 ruoyi-ui/src/views/benyi/calendarshow/index123.vue diff --git a/ruoyi-ui/package.json b/ruoyi-ui/package.json index 559037656..8d7d02371 100644 --- a/ruoyi-ui/package.json +++ b/ruoyi-ui/package.json @@ -67,6 +67,7 @@ "vue": "2.6.10", "vue-count-to": "1.0.13", "vue-cropper": "0.4.9", + "vue-lunar-full-calendar": "^1.3.2", "vue-quill-editor": "3.0.6", "vue-router": "3.0.2", "vue-simple-uploader": "^0.7.4", diff --git a/ruoyi-ui/src/main.js b/ruoyi-ui/src/main.js index 27a0c112f..a7b5a8fcb 100644 --- a/ruoyi-ui/src/main.js +++ b/ruoyi-ui/src/main.js @@ -41,6 +41,12 @@ Vue.prototype.handleTree = handleTree Vue.prototype.$video = Video Vue.use(VideoPlayer); + +import LunarFullCalendar from "vue-lunar-full-calendar"; +Vue.use(LunarFullCalendar); + + + Vue.prototype.msgSuccess = function (msg) { this.$message({ showClose: true, message: msg, type: "success" }); } diff --git a/ruoyi-ui/src/views/benyi/calendarshow/index.vue b/ruoyi-ui/src/views/benyi/calendarshow/index.vue index 8e447d4c6..5bacf2d60 100644 --- a/ruoyi-ui/src/views/benyi/calendarshow/index.vue +++ b/ruoyi-ui/src/views/benyi/calendarshow/index.vue @@ -97,8 +97,8 @@ export default { calendarPlugins: [ // plugins must be defined in the JS dayGridPlugin, - timeGridPlugin, - interactionPlugin, // needed for dateClick + //timeGridPlugin, + //interactionPlugin, // needed for dateClick listPlugin ], calendarWeekends: true, @@ -140,7 +140,15 @@ export default { @import "~@fullcalendar/list/main.css"; .calendar { width: 820px; + height: 100%; } +.fc-widget-content { + .fc-sun, + .fc-sat { + background: rgba(245, 246, 248, 0.6); + //background: rgba(109, 113, 121, 0.6); + } + } .xs-btns-style { @media screen and (max-width: 768px) { display: flex; diff --git a/ruoyi-ui/src/views/benyi/calendarshow/index123.vue b/ruoyi-ui/src/views/benyi/calendarshow/index123.vue new file mode 100644 index 000000000..b50213d4f --- /dev/null +++ b/ruoyi-ui/src/views/benyi/calendarshow/index123.vue @@ -0,0 +1,406 @@ + + + + + diff --git a/ruoyi/pom.xml b/ruoyi/pom.xml index 3d3586f10..441fcaba2 100644 --- a/ruoyi/pom.xml +++ b/ruoyi/pom.xml @@ -63,26 +63,26 @@ org.springframework.boot spring-boot-starter-web - + org.springframework.boot spring-boot-devtools true - + org.springframework.boot spring-boot-starter-security - + org.springframework.boot spring-boot-starter-data-redis - + org.apache.commons @@ -102,7 +102,7 @@ mybatis-spring-boot-starter ${mybatis.spring.boot.starter.version} - + com.github.pagehelper @@ -129,14 +129,14 @@ commons-io ${commons.io.version} - + commons-fileupload commons-fileupload ${commons.fileupload.version} - + eu.bitwalker @@ -156,14 +156,14 @@ org.springframework spring-context-support - + io.jsonwebtoken jjwt ${jwt.version} - + io.springfox @@ -180,44 +180,44 @@ - + io.swagger swagger-annotations 1.5.21 - + io.swagger swagger-models 1.5.21 - + io.springfox springfox-swagger-ui ${swagger.version} - + com.github.oshi oshi-core ${oshi.version} - + net.java.dev.jna jna - + net.java.dev.jna jna-platform - + org.apache.poi @@ -231,7 +231,7 @@ velocity ${velocity.version} - + org.quartz-scheduler @@ -315,4 +315,4 @@ - \ No newline at end of file +