Commit 41fa34dc authored by baixian's avatar baixian

老师选班优化

parent 17a6b335
......@@ -776,9 +776,7 @@ export default {
},
* calculatecalendar({ payload }, { call, put, select }) {
const { currentTimestamp, judgetodaycurrentTimestamp } = payload;
console.log(payload, 'payload');
const calendarData = calendar(currentTimestamp, judgetodaycurrentTimestamp);
console.log(calendarData, 'calendarData');
yield put({
type: 'updateState',
payload: {
......
......@@ -380,6 +380,20 @@ export default {
const { class_ids, callBack } = value;
const { teacher_id, submitting } = yield select(state => state.teachers);
const { sid } = yield select(state => state.webapp);
if (class_ids === undefined) {
yield put({
type: 'updateState',
payload: {
chooseClassVisible: false,
teacher_id: 0,
allClassList: [],
},
});
if (callBack && (typeof callBack == 'function')) {
callBack();
}
return;
}
if (submitting) {
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment