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
c64f6c35
Commit
c64f6c35
authored
Aug 16, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'sada'
parent
b3e9eca8
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
41 additions
and
60 deletions
+41
-60
SjdMenu.js
src/components/SjdMenu.js
+2
-2
classdetail.js
src/models/classdetail.js
+2
-2
classmgt.js
src/models/classmgt.js
+11
-11
plancourse.js
src/models/plancourse.js
+1
-0
studentclass.js
src/models/studentclass.js
+1
-1
students.js
src/models/students.js
+1
-19
webapp.js
src/models/webapp.js
+0
-1
index.js
src/pages/classdetail/index.js
+2
-2
EditClassModal.js
src/pages/classmgt/EditClassModal.js
+0
-1
index.js
src/pages/classmgt/index.js
+6
-7
index.js
src/pages/student/index.js
+0
-1
index.js
src/pages/studentinfo/index.js
+15
-13
No files found.
src/components/SjdMenu.js
View file @
c64f6c35
...
...
@@ -70,7 +70,7 @@ class SjdMenu extends React.Component {
<
Menu
.
Item
key
=
{
ele
.
id
}
style
=
{
menuItemStyle
}
onClick
=
{()
=>
this
.
selectedMenu
(
ele
.
id
,
null
)}
>
<
div
className
=
{
SjdMenuStyle
.
menuicon
}
style
=
{
defaultMenu
==
ele
.
id
?
{
width
:
ele
.
style
.
width
,
height
:
ele
.
style
.
height
,
backgroundImage
:
`url(
${
ele
.
activeurl
}
)`
}
:
{
width
:
ele
.
style
.
width
,
height
:
ele
.
style
.
height
,
backgroundImage
:
`url(
${
ele
.
notactiveurl
}
)`
}}
/
>
<
Icon
style
=
{{
width
:
0
,
minWidth
:
'initial'
}}
/
>
<
span
>
{
ele
.
name
}
{
defaultMenu
==
ele
.
id
&&
'dui'
}
<
/span
>
<
span
>
{
ele
.
name
}
<
/span
>
<
/Menu.Item>
:
<
SubMenu
key
=
"sub1"
...
...
@@ -86,7 +86,7 @@ class SjdMenu extends React.Component {
<
Menu
.
Item
key
=
{
submenu
.
id
}
style
=
{
menuItemStyle
}
onClick
=
{()
=>
this
.
selectedMenu
(
submenu
.
id
,
submenu
.
fatherId
)}
>
<
div
className
=
{
SjdMenuStyle
.
menuicon
}
style
=
{
defaultMenu
==
submenu
.
id
?
{
width
:
submenu
.
style
.
width
,
height
:
submenu
.
style
.
height
,
backgroundImage
:
`url(
${
submenu
.
activeurl
}
)`
}
:
{
width
:
submenu
.
style
.
width
,
height
:
submenu
.
style
.
height
,
backgroundImage
:
`url(
${
submenu
.
notactiveurl
}
)`
}}
/
>
<
Icon
style
=
{{
width
:
0
,
minWidth
:
'initial'
}}
/
>
<
span
>
{
submenu
.
name
}
{
defaultMenu
==
submenu
.
id
&&
'dui'
}
<
/span
>
<
span
>
{
submenu
.
name
}
<
/span
>
<
/Menu.Item
>
))}
<
/SubMenu
>
...
...
src/models/classdetail.js
View file @
c64f6c35
...
...
@@ -91,7 +91,7 @@ export default {
teacher_id
:
''
,
course_id
:
''
,
class_room_id
:
''
,
status
:
0
,
graduation_
status
:
0
,
assign_class_status
:
0
,
extra
:
'course,class_room'
,
student_id
:
''
,
...
...
@@ -538,7 +538,7 @@ export default {
const
newClassListQueryParams
=
Object
.
assign
(
classListQueryParams
,
params
,
{
school_id
:
sid
,
course_id
:
classDetail
.
course_id
,
status
:
1
,
graduation_
status
:
1
,
exclude_class_id
:
classId
,
// teacher_id: 77,
});
...
...
src/models/classmgt.js
View file @
c64f6c35
...
...
@@ -44,7 +44,7 @@ export default {
teacher_id
:
''
,
course_id
:
''
,
class_room_id
:
''
,
status
:
0
,
graduation_
status
:
0
,
assign_class_status
:
0
,
extra
:
'course,class_room'
,
student_id
:
''
,
...
...
@@ -58,7 +58,7 @@ export default {
teacher_id
:
''
,
course_id
:
''
,
class_room_id
:
''
,
status
:
0
,
graduation_
status
:
0
,
assign_class_status
:
0
,
extra
:
'course,class_room'
,
student_id
:
''
,
...
...
@@ -72,7 +72,7 @@ export default {
teacher_id
:
''
,
course_id
:
''
,
class_room_id
:
''
,
status
:
1
,
graduation_
status
:
1
,
assign_class_status
:
0
,
extra
:
'course,class_room'
,
student_id
:
''
,
...
...
@@ -86,7 +86,7 @@ export default {
teacher_id
:
''
,
course_id
:
''
,
class_room_id
:
''
,
status
:
1
,
graduation_
status
:
1
,
assign_class_status
:
0
,
extra
:
'course,class_room'
,
student_id
:
''
,
...
...
@@ -410,7 +410,7 @@ export default {
teacher_id
:
''
,
course_id
:
''
,
class_room_id
:
''
,
status
:
0
,
graduation_
status
:
0
,
assign_class_status
:
0
,
extra
:
'course,class_room'
,
student_id
:
''
,
...
...
@@ -429,7 +429,7 @@ export default {
teacher_id
:
''
,
course_id
:
''
,
class_room_id
:
''
,
status
:
0
,
graduation_
status
:
0
,
assign_class_status
:
0
,
extra
:
'course,class_room'
,
student_id
:
''
,
...
...
@@ -451,7 +451,7 @@ export default {
teacher_id
:
''
,
course_id
:
''
,
class_room_id
:
''
,
status
:
0
,
graduation_
status
:
0
,
assign_class_status
:
0
,
extra
:
'course,class_room'
,
student_id
:
''
,
...
...
@@ -470,7 +470,7 @@ export default {
teacher_id
:
''
,
course_id
:
''
,
class_room_id
:
''
,
status
:
0
,
graduation_
status
:
0
,
assign_class_status
:
0
,
extra
:
'course,class_room'
,
student_id
:
''
,
...
...
@@ -614,7 +614,7 @@ export default {
*
saveStatusChange
({
payload
},
{
call
,
put
,
select
})
{
const
{
selectedClasskey
,
selectedClass
,
statusChangeSubmitting
}
=
yield
select
(
state
=>
state
.
classmgt
);
const
{
sid
}
=
yield
select
(
state
=>
state
.
webapp
);
const
{
status
}
=
payload
;
const
{
graduation_
status
}
=
payload
;
if
(
selectedClasskey
.
length
==
0
)
{
message
.
warn
(
'请选择需要结业的班级'
,
1
);
return
;
...
...
@@ -631,7 +631,7 @@ export default {
const
changeClassStatusData
=
yield
call
(
classMgtAjax
.
changeClassStatus
,
{
ids
:
selectedClass
.
map
(
ele
=>
ele
.
id
).
join
(
','
),
school_id
:
sid
,
status
,
graduation_
status
,
});
yield
put
({
type
:
'updateState'
,
...
...
@@ -661,7 +661,7 @@ export default {
},
},
});
message
.
success
(
status
==
1
?
'撤销结业成功'
:
'结业成功'
,
1
);
message
.
success
(
graduation_
status
==
1
?
'撤销结业成功'
:
'结业成功'
,
1
);
}
else
{
message
.
error
(
changeClassStatusData
.
msg
,
1
);
}
...
...
src/models/plancourse.js
View file @
c64f6c35
...
...
@@ -338,6 +338,7 @@ export default {
perPage
:
1000
,
type
:
1
,
school_id
:
sid
,
graduation_status
:
1
,
});
if
(
classListdata
.
code
==
200
)
{
yield
put
({
...
...
src/models/studentclass.js
View file @
c64f6c35
...
...
@@ -258,7 +258,7 @@ export default {
school_id
:
sid
,
page
:
1
,
perPage
:
1000
,
status
:
1
,
graduation_
status
:
1
,
course_id
:
selectedCourse
.
course_id
,
title
,
});
...
...
src/models/students.js
View file @
c64f6c35
...
...
@@ -616,27 +616,12 @@ export default {
*
queryClassList
({
payload
},
{
call
,
put
,
select
})
{
const
{
params
,
action
}
=
payload
;
const
{
sid
}
=
yield
select
(
state
=>
state
.
webapp
);
const
{
classListQueryParams
,
classListTotal
,
searching
}
=
yield
select
(
state
=>
state
.
classmgt
);
if
(
action
==
'search'
)
{
if
(
searching
)
{
return
;
}
yield
put
({
type
:
'updateState'
,
payload
:
{
searching
:
true
,
},
});
}
let
newClassListTotal
=
classListTotal
;
const
loading
=
message
.
loading
(
'数据加载中...'
,
1
);
const
newClassListQueryParams
=
Object
.
assign
(
classListQueryParams
,
params
,
{
const
classListData
=
yield
call
(
classMgtAjax
.
getClassList
,
{
school_id
:
sid
,
page
:
1
,
perPage
:
1000
,
// teacher_id: 77,
});
const
classListData
=
yield
call
(
classMgtAjax
.
getClassList
,
newClassListQueryParams
);
setTimeout
(
loading
);
if
(
action
==
'search'
)
{
yield
put
({
...
...
@@ -647,9 +632,6 @@ export default {
});
}
if
(
classListData
.
code
==
200
)
{
if
(
classListData
.
data
.
total
!=
undefined
)
{
newClassListTotal
=
classListData
.
data
.
total
;
}
yield
put
({
type
:
'updateState'
,
payload
:
{
...
...
src/models/webapp.js
View file @
c64f6c35
...
...
@@ -559,7 +559,6 @@ export default {
}
}
menueSearch
(
menus
);
console
.
log
(
newDefaultMenu
,
'newDefaultMenu'
);
yield
put
({
type
:
'updateState'
,
payload
:
{
...
...
src/pages/classdetail/index.js
View file @
c64f6c35
...
...
@@ -346,7 +346,7 @@ class ClassDetailForm extends React.Component {
}
toAddClassStudent
=
()
=>
{
const
{
dispatch
,
classDetail
}
=
this
.
props
;
if
(
classDetail
.
status
==
2
)
{
if
(
classDetail
.
graduation_
status
==
2
)
{
message
.
warn
(
'班级已结业,不能添加班级!'
,
0.5
);
return
;
}
...
...
@@ -688,7 +688,7 @@ class ClassDetailForm extends React.Component {
}
goPlanCourse
=
()
=>
{
const
{
dispatch
,
classDetail
,
classId
}
=
this
.
props
;
if
(
classDetail
.
status
==
2
)
{
if
(
classDetail
.
graduation_
status
==
2
)
{
message
.
error
(
'已结业班级不能排课'
);
return
;
}
...
...
src/pages/classmgt/EditClassModal.js
View file @
c64f6c35
...
...
@@ -14,7 +14,6 @@ class EditClassModal extends React.Component {
componentWillMount
()
{
}
componentDidUpdate
()
{
console
.
log
(
this
.
props
.
editClassInfo
.
title
,
'this.props.editClassInfo.title'
);
}
componentWillUpdate
()
{
...
...
src/pages/classmgt/index.js
View file @
c64f6c35
...
...
@@ -264,7 +264,7 @@ class ClassMgtForm extends React.Component {
dispatch
({
type
:
'classmgt/saveStatusChange'
,
payload
:
{
status
:
2
,
graduation_
status
:
2
,
},
});
}
...
...
@@ -283,7 +283,7 @@ class ClassMgtForm extends React.Component {
dispatch
({
type
:
'classmgt/saveStatusChange'
,
payload
:
{
status
:
2
,
graduation_
status
:
2
,
},
});
},
...
...
@@ -313,7 +313,7 @@ class ClassMgtForm extends React.Component {
dispatch
({
type
:
'classmgt/saveStatusChange'
,
payload
:
{
status
:
1
,
graduation_
status
:
1
,
},
});
},
...
...
@@ -351,7 +351,6 @@ class ClassMgtForm extends React.Component {
const
{
dispatch
}
=
this
.
props
;
const
thisColumns
=
JSON
.
parse
(
JSON
.
stringify
(
columns
));
thisColumns
.
splice
(
columns
.
length
-
1
,
1
);
console
.
log
(
thisColumns
,
'thisColumns'
);
dispatch
({
type
:
'classmgt/exportClassListExcel'
,
payload
:
{
...
...
@@ -453,8 +452,8 @@ class ClassMgtForm extends React.Component {
<
span
className
=
{
pageStyle
.
divideline
}
>|<
/span
>
<
a
className
=
{
pageStyle
.
alink
}
href
=
"javascript:;"
onClick
=
{()
=>
this
.
goClassDetail
(
record
,
3
)}
>
点名
<
/a
>
<
span
className
=
{
pageStyle
.
divideline
}
>|<
/span
>
{
record
.
status
==
2
&&
<
a
className
=
{
pageStyle
.
alink
}
onClick
=
{()
=>
this
.
singleResetClassStatusChange
(
record
)}
href
=
"javascript:;"
>
已结业
<
/a>
}
{
record
.
status
==
1
&&
<
a
className
=
{
pageStyle
.
alink
}
href
=
"javascript:;"
onClick
=
{()
=>
this
.
singleClassStatusChange
(
record
)}
>
结业
<
/a>
}
{
record
.
graduation_
status
==
2
&&
<
a
className
=
{
pageStyle
.
alink
}
onClick
=
{()
=>
this
.
singleResetClassStatusChange
(
record
)}
href
=
"javascript:;"
>
已结业
<
/a>
}
{
record
.
graduation_
status
==
1
&&
<
a
className
=
{
pageStyle
.
alink
}
href
=
"javascript:;"
onClick
=
{()
=>
this
.
singleClassStatusChange
(
record
)}
>
结业
<
/a>
}
<
/div
>
);
},
...
...
@@ -508,7 +507,7 @@ class ClassMgtForm extends React.Component {
<
/Col
>
<
Col
className
=
{
pageStyle
.
formitem
}
xs
=
{{
span
:
12
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
>
<
div
className
=
{
pageStyle
.
formitemlabel
}
>
结业状态
<
/div
>
<
Select
className
=
{
pageStyle
.
selectitem
}
value
=
{
copyClassListQueryParams
.
status
}
onChange
=
{
e
=>
this
.
searchParamsChange
(
e
,
'Select'
,
'
status'
)}
placeholder
=
"请选择结业状态"
>
<
Select
className
=
{
pageStyle
.
selectitem
}
value
=
{
copyClassListQueryParams
.
graduation_status
}
onChange
=
{
e
=>
this
.
searchParamsChange
(
e
,
'Select'
,
'graduation_
status'
)}
placeholder
=
"请选择结业状态"
>
<
Option
value
=
{
0
}
>
全部状态
<
/Option
>
<
Option
value
=
{
1
}
>
未结业
<
/Option
>
<
Option
value
=
{
2
}
>
已结业
<
/Option
>
...
...
src/pages/student/index.js
View file @
c64f6c35
...
...
@@ -463,7 +463,6 @@ class StudentMgt extends React.Component {
<
EliminateEdit
studentinfo
=
{
selectdeStudent
}
courseList
=
{
courseList
}
classList
=
{
classList
}
teacherList
=
{
teacherList
}
editClassInfo
=
{
editClassInfo
}
wrappedComponentRef
=
{
this
.
saveFormRef
}
...
...
src/pages/studentinfo/index.js
View file @
c64f6c35
...
...
@@ -374,19 +374,6 @@ class StudentMgt extends React.Component {
);
},
},
{
title
:
'班级名称'
,
dataIndex
:
'class'
,
key
:
'class'
,
render
:
(
text
,
record
,
index
)
=>
{
return
(
<
div
className
=
{
pageStyle
.
classNamebox
}
>
{
record
.
classes
.
length
==
0
&&
'无'
}
{
record
.
classes
.
length
>
0
&&
record
.
classes
.
map
(
ele
=>
(
<
div
>
{
ele
.
title
}
<
/div>
))
}
<
/div
>
);
},
},
{
title
:
'购买课时'
,
dataIndex
:
'buy'
,
...
...
@@ -461,6 +448,21 @@ class StudentMgt extends React.Component {
},
},
];
if
(
currentCourseQueryParams
.
type
==
1
)
{
columns
.
splice
(
1
,
0
,
{
title
:
'班级名称'
,
dataIndex
:
'class'
,
key
:
'class'
,
render
:
(
text
,
record
,
index
)
=>
{
return
(
<
div
className
=
{
pageStyle
.
classNamebox
}
>
{
record
.
classes
.
length
==
0
&&
'无'
}
{
record
.
classes
.
length
>
0
&&
record
.
classes
.
map
(
ele
=>
(
<
div
>
{
ele
.
title
}
<
/div>
))
}
<
/div
>
);
},
});
}
return
(
<
div
className
=
{
pageStyle
.
container
}
>
<
Modal
...
...
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