Browse Source

优秀案例学习、 管理页面 开始月份默认值修改为上季度第一个月

zhulu 1 year ago
parent
commit
29369f66c8

+ 2 - 1
src/views/menu/rehearsalTask/learning.vue

@@ -139,6 +139,7 @@ import { deptTreeList } from '@/api/toConsult.js'
 import { Toast } from 'vant'
 import OrgTree from '@/components/orgTree'
 import { newDateMonth } from '@/utils/date.js'
+import dayjs from "dayjs";
 export default {
   data() {
     return {
@@ -175,7 +176,7 @@ export default {
       statusValue: ' ', //状态值
       columns: [], //状态数组
       columnsList: [], //状态数组
-      currentDate: newDateMonth(), //年份
+      currentDate: newDateMonth(dayjs().startOf('quarter').subtract(4, 'month')), //上一个季度的第一个月
       endDate: newDateMonth() //年份
     }
   },

+ 2 - 1
src/views/menu/rehearsalTask/optimal.vue

@@ -156,6 +156,7 @@ import { submitRecTask, getlearningListPage } from '@/api/optimalLearning.js'
 import { Toast } from 'vant'
 import OrgTree from '@/components/orgTree'
 import { newDateMonth } from '@/utils/date.js'
+import dayjs from "dayjs";
 export default {
   data() {
     return {
@@ -193,7 +194,7 @@ export default {
       statusValue: ' ', //状态值
       columns: [], //状态数组
       columnsList: [], //状态数组
-      currentDate: newDateMonth(), //年份
+      currentDate: newDateMonth(dayjs().startOf('quarter').subtract(4, 'month')), //年份
       endDate: newDateMonth(), //年份
       subTabList: [],
       promoBtnText: '推优', // 推优按钮文字