Commit 81353fa4 authored by sujie@126.com's avatar sujie@126.com

dd

parent 9e3cbdc6
......@@ -52,10 +52,12 @@ export default {
* goSchoolSystem({ payload }, { call, put, select }) {
const { school } = payload;
LocalStorage.setItem('sid', school.id);
LocalStorage.setItem('role', school.school_teacher.type);
yield put({
type: 'webapp/updateState',
payload: {
sid: school.id,
role: school.school_teacher.type,
},
});
yield put(routerRedux.push({
......
......@@ -32,6 +32,7 @@ export default {
dakarole: LocalStorage.getItem('dakarole') || 1,
screenIsBig: true,
breadcrumbList: [],
role: LocalStorage.getItem('role') || 3,
},
subscriptions: {
setup({ dispatch, history }) {
......
......@@ -31,6 +31,7 @@ class EditClassModal extends React.Component {
const {
form, save, isEdit, editClassInfo,
} = this.props;
// console.log(121212);
form.validateFields((err, values) => {
if (!err) {
if (isEdit == 1 && values.capacity < editClassInfo.class_student_count) {
......@@ -157,6 +158,7 @@ class EditClassModal extends React.Component {
if (value <= editClassInfo.class_student_count) {
callback('班级容量不能小于学员数');
}
callback();
return;
}
if (value > 9999) {
......
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