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
4e0f3ef1
Commit
4e0f3ef1
authored
Aug 28, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'erp搜索临时学员和补课学员BUG修改'
parent
64701e32
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
126 additions
and
43 deletions
+126
-43
.eslintrc
.eslintrc
+2
-1
.webpackrc.js
.webpackrc.js
+2
-0
api.js
src/common/api.js
+11
-2
CallStudents.js
src/components/CallStudents.js
+92
-22
SjdMenu.js
src/components/SjdMenu.js
+2
-1
callstudents.js
src/models/callstudents.js
+10
-5
classdetail.js
src/models/classdetail.js
+1
-1
SjdIndex.js
src/pages/SjdIndex.js
+0
-5
index.js
src/pages/classdetail/index.js
+1
-1
index.js
src/pages/institutions/index.js
+5
-5
No files found.
.eslintrc
View file @
4e0f3ef1
...
...
@@ -20,7 +20,8 @@
"globals" : {
"_CDN_": true,
"__IMGCDN__": true,
"qq": true
"qq": true,
"ENVIRONMENT": true
},
"rules":{
"import/newline-after-import": 0,
...
...
.webpackrc.js
View file @
4e0f3ef1
...
...
@@ -4,12 +4,14 @@ export default {
"development"
:
{
define
:
{
'_CDN_'
:
''
,
'ENVIRONMENT'
:
'dev'
,
// '__IMGCDN__': 'http://wxloss.oss-cn-hangzhou.aliyuncs.com/qingxiaobiz/'
'__IMGCDN__'
:
'https://cdn.img.shangjiadao.cn/qingxiao/biz/image/'
}
},
"production"
:
{
define
:
{
'ENVIRONMENT'
:
'pro'
,
'_CDN_'
:
''
,
'__IMGCDN__'
:
'https://cdn.img.shangjiadao.cn/qingxiao/biz/image/'
}
...
...
src/common/api.js
View file @
4e0f3ef1
import
{
pathify
}
from
'../utils/index'
;
const
{
location
}
=
window
;
const
basepath
=
`
${
location
.
protocol
}
//
${
pathify
(
window
.
location
.
host
)}
/`
;
let
api
=
''
;
let
dakaapi
=
''
;
if
(
ENVIRONMENT
==
'pro'
)
{
api
=
'https://wx.m.shangjiadao.cn/v2/api/'
;
dakaapi
=
'https://qxapi.qingxiao.online/daka/v3/'
;
}
else
if
(
ENVIRONMENT
==
'dev'
)
{
api
=
'https://test.wp53.cn/v2/api/'
;
dakaapi
=
'https:clock.wp53.cn/v3/'
;
}
// const api = 'https://test.wp53.cn/v2/api/';
// const dakaapi = 'https:clock.wp53.cn/v3/';
const
api
=
'https://wx.m.shangjiadao.cn/v2/api/'
;
const
dakaapi
=
'https://qxapi.qingxiao.online/daka/v3/'
;
//
const api = 'https://wx.m.shangjiadao.cn/v2/api/';
//
const dakaapi = 'https://qxapi.qingxiao.online/daka/v3/';
export
default
{
userRegister
:
`
${
api
}
service/user/register`
,
getVerifyCode
:
`
${
api
}
service/user/verify_code`
,
...
...
src/components/CallStudents.js
View file @
4e0f3ef1
...
...
@@ -165,13 +165,9 @@ class CallStudentsForm extends React.Component {
type
:
'callstudents/updateState'
,
payload
:
{
linshiStudentModalShow
:
false
,
},
});
dispatch
({
type
:
'callstudents/updateState'
,
payload
:
{
selectedLinshiClassKey
:
[],
selectedLinshiClassRow
:
[],
linshiStudentSearchName
:
''
,
},
});
}
...
...
@@ -185,13 +181,6 @@ class CallStudentsForm extends React.Component {
selectedbukeClassRow
:
[],
},
});
// dispatch({
// type: 'callstudents/updateState',
// payload: {
// selectedbukeClassKey: [],
// selectedbukeClassRow: [],
// },
// });
}
addbukeStudent
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
...
...
@@ -206,6 +195,7 @@ class CallStudentsForm extends React.Component {
payload
:
{
params
:
{
page
:
1
,
keyword
:
''
,
},
},
});
...
...
@@ -223,10 +213,30 @@ class CallStudentsForm extends React.Component {
payload
:
{
params
:
{
page
:
1
,
keyword
:
''
,
},
},
});
}
searchToAddStudent
=
()
=>
{
const
{
linshiStudentSearchName
,
dispatch
}
=
this
.
props
;
dispatch
({
type
:
'callstudents/queryLinShiStudentList'
,
payload
:
{
params
:
{
page
:
1
,
keyword
:
linshiStudentSearchName
,
},
},
});
dispatch
({
type
:
'callstudents/updateState'
,
payload
:
{
selectedLinshiClassKey
:
[],
selectedLinshiClassRow
:
[],
},
});
}
onLinShiStudentSelectChange
=
(
selectedRowKeys
,
selectedRows
)
=>
{
const
{
dispatch
}
=
this
.
props
;
dispatch
({
...
...
@@ -252,13 +262,6 @@ class CallStudentsForm extends React.Component {
dispatch
({
type
:
'callstudents/sureaddLinShiStudent'
,
});
// dispatch({
// type: 'callstudents/updateState',
// payload: {
// selectedLinshiClassKey: [],
// selectedLinshiClassRow: [],
// },
// });
}
sureaddbukeStudent
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
...
...
@@ -295,6 +298,72 @@ class CallStudentsForm extends React.Component {
},
});
}
searchbukeStudent
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
dispatch
({
type
:
'callstudents/updateState'
,
payload
:
{
selectedbukeClassKey
:
[],
selectedbukeClassRow
:
[],
},
});
dispatch
({
type
:
'callstudents/querybukeStudentList'
,
payload
:
{
params
:
{
page
:
1
,
},
},
});
}
bukeStudentsizeChange
=
(
page
,
perPage
)
=>
{
const
{
dispatch
}
=
this
.
props
;
dispatch
({
type
:
'callstudents/querybukeStudentList'
,
payload
:
{
params
:
{
page
:
1
,
perPage
,
},
},
});
}
changebukeStudentPagination
=
(
page
,
perPage
)
=>
{
const
{
dispatch
}
=
this
.
props
;
dispatch
({
type
:
'callstudents/querybukeStudentList'
,
payload
:
{
params
:
{
page
,
perPage
,
},
},
});
}
linshiStudentsizeChange
=
(
page
,
perPage
)
=>
{
const
{
dispatch
}
=
this
.
props
;
dispatch
({
type
:
'callstudents/queryLinShiStudentList'
,
payload
:
{
params
:
{
page
,
perPage
,
},
},
});
}
changeLinshiStudentPagination
=
(
page
,
perPage
)
=>
{
const
{
dispatch
}
=
this
.
props
;
dispatch
({
type
:
'callstudents/queryLinShiStudentList'
,
payload
:
{
params
:
{
page
,
perPage
,
},
},
});
}
render
()
{
const
{
callStudentsShow
,
...
...
@@ -667,6 +736,7 @@ class CallStudentsForm extends React.Component {
value
=
{
linshiStudentSearchName
}
onChange
=
{
this
.
linshiStudentSearchNameChange
}
suffix
=
{
<
Icon
type
=
"search"
/>
}
allowClear
/>
<
/Col
>
<
Col
lg
=
{{
span
:
8
}}
md
=
{{
span
:
12
}}
xs
=
{{
span
:
24
}}
className
=
{
pageStyle
.
endsearchcol
}
>
...
...
@@ -685,9 +755,9 @@ class CallStudentsForm extends React.Component {
<
Pagination
showSizeChanger
showQuickJumper
onShowSizeChange
=
{
this
.
toAddClass
StudentsizeChange
}
onShowSizeChange
=
{
this
.
linshi
StudentsizeChange
}
total
=
{
Number
(
linshiStudentTotal
)}
onChange
=
{
this
.
change
ToAddClass
StudentPagination
}
onChange
=
{
this
.
change
Linshi
StudentPagination
}
current
=
{
Number
(
queryLinshiStudentListParams
.
page
)
||
1
}
pageSize
=
{
queryLinshiStudentListParams
.
perPage
}
/
>
...
...
@@ -717,7 +787,7 @@ class CallStudentsForm extends React.Component {
>
<
Row
gutter
=
{
21
}
>
<
Col
lg
=
{{
span
:
8
}}
md
=
{{
span
:
12
}}
xs
=
{{
span
:
24
}}
className
=
{
pageStyle
.
endsearchcol
}
>
<
Input
placeholder
=
"搜索学员"
value
=
{
bukeStudentSearchName
}
onChange
=
{
this
.
bukeStudentSearchNameChange
}
suffix
=
{
<
Icon
type
=
"search"
/>
}
/
>
<
Input
placeholder
=
"搜索学员"
value
=
{
bukeStudentSearchName
}
allowClear
onChange
=
{
this
.
bukeStudentSearchNameChange
}
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
.
searchbukeStudent
}
>
搜索
<
/Button
>
...
...
src/components/SjdMenu.js
View file @
4e0f3ef1
...
...
@@ -95,7 +95,8 @@ class SjdMenu extends React.Component {
className
=
{
`
${
SjdMenuStyle
.
menusider
}
menusider`
}
>
<
div
>
<
div
className
=
{
collapsed
?
SjdMenuStyle
.
collapsedlogo
:
SjdMenuStyle
.
uncollapsedlogo
}
onClick
=
{
this
.
goHome
}
/
>
{
/* <div className={collapsed ? SjdMenuStyle.collapsedlogo : SjdMenuStyle.uncollapsedlogo} onClick={this.goHome} /> */
}
<
div
className
=
{
SjdMenuStyle
.
uncollapsedlogo
}
onClick
=
{
this
.
goHome
}
/
>
<
Menu
theme
=
"dark"
mode
=
"inline"
...
...
src/models/callstudents.js
View file @
4e0f3ef1
...
...
@@ -62,6 +62,7 @@ export default {
extra
:
'time,recently_course'
,
course_id
:
0
,
type
:
'3,4'
,
keyword
:
''
,
},
bukeStudentListLoading
:
false
,
selectedbukeClassKey
:
[],
...
...
@@ -77,7 +78,7 @@ export default {
effects
:
{
*
queryLinShiStudentList
({
payload
},
{
call
,
put
,
select
})
{
const
{
classId
,
queryLinshiStudentListParams
,
linshiStudentTotal
,
courseId
,
classId
,
queryLinshiStudentListParams
,
linshiStudentTotal
,
courseId
,
linshiStudentListLoading
,
}
=
yield
select
(
state
=>
state
.
callstudents
);
const
{
params
}
=
payload
;
const
{
sid
}
=
yield
select
(
state
=>
state
.
webapp
);
...
...
@@ -94,13 +95,13 @@ export default {
school_id
:
sid
,
extra
:
'time,recently_course'
,
});
const
courseplanListDate
=
yield
call
(
classMgtAjax
.
classStudentList
,
newqueryToAddStudentListParams
);
yield
put
({
type
:
'updateState'
,
payload
:
{
linshiStudentListLoading
:
false
,
},
});
const
courseplanListDate
=
yield
call
(
classMgtAjax
.
classStudentList
,
newqueryToAddStudentListParams
);
if
(
courseplanListDate
.
code
==
200
)
{
if
(
courseplanListDate
.
data
&&
courseplanListDate
.
data
.
total
!==
undefined
)
{
newclassStudentTotal
=
courseplanListDate
.
data
.
total
;
...
...
@@ -124,8 +125,9 @@ export default {
},
*
querybukeStudentList
({
payload
},
{
call
,
put
,
select
})
{
const
{
querybukeStudentListParams
,
bukeStudentTotal
,
bukeStudentListLoading
,
courseId
,
classId
,
querybukeStudentListParams
,
bukeStudentTotal
,
bukeStudentListLoading
,
courseId
,
classId
,
bukeStudentSearchName
,
}
=
yield
select
(
state
=>
state
.
callstudents
);
const
{
params
}
=
payload
;
const
{
sid
}
=
yield
select
(
state
=>
state
.
webapp
);
if
(
bukeStudentListLoading
)
{
return
;
...
...
@@ -137,12 +139,13 @@ export default {
},
});
let
newcallStudentTotal
=
bukeStudentTotal
;
const
newqueryScheduleStudentListParams
=
Object
.
assign
(
querybukeStudentListParams
,
{
const
newqueryScheduleStudentListParams
=
Object
.
assign
(
querybukeStudentListParams
,
params
,
{
school_id
:
sid
,
exclude_class_id
:
classId
,
exclude_class_students_status
:
1
,
extra
:
'time,recently_course'
,
course_id
:
courseId
,
keyword
:
bukeStudentSearchName
,
});
const
linshiStudengListDate
=
yield
call
(
schedulemgtAjax
.
getStudentCalls
,
newqueryScheduleStudentListParams
);
yield
put
({
...
...
@@ -158,7 +161,7 @@ export default {
yield
put
({
type
:
'updateState'
,
payload
:
{
query
Schedul
eStudentListParams
:
{
...
newqueryScheduleStudentListParams
},
query
buk
eStudentListParams
:
{
...
newqueryScheduleStudentListParams
},
bukeStudentList
:
linshiStudengListDate
.
data
.
list
,
bukeStudentTotal
:
newcallStudentTotal
,
},
...
...
@@ -438,6 +441,7 @@ export default {
type
:
'updateState'
,
payload
:
{
callStudentTotal
:
newcallStudentTotal
,
linshiStudentSearchName
:
''
,
callStudentOperateList
:
[...
callStudentOperateList
],
linshiStudentModalShow
:
false
,
bukeStudentModalShow
:
false
,
...
...
@@ -673,6 +677,7 @@ export default {
extra
:
'time,recently_course'
,
course_id
:
0
,
type
:
'3,4'
,
keyword
:
''
,
},
bukeStudentListLoading
:
false
,
selectedbukeClassKey
:
[],
...
...
src/models/classdetail.js
View file @
4e0f3ef1
...
...
@@ -795,7 +795,7 @@ export default {
type
:
'updateState'
,
payload
:
{
addClassStudentModalShow
:
false
,
toAddStudentSearchName
:
''
,
//
toAddStudentSearchName: '',
},
});
yield
put
({
...
...
src/pages/SjdIndex.js
View file @
4e0f3ef1
...
...
@@ -45,11 +45,6 @@ class SjdIndex extends React.Component {
const
{
collapsed
,
location
,
userInfo
,
showExpired
,
menuDrawerShow
,
screenIsBig
,
globalErrorType
,
}
=
this
.
props
;
// let hasRoot = false;
// if ((LocalStorage.getItem('user') && LocalStorage.getItem('user').token) || (LocalStorage.getItem('teacher') && LocalStorage.getItem('teacher').token)) {
// hasRoot = true;
// }
// const redirectDom = (<Redirect to={{ pathname: '/login', state: { from: location } }} />);
let
contentMarginLeft
=
0
;
let
paddingRight
=
20
;
let
paddingLeft
=
20
;
...
...
src/pages/classdetail/index.js
View file @
4e0f3ef1
...
...
@@ -375,7 +375,7 @@ class ClassDetailForm extends React.Component {
type
:
'classdetail/updateState'
,
payload
:
{
addClassStudentModalShow
:
false
,
toAddStudentSearchName
:
''
,
//
toAddStudentSearchName: '',
},
});
dispatch
({
...
...
src/pages/institutions/index.js
View file @
4e0f3ef1
...
...
@@ -35,22 +35,22 @@ class Institutions extends React.Component {
<
/div
>
{
schoolDetail
.
contact_people
&&
<
div
className
=
{
pageStyles
.
rowline
}
gutter
=
"32"
>
<
div
className
=
{
pageStyles
.
rowinfotitle
}
>
联
系人
:
<
/div
>
<
div
className
=
{
pageStyles
.
rowinfotitle
}
>
联
&
nbsp
;
&
nbsp
;
系
&
nbsp
;
&
nbsp
;
人:
<
/div
>
<
div
className
=
{
pageStyles
.
rowinfo
}
>
{
schoolDetail
.
contact_people
}
<
/div
>
<
/div
>
}
{
schoolDetail
.
tel_phone
&&
<
div
className
=
{
pageStyles
.
rowline
}
gutter
=
"32"
>
<
div
className
=
{
pageStyles
.
rowinfotitle
}
>
联系方式
:
<
/div
>
<
div
className
=
{
pageStyles
.
rowinfotitle
}
>
联系方式
:
<
/div
>
<
div
className
=
{
pageStyles
.
rowinfo
}
>
{
schoolDetail
.
tel_phone
.
join
(
','
)}
<
/div
>
<
/div
>
}
<
div
className
=
{
pageStyles
.
rowline
}
gutter
=
"32"
>
<
div
className
=
{
pageStyles
.
rowinfotitle
}
>
机构位置
:
<
/div
>
<
div
className
=
{
pageStyles
.
rowinfotitle
}
>
机构位置
:
<
/div
>
<
div
className
=
{
pageStyles
.
rowinfo
}
>
{
schoolDetail
.
location_address
}
<
/div
>
<
/div
>
<
div
className
=
{
pageStyles
.
rowline
}
gutter
=
"32"
>
<
div
className
=
{
pageStyles
.
rowinfotitle
}
>
科目类别
:
<
/div
>
<
div
className
=
{
pageStyles
.
rowinfotitle
}
>
科目类别
:
<
/div
>
<
div
className
=
{
`
${
pageStyles
.
rowinfo
}
${
pageStyles
.
categorybox
}
`
}
>
{
schoolDetail
.
category
&&
schoolDetail
.
category
.
length
>
0
&&
categorys
.
map
((
ele
)
=>
{
const
content
=
[];
...
...
@@ -66,7 +66,7 @@ class Institutions extends React.Component {
<div className={pageStyles.rowinfo}>家门口</div>
</div> */
}
<
div
className
=
{
pageStyles
.
rowline
}
gutter
=
"32"
>
<
div
className
=
{
pageStyles
.
rowinfotitle
}
>
机
构码
:
<
/div
>
<
div
className
=
{
pageStyles
.
rowinfotitle
}
>
机
&
nbsp
;
&
nbsp
;
构
&
nbsp
;
&
nbsp
;
码:
<
/div
>
<
div
className
=
{
pageStyles
.
rowinfo
}
>
{
schoolDetail
.
code
}
<
/div
>
<
/div
>
<
/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