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
64701e32
Commit
64701e32
authored
Aug 28, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
f5732058
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
15 additions
and
7 deletions
+15
-7
index.html
index.html
+1
-1
classdetail.js
src/models/classdetail.js
+5
-4
students.js
src/models/students.js
+6
-0
index.js
src/pages/classdetail/index.js
+2
-1
index.js
src/pages/student/index.js
+1
-1
No files found.
index.html
View file @
64701e32
<!DOCTYPE html>
<html
lang=
"en"
><head><meta
charset=
"UTF-8"
><title>
轻校
</title><link
rel=
"shortcut icon"
href=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/image/qxlogo4.png"
><meta
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0;"
name=
"viewport"
><meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<!-- Polyfills --><!--[if lt IE 10]>
<script src="js/console-polyfill.js"></script>
<![endif]-->
<script
charset=
"utf-8"
src=
"https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"
></script><link
href=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.css?1566960499504"
rel=
"stylesheet"
><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?3"
charset=
"utf-8"
></script></head><body><div
id=
"root"
></div><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.js?1566960499504"
charset=
"utf-8"
></script></body></html>
\ No newline at end of file
<![endif]-->
<script
charset=
"utf-8"
src=
"https://map.qq.com/api/js?v=2.exp&key=XSZBZ-5LHCV-5I2P7-UQHPW-6456F-JBB3B"
></script><link
href=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.css?1566964777897"
rel=
"stylesheet"
><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/lib/vendor.dll.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/console-polyfill.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es6-shim.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-shim.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/es5-sham.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/json3.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/html5shiv.min.js?3"
charset=
"utf-8"
></script><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/js/polyfill.js?3"
charset=
"utf-8"
></script></head><body><div
id=
"root"
></div><script
src=
"https://cdn.img.shangjiadao.cn/qingxiao/biz/dist/index.js?1566964777897"
charset=
"utf-8"
></script></body></html>
\ No newline at end of file
src/models/classdetail.js
View file @
64701e32
...
...
@@ -743,6 +743,10 @@ export default {
const
{
classId
,
addStudentSubmitting
,
classDetail
,
selectedToAddClassKey
,
selectedToAddClassRow
,
}
=
yield
select
(
state
=>
state
.
classdetail
);
if
(
selectedToAddClassRow
.
length
==
0
)
{
message
.
error
(
'请选择您要添加的学员'
,
1
);
return
;
}
if
(
addStudentSubmitting
)
{
return
;
}
...
...
@@ -752,10 +756,6 @@ export default {
addStudentSubmitting
:
true
,
},
});
if
(
selectedToAddClassRow
.
length
==
0
)
{
message
.
error
(
'请选择您要添加的学员'
,
1
);
return
;
}
const
student_ids
=
selectedToAddClassRow
.
map
(
ele
=>
ele
.
id
).
join
(
','
);
const
addStudentToClassData
=
yield
call
(
classMgtAjax
.
addStudentToClass
,
{
class_id
:
classId
,
...
...
@@ -795,6 +795,7 @@ export default {
type
:
'updateState'
,
payload
:
{
addClassStudentModalShow
:
false
,
toAddStudentSearchName
:
''
,
},
});
yield
put
({
...
...
src/models/students.js
View file @
64701e32
...
...
@@ -64,6 +64,7 @@ export default {
page
:
1
,
perPage
:
10
,
keyword
:
''
,
keyword_any
:
''
,
course_id
:
''
,
class_id
:
''
,
student_status
:
''
,
...
...
@@ -83,6 +84,7 @@ export default {
page
:
1
,
perPage
:
10
,
keyword
:
''
,
keyword_any
:
''
,
course_id
:
''
,
class_id
:
''
,
student_status
:
''
,
...
...
@@ -255,6 +257,7 @@ export default {
birthday_start
:
''
,
birthday_end
:
''
,
birthday_day
:
''
,
keyword_any
:
''
,
},
},
});
...
...
@@ -267,6 +270,7 @@ export default {
page
:
1
,
perPage
:
10
,
keyword
:
''
,
keyword_any
:
''
,
course_id
:
''
,
class_id
:
''
,
student_status
:
''
,
...
...
@@ -920,6 +924,7 @@ export default {
page
:
1
,
perPage
:
10
,
keyword
:
''
,
keyword_any
:
''
,
course_id
:
''
,
class_id
:
''
,
student_status
:
''
,
...
...
@@ -939,6 +944,7 @@ export default {
page
:
1
,
perPage
:
10
,
keyword
:
''
,
keyword_any
:
''
,
course_id
:
''
,
class_id
:
''
,
student_status
:
''
,
...
...
src/pages/classdetail/index.js
View file @
64701e32
...
...
@@ -375,6 +375,7 @@ class ClassDetailForm extends React.Component {
type
:
'classdetail/updateState'
,
payload
:
{
addClassStudentModalShow
:
false
,
toAddStudentSearchName
:
''
,
},
});
dispatch
({
...
...
@@ -1617,7 +1618,7 @@ class ClassDetailForm extends React.Component {
>
<
Row
gutter
=
{
21
}
>
<
Col
lg
=
{{
span
:
8
}}
md
=
{{
span
:
12
}}
xs
=
{{
span
:
24
}}
className
=
{
pageStyle
.
endsearchcol
}
>
<
Input
placeholder
=
"搜索学员"
value
=
{
toAddStudentSearchName
}
allowClear
onChange
=
{
this
.
toAddStudentSearchNameChange
}
suffix
=
{
<
Icon
type
=
"search"
/>
}
/
>
<
Input
placeholder
=
"搜索学员
姓名
"
value
=
{
toAddStudentSearchName
}
allowClear
onChange
=
{
this
.
toAddStudentSearchNameChange
}
suffix
=
{
<
Icon
type
=
"search"
/>
}
/
>
<
/Col
>
<
Col
lg
=
{{
span
:
8
}}
md
=
{{
span
:
12
}}
xs
=
{{
span
:
24
}}
className
=
{
pageStyle
.
endsearchcol
}
>
<
Button
type
=
"primary"
style
=
{{
marginRight
:
'15px'
}}
onClick
=
{
this
.
searchToAddStudent
}
>
搜索
<
/Button
>
...
...
src/pages/student/index.js
View file @
64701e32
...
...
@@ -653,7 +653,7 @@ class StudentMgt extends React.Component {
>
<
Col
className
=
{
pageStyle
.
formitem
}
xs
=
{{
span
:
12
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
>
<
div
className
=
{
pageStyle
.
formitemlabel
}
>
搜索学员
<
/div
>
<
Input
placeholder
=
"请输入学员姓名或手机号"
value
=
{
searchstudentListQueryParams
.
keyword
}
onChange
=
{
e
=>
this
.
searchParamsChange
(
e
,
'Input'
,
'keyword
'
)}
/
>
<
Input
placeholder
=
"请输入学员姓名或手机号"
value
=
{
searchstudentListQueryParams
.
keyword
_any
}
onChange
=
{
e
=>
this
.
searchParamsChange
(
e
,
'Input'
,
'keyword_any
'
)}
/
>
<
/Col
>
<
Col
className
=
{
pageStyle
.
formitem
}
xs
=
{{
span
:
12
}}
sm
=
{{
span
:
12
}}
md
=
{{
span
:
12
}}
lg
=
{{
span
:
6
}}
>
<
div
className
=
{
pageStyle
.
formitemlabel
}
>
报读课程
<
/div
>
...
...
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