Commit 64701e32 authored by wangxuelai's avatar wangxuelai

''

parent f5732058
<!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
......@@ -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({
......
......@@ -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: '',
......
......@@ -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>
......
......@@ -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>
......
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