From cf20c0d85b452746033004b66b8a1eb5394f19c0 Mon Sep 17 00:00:00 2001 From: paidaxing444 <12qwaszx> Date: Wed, 22 Apr 2020 11:55:20 +0800 Subject: [PATCH] =?UTF-8?q?20200422-zlp-1=20=E5=9B=AD=E5=8E=86=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/benyi/schoolcalendar.js | 9 ++++ .../src/views/benyi/schoolcalendar/index.vue | 9 +++- ruoyi-ui/src/views/index.vue | 40 ++++++++++------ .../views/system/user/profile/userInfo.vue | 2 +- .../BySchoolcalendarController.java | 45 +++++++++++++++++- .../ruoyi/project/benyi/domain/ByThings.java | 47 +++++++++++++++++++ .../mybatis/benyi/BySchoolcalendarMapper.xml | 9 +++- .../mybatis/system/SysPostMapper.xml | 2 + .../mybatis/system/SysRoleMapper.xml | 7 ++- 9 files changed, 146 insertions(+), 24 deletions(-) create mode 100644 ruoyi/src/main/java/com/ruoyi/project/benyi/domain/ByThings.java diff --git a/ruoyi-ui/src/api/benyi/schoolcalendar.js b/ruoyi-ui/src/api/benyi/schoolcalendar.js index f93534fbc..0ff68c9a3 100644 --- a/ruoyi-ui/src/api/benyi/schoolcalendar.js +++ b/ruoyi-ui/src/api/benyi/schoolcalendar.js @@ -9,6 +9,15 @@ export function listSchoolcalendar(query) { }) } +// 查询园历列表 +export function getSchoolCalendars(query) { + return request({ + url: '/benyi/schoolcalendar/getSchoolCalendars', + method: 'get', + params: query + }) +} + // 查询园历管理详细 export function getSchoolcalendar(id) { return request({ diff --git a/ruoyi-ui/src/views/benyi/schoolcalendar/index.vue b/ruoyi-ui/src/views/benyi/schoolcalendar/index.vue index 20f3a22a1..20317ddb3 100644 --- a/ruoyi-ui/src/views/benyi/schoolcalendar/index.vue +++ b/ruoyi-ui/src/views/benyi/schoolcalendar/index.vue @@ -96,7 +96,7 @@ @selection-change="handleSelectionChange" > - + { + listSchoolcalendar( + this.addDateRange(this.queryParams, this.dateRange) + ).then(response => { this.schoolcalendarList = response.rows; this.total = response.total; this.loading = false; @@ -321,6 +323,7 @@ export default { }, /** 重置按钮操作 */ resetQuery() { + this.dateRange = []; this.resetForm("queryForm"); this.handleQuery(); }, @@ -342,6 +345,8 @@ export default { const id = row.id || this.ids; getSchoolcalendar(id).then(response => { this.form = response.data; + this.scopeOptions = response.scopes; + this.form.scope = response.scopeIds; this.open = true; this.title = "修改园历管理"; }); diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue index c896188ae..a524a69b1 100644 --- a/ruoyi-ui/src/views/index.vue +++ b/ruoyi-ui/src/views/index.vue @@ -24,12 +24,15 @@
{{ data.day.split('-').slice(2).join('-') }}
-
-
-
- -
{{item.things}}
-
+
+
+
+
+ +
{{item.things}}
+
+
+
@@ -46,6 +49,7 @@ import RaddarChart from "./dashboard/RaddarChart"; import PieChart from "./dashboard/PieChart"; import BarChart from "./dashboard/BarChart"; +import { getSchoolCalendars } from "@/api/benyi/schoolcalendar"; export default { name: "Index", @@ -56,16 +60,24 @@ export default { BarChart }, data() { - return {calendarData: [ - { months: ['09', '11'],days: ['15'],things: '看电影' }, - { months: ['10', '11'], days: ['02'],things: '去公园野炊' }, - { months: ['11'], days: ['02'],things: '看星星' }, - { months: ['11'], days: ['02'],things: '看月亮' } - ], - value: new Date() + return { + calendarData: [], + value: new Date(), + // 查询参数 + queryParams: {} }; }, - methods: {} + created() { + this.getSchoolCalendarList(); + }, + methods: { + /** 查询园历列表 */ + getSchoolCalendarList() { + getSchoolCalendars(this.queryParams).then(response => { + this.calendarData = response.calendarData; + }); + } + } }; diff --git a/ruoyi-ui/src/views/system/user/profile/userInfo.vue b/ruoyi-ui/src/views/system/user/profile/userInfo.vue index d2ce0558f..379a77aca 100644 --- a/ruoyi-ui/src/views/system/user/profile/userInfo.vue +++ b/ruoyi-ui/src/views/system/user/profile/userInfo.vue @@ -1,6 +1,6 @@