|
@@ -216,7 +216,10 @@ const actions = {
|
|
},
|
|
},
|
|
LOAD_WEEKLY_INFO({ commit }: any) {
|
|
LOAD_WEEKLY_INFO({ commit }: any) {
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
- getWeekReportSearch().then((res) => {
|
|
|
|
|
|
+ getWeekReportSearch({
|
|
|
|
+ year: getters.yearWeeks(state).list[getters.yearWeeks(state).list.length - 1].year,
|
|
|
|
+ weekTime: getters.yearWeeks(state).list[getters.yearWeeks(state).list.length - 1].week,
|
|
|
|
+ }).then((res) => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
commit('SET_WEEKLY_INFO', res.data)
|
|
commit('SET_WEEKLY_INFO', res.data)
|
|
resolve(res.message)
|
|
resolve(res.message)
|