Commit 20e059f3 authored by sujie@126.com's avatar sujie@126.com

dd

parent 2484af9c
......@@ -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}>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment