|
@@ -3,7 +3,7 @@ import { GET_UUIONID_TOKEN,GET_TOKEN,GetInfo,InfoWatch,InfoWatchDay,
|
|
|
TeacherAllot,UnallotHomeworkList,GetTeacherDetail,
|
|
|
GetStudentDetail,GetManagerDetail,Downgrade,SuperManagerList,
|
|
|
SuperApplyTeacherList,ApplyOperate,GetTeacherSalaryList,DealCorrectTeacher,
|
|
|
- GetAllotManagerList,AllotTeacherToManager,HomeworkRecoveryList,errorWarning,errorDetail,logout
|
|
|
+ GetAllotManagerList,AllotTeacherToManager,HomeworkRecoveryList,GetRemindCount,errorWarning,errorDetail,logout
|
|
|
} from '@/api'
|
|
|
import { APPOR_BASE_URL } from '@/ImgConfig'
|
|
|
import { getToken, setToken, removeToken } from '@/utils/auth'
|
|
@@ -39,6 +39,7 @@ const user = {
|
|
|
pictureIndex:0,
|
|
|
InfoTeacherstatues:"",
|
|
|
GetTeacherstatues:"",
|
|
|
+ getRemindCount:"",
|
|
|
},
|
|
|
|
|
|
mutations: {
|
|
@@ -123,8 +124,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) => {
|
|
@@ -595,6 +599,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) => {
|