|
|
@ -13,15 +13,12 @@ class CreateGroupByImportModal extends Component{
|
|
|
|
constructor(props){
|
|
|
|
constructor(props){
|
|
|
|
super(props);
|
|
|
|
super(props);
|
|
|
|
this.state={
|
|
|
|
this.state={
|
|
|
|
|
|
|
|
errorTip:undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
fetchMemberList = (arg_page) => {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
onSendOk = () => {
|
|
|
|
onSendOk = () => {
|
|
|
|
|
|
|
|
|
|
|
|
const courseId = this.props.match.params.coursesId
|
|
|
|
const courseId = this.props.match.params.coursesId
|
|
|
|
|
|
|
|
|
|
|
|
let url = `/courses/${courseId}/create_group_by_importing_file.json`
|
|
|
|
let url = `/courses/${courseId}/create_group_by_importing_file.json`
|
|
|
@ -112,7 +109,7 @@ class CreateGroupByImportModal extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
render(){
|
|
|
|
render(){
|
|
|
|
const { candidates, checkBoxValues, loading, hasMore, name, school_name, school_names
|
|
|
|
const { candidates, checkBoxValues, loading, hasMore, name, school_name, school_names
|
|
|
|
, graduationGroup, graduation_groups, courseGroup, course_groups , fileList } = this.state
|
|
|
|
, graduationGroup, graduation_groups, courseGroup, course_groups , fileList , errorTip } = this.state
|
|
|
|
const { moduleName } = this.props
|
|
|
|
const { moduleName } = this.props
|
|
|
|
|
|
|
|
|
|
|
|
const props = {
|
|
|
|
const props = {
|
|
|
@ -132,17 +129,6 @@ class CreateGroupByImportModal extends Component{
|
|
|
|
onOk={this.onOk}
|
|
|
|
onOk={this.onOk}
|
|
|
|
className="createGroupByImport"
|
|
|
|
className="createGroupByImport"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
|
|
|
{`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div className="df">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<Dragger {...props}>
|
|
|
|
<Dragger {...props}>
|
|
|
|
<p className="ant-upload-drag-icon">
|
|
|
|
<p className="ant-upload-drag-icon">
|
|
|
|
<Icon type="inbox" />
|
|
|
|
<Icon type="inbox" />
|
|
|
@ -152,6 +138,9 @@ class CreateGroupByImportModal extends Component{
|
|
|
|
单个文件最大150MB
|
|
|
|
单个文件最大150MB
|
|
|
|
</p>
|
|
|
|
</p>
|
|
|
|
</Dragger>
|
|
|
|
</Dragger>
|
|
|
|
|
|
|
|
<p className="color-red lineh-25 edu-txt-left" style={{height:"25px"}}>
|
|
|
|
|
|
|
|
<span className={ errorTip ? "" : "none" }>{errorTip}</span>
|
|
|
|
|
|
|
|
</p>
|
|
|
|
</ModalWrapper>
|
|
|
|
</ModalWrapper>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
}
|
|
|
|
}
|
|
|
|