diff --git a/dist.zip b/dist.zip index a41e5dc..802499e 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/router/index.js b/src/router/index.js index a6c1549..61b5c97 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -90,6 +90,7 @@ const mainRoutes = { { path: '/vipList-userList', component: _import('modules/vipList/userList'), name: 'vipList-userList', meta: { title: 'VIP用户列表', isTab: true } }, { path: '/vipList-vipDetail', component: _import('modules/vipList/vipDetail'), name: 'vipList-vipDetail', meta: { title: 'VIP详情', isTab: true } }, { path: '/reportList-vipList', component: _import('modules/reportList/vipList'), name: 'reportList-vipList', meta: { title: 'VIP报表', isTab: true } }, + { path: '/reportList-courseList', component: _import('modules/reportList/courseList'), name: 'reportList-courseList', meta: { title: 'VIP报表', isTab: true } }, ], beforeEnter (to, from, next) { diff --git a/src/views/common/js/commonJS.js b/src/views/common/js/commonJS.js index ea62fab..97e995e 100644 --- a/src/views/common/js/commonJS.js +++ b/src/views/common/js/commonJS.js @@ -2,6 +2,30 @@ import Vue from 'vue'; import mammoth from "mammoth"; export default { + getDate(year, month){ + console.log('month at line 5:', month) + const currentDate = new Date(); + const currentYear = currentDate.getFullYear(); + const currentMonth = currentDate.getMonth() + 1; // 转换为1-12的月份格式 + console.log('currentMonth at line 9:', currentMonth) + const today = currentDate.getDate(); + console.log('today at line 10:', today) + let targetDate; + + // 严格判断:是否为当前年份且当前月份 + if (year == currentYear && month == currentMonth) { + // 当月:截止到今天 + targetDate = `${year}-${month}-${today}`; + return targetDate; + } else { + // 非当月或非今年:取该月最后一天 + // 构造下个月1号,再减1天得到当月最后一天 + const nextMonthFirstDay = new Date(year, month, 1); + const lastDay = new Date(nextMonthFirstDay - 24 * 60 * 60 * 1000).getDate(); + targetDate = `${year}-${month}-${lastDay}`; + return targetDate; + } + }, handleUpload(event, callback) { const file = event.target.files[0]; if (!file) return; diff --git a/src/views/main.vue b/src/views/main.vue index cc9ba1d..14b1232 100644 --- a/src/views/main.vue +++ b/src/views/main.vue @@ -79,6 +79,7 @@ params: this.$http.adornParams() }).then(({data}) => { if (data && data.code === 0) { + localStorage.setItem('userInfo', JSON.stringify(data.user)) this.loading = false this.userId = data.user.userId this.userName = data.user.username diff --git a/src/views/modules/order/buyorder.vue b/src/views/modules/order/buyorder.vue index 0713807..62f208f 100644 --- a/src/views/modules/order/buyorder.vue +++ b/src/views/modules/order/buyorder.vue @@ -259,15 +259,15 @@
-
- 备注 +
+ 备注 + style="width: 14px; height:14px; margin-left: 10px; cursor: pointer;font-size: 16px!important;">
-
{{ fitem.remark }}
+
{{ fitem.remark }}
diff --git a/src/views/modules/reportList/FullYearCalendar.vue b/src/views/modules/reportList/FullYearCalendar.vue index 4177a29..001f23a 100644 --- a/src/views/modules/reportList/FullYearCalendar.vue +++ b/src/views/modules/reportList/FullYearCalendar.vue @@ -1,6 +1,6 @@