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
90fb70f3
Commit
90fb70f3
authored
Dec 03, 2019
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
45ff5538
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
11 deletions
+23
-11
operatorChange.js
src/components/operatorChange.js
+1
-1
students.js
src/models/students.js
+8
-1
index.js
src/pages/index/index.js
+4
-4
index.js
src/pages/student/index.js
+1
-0
newRenewEdit.js
src/pages/student/newRenewEdit.js
+9
-5
No files found.
src/components/operatorChange.js
View file @
90fb70f3
...
...
@@ -57,7 +57,7 @@ class OpeartorChangeForm extends React.Component {
message
:
'请选择操作人'
,
},
],
})(
<
Select
>
{
teacherList
.
map
(
ele
=>
<
Option
key
=
{
ele
.
id
}
value
=
{
ele
.
id
}
>
{
ele
.
nickname
}
<
/Option>
)
}</
Select
>
)
})(
<
Select
placeholder
=
"请选择操作人"
>
{
teacherList
.
map
(
ele
=>
<
Option
key
=
{
ele
.
id
}
value
=
{
ele
.
id
}
>
{
ele
.
nickname
}
<
/Option>
)
}</
Select
>
)
}
<
/Form.Item
>
<
/Form
>
...
...
src/models/students.js
View file @
90fb70f3
import
{
routerRedux
}
from
'dva/router'
;
import
{
message
}
from
'antd'
;
import
{
delay
}
from
'redux-saga'
;
import
{
LocalStorage
,
SessionStorage
,
...
...
@@ -439,12 +440,13 @@ export default {
const
newStudentAddParams
=
{
...
studentAddParams
};
newStudentAddParams
.
force
=
1
;
if
(
params
&&
params
.
type
===
'index'
)
{
yield
put
(
routerRedux
.
push
(
'/sjd/student'
));
yield
put
({
type
:
'studentsAdd'
,
payload
:
{
...
newStudentAddParams
,
params
:
{
type
:
'
index'
,
// 首页
type
:
'
sureAdd'
,
},
},
});
...
...
@@ -565,6 +567,11 @@ export default {
indexQrcodeTitle
:
`请学员
${
data
.
data
.
name
}
扫描绑定小程序`
,
},
});
yield
delay
(
350
);
}
console
.
log
(
params
,
'params'
);
if
(
params
&&
params
.
type
===
'sureAdd'
)
{
yield
delay
(
300
);
}
if
(
isBuycourse
)
{
const
{
courseList
}
=
yield
select
(
state
=>
state
.
students
);
...
...
src/pages/index/index.js
View file @
90fb70f3
...
...
@@ -134,7 +134,7 @@ class StaticCenter extends React.Component {
goDeadlineStudent
=
()
=>
{
const
{
dispatch
,
renew
}
=
this
.
props
;
if
(
renew
.
total
===
0
)
{
message
.
warning
(
'
还没有续费提醒噢~
'
);
message
.
warning
(
'
暂无学员课时数过低需要续费喔
'
);
return
;
}
dispatch
({
...
...
@@ -144,7 +144,7 @@ class StaticCenter extends React.Component {
goBirthStudent
=
()
=>
{
const
{
dispatch
,
birthday
}
=
this
.
props
;
if
(
birthday
.
total
===
0
)
{
message
.
warning
(
'
还没有学员过生日噢~
'
);
message
.
warning
(
'
今天没有学员生日喔
'
);
return
;
}
dispatch
({
...
...
@@ -154,7 +154,7 @@ class StaticCenter extends React.Component {
goCallStudent
=
()
=>
{
const
{
dispatch
,
callData
}
=
this
.
props
;
if
(
callData
.
total
===
0
)
{
message
.
warning
(
'
还没有未点名的学生噢~
'
);
message
.
warning
(
'
当前暂无未点名课次喔
'
);
return
;
}
dispatch
({
...
...
@@ -170,7 +170,7 @@ class StaticCenter extends React.Component {
goPlanStudent
=
()
=>
{
const
{
dispatch
,
assign
}
=
this
.
props
;
if
(
assign
.
total
===
0
)
{
message
.
warning
(
'
还没有分配的学员噢~
'
);
message
.
warning
(
'
当前暂无未分配学员喔
'
);
return
;
}
dispatch
({
...
...
src/pages/student/index.js
View file @
90fb70f3
...
...
@@ -755,6 +755,7 @@ class StudentMgt extends React.Component {
qrCodeTitle
,
isExpendMore
,
isChecked
,
isShowQuestion
,
verifyValue
,
}
=
this
.
state
;
console
.
log
(
operator
,
'operator'
);
const
columns
=
[
{
title
:
'学员姓名'
,
...
...
src/pages/student/newRenewEdit.js
View file @
90fb70f3
import
{
connect
}
from
'dva'
;
import
React
from
'react'
;
import
{
Icon
,
Button
,
Row
,
Col
,
Input
,
InputNumber
,
Select
,
Checkbox
,
Table
,
Modal
,
Form
,
Alert
}
from
'antd'
;
import
{
message
,
Button
,
Row
,
Col
,
Input
,
InputNumber
,
Select
,
Checkbox
,
Table
,
Modal
,
Form
,
Alert
}
from
'antd'
;
import
pageStyle
from
'./newRenewEdit.less'
;
import
{
pageIn
}
from
'../../utils/index'
;
const
{
Option
}
=
Select
;
...
...
@@ -23,6 +23,10 @@ class NewRenewEdit extends React.Component {
e
.
preventDefault
();
this
.
props
.
form
.
validateFields
((
err
,
values
)
=>
{
if
(
!
err
)
{
if
(
values
.
operator_id
===
undefined
||
values
.
operator_id
===
''
)
{
message
.
warning
(
'请先选择修改人'
);
return
;
}
save
(
values
,
()
=>
{
form
.
resetFields
();
});
...
...
@@ -221,7 +225,7 @@ class NewRenewEdit extends React.Component {
{
getFieldDecorator
(
'buy'
,
{
rules
:
[
{
required
:
fals
e
,
required
:
tru
e
,
message
:
'请输入购买课时'
,
},
],
...
...
@@ -245,7 +249,7 @@ class NewRenewEdit extends React.Component {
{
getFieldDecorator
(
'give'
,
{
rules
:
[
{
required
:
fals
e
,
required
:
tru
e
,
message
:
'请输入赠送课时'
,
},
],
...
...
@@ -273,7 +277,7 @@ class NewRenewEdit extends React.Component {
{
getFieldDecorator
(
'buy'
,
{
rules
:
[
{
required
:
fals
e
,
required
:
tru
e
,
message
:
'请输入购买天数'
,
},
],
...
...
@@ -298,7 +302,7 @@ class NewRenewEdit extends React.Component {
{
getFieldDecorator
(
'give'
,
{
rules
:
[
{
required
:
fals
e
,
required
:
tru
e
,
message
:
'请输入赠送天数'
,
},
],
...
...
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