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
20e059f3
Commit
20e059f3
authored
Oct 09, 2019
by
sujie@126.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dd
parent
2484af9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
index.js
src/pages/student/index.js
+9
-2
No files found.
src/pages/student/index.js
View file @
20e059f3
...
...
@@ -41,6 +41,7 @@ class StudentMgt extends React.Component {
},
},
isExpendMore
:
false
,
Inviteloading
:
false
,
};
componentDidMount
()
{
// 挂载
pageIn
(
'学员管理'
);
...
...
@@ -502,6 +503,9 @@ class StudentMgt extends React.Component {
}
closeInviteCodeDialog
=
()
=>
{
const
{
dispatch
}
=
this
.
props
;
this
.
setState
({
Inviteloading
:
false
,
});
dispatch
({
type
:
'students/updateState'
,
payload
:
{
...
...
@@ -511,6 +515,9 @@ class StudentMgt extends React.Component {
}
inviteCodeDialogVisible
=
(
visible
)
=>
{
const
{
dispatch
}
=
this
.
props
;
this
.
setState
({
Inviteloading
:
true
,
});
dispatch
({
type
:
'students/createInviteQrcode'
,
payload
:
{
...
...
@@ -569,7 +576,7 @@ class StudentMgt extends React.Component {
inviteCodeShow
,
inviteCode
,
}
=
this
.
props
;
const
{
qrCodeTitle
,
isExpendMore
}
=
this
.
state
;
const
{
qrCodeTitle
,
isExpendMore
,
Inviteloading
}
=
this
.
state
;
const
columns
=
[
{
title
:
'学员姓名'
,
...
...
@@ -679,7 +686,7 @@ class StudentMgt extends React.Component {
{
/* <Button className={pageStyle.headerbtn}>批量操作</Button> */
}
{
hasBtnPower
(
'sjd/student'
,
'enrolCode'
)
&&
<
Button
className
=
{
pageStyle
.
headerbtn
}
onClick
=
{
this
.
toSetSelfJoin
}
>
自助报名二维码
<
/Button>
}
{
hasBtnPower
(
'sjd/student'
,
'bundlingCode'
)
&&
<
Button
id
=
{
pageStyle
.
headerself
}
className
=
{
pageStyle
.
headerbtn
}
onClick
=
{
this
.
bindQrcodeShow
}
>
自助绑定二维码
<
/Button>
}
{
hasBtnPower
(
'sjd/student'
,
'bundlingCode'
)
&&
<
Button
id
=
{
pageStyle
.
headerself
}
className
=
{
pageStyle
.
headerbtn
}
onClick
=
{()
=>
this
.
inviteCodeDialogVisible
(
true
)}
>
快捷邀请学员
<
/Button>
}
{
hasBtnPower
(
'sjd/student'
,
'bundlingCode'
)
&&
<
Button
id
=
{
pageStyle
.
headerself
}
loading
=
{
Inviteloading
}
className
=
{
pageStyle
.
headerbtn
}
onClick
=
{()
=>
this
.
inviteCodeDialogVisible
(
true
)}
>
快捷邀请学员
<
/Button>
}
<
/div
>
<
div
className
=
{
pageStyle
.
search
}
>
<
div
className
=
{
pageStyle
.
title
}
>
...
...
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