Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
biz.qingxiao.com
Commits
81353fa4
Commit
81353fa4
authored
Aug 16, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
9e3cbdc6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
0 deletions
+5
-0
schoollist.js
src/models/schoollist.js
+2
-0
webapp.js
src/models/webapp.js
+1
-0
EditClassModal.js
src/pages/classmgt/EditClassModal.js
+2
-0
No files found.
src/models/schoollist.js
View file @
81353fa4
...
...
@@ -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
({
...
...
src/models/webapp.js
View file @
81353fa4
...
...
@@ -32,6 +32,7 @@ export default {
dakarole
:
LocalStorage
.
getItem
(
'dakarole'
)
||
1
,
screenIsBig
:
true
,
breadcrumbList
:
[],
role
:
LocalStorage
.
getItem
(
'role'
)
||
3
,
},
subscriptions
:
{
setup
({
dispatch
,
history
})
{
...
...
src/pages/classmgt/EditClassModal.js
View file @
81353fa4
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment