|
@@ -4,7 +4,7 @@ import { GET_UUIONID_TOKEN,GET_TOKEN,GetInfo,InfoWatch,InfoWatchDay,
|
|
|
GetStudentDetail,GetManagerDetail,Downgrade,SuperManagerList,
|
|
|
SuperApplyTeacherList,ApplyOperate,GetTeacherSalaryList,DealCorrectTeacher,
|
|
|
GetAllotManagerList,AllotTeacherToManager,HomeworkRecoveryList,errorWarning,errorDetail,logout,
|
|
|
- CheckHomeworkStatus,FindSubjectCharts
|
|
|
+ CheckHomeworkStatus,FindSubjectCharts,GetRemindCount
|
|
|
} from '@/api'
|
|
|
import { APPOR_BASE_URL } from '@/ImgConfig'
|
|
|
import { getToken, setToken, removeToken } from '@/utils/auth'
|
|
@@ -40,6 +40,7 @@ const user = {
|
|
|
pictureIndex:0,
|
|
|
InfoTeacherstatues:"",
|
|
|
GetTeacherstatues:"",
|
|
|
+ getRemindCount:"",
|
|
|
ApporingTeacherstatues:"",
|
|
|
currtHomeworkStatus:"",
|
|
|
FindSubjectCharts:[],
|
|
@@ -132,8 +133,11 @@ const user = {
|
|
|
SET_ERROR_WARING:(state,errorWarningList) => {
|
|
|
state.errorWarningList = errorWarningList
|
|
|
},
|
|
|
+ SET_GET_REMIND_COUNT:(state,getRemindCount) => {
|
|
|
+ state.getRemindCount = getRemindCount
|
|
|
+ },
|
|
|
SET_ERROR_DETAIL:(state,errorDetailList) => {
|
|
|
- console.log(errorDetailList)
|
|
|
+ // console.log(errorDetailList)
|
|
|
state.errorDetailList = errorDetailList
|
|
|
},
|
|
|
SET_ERROR_INDEX:(state,pictureIndex) => {
|
|
@@ -683,6 +687,19 @@ const user = {
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
+ //获取提醒次数
|
|
|
+ GetRemindCountInfo({ commit, state }, data) {
|
|
|
+ // debugger
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
+ axios.post(GetRemindCount, data).then(response => {
|
|
|
+ const data = response.data || { }
|
|
|
+ commit('SET_GET_REMIND_COUNT', data);
|
|
|
+ resolve(response)
|
|
|
+ }).catch(error => {
|
|
|
+ reject(error)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
// 登出getTeacherSalaryList
|
|
|
LogOut({ commit, state }, data) {
|
|
|
return new Promise((resolve, reject) => {
|