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 @@