|
|
@ -54,7 +54,6 @@ class Goldsubject extends Component {
|
|
|
|
addonAfteronelenone:"",
|
|
|
|
addonAfteronelenone:"",
|
|
|
|
addonAfteronelentwo:"",
|
|
|
|
addonAfteronelentwo:"",
|
|
|
|
Whethertocreateanewclassroom:true,
|
|
|
|
Whethertocreateanewclassroom:true,
|
|
|
|
bordebool:false,
|
|
|
|
|
|
|
|
checkbofrup:[
|
|
|
|
checkbofrup:[
|
|
|
|
{module_type:"announcement",module_name:"公告栏"},{module_type:"online_learning",module_name:"在线学习"}
|
|
|
|
{module_type:"announcement",module_name:"公告栏"},{module_type:"online_learning",module_name:"在线学习"}
|
|
|
|
,{module_type:"shixun_homework",module_name:"实训作业"},{module_type:"common_homework",module_name:"普通作业"}
|
|
|
|
,{module_type:"shixun_homework",module_name:"实训作业"},{module_type:"common_homework",module_name:"普通作业"}
|
|
|
@ -529,26 +528,12 @@ class Goldsubject extends Component {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
handleChange=(value)=>{
|
|
|
|
handleChange=(value)=>{
|
|
|
|
if(value){
|
|
|
|
|
|
|
|
if(value.length>60){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
bordebool:true,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}else if(value.length===0){
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
bordebool:true,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
bordebool:false,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
bordebool:true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} };
|
|
|
|
this.props.form.setFieldsValue({
|
|
|
|
|
|
|
|
// course:value,
|
|
|
|
|
|
|
|
classroom:value
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
handleSearchschool=(value)=>{
|
|
|
|
handleSearchschool=(value)=>{
|
|
|
|
|
|
|
|
|
|
|
@ -617,7 +602,7 @@ class Goldsubject extends Component {
|
|
|
|
this.applyForAddOrgForm.setVisible(true)
|
|
|
|
this.applyForAddOrgForm.setVisible(true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let {datatime,datatimetwo,school,searchlistscholl,Whethertocreateanewclassroom,bordebool,addonAfteronelenone,addonAfteronelentwo} = this.state;
|
|
|
|
let {datatime,datatimetwo,school,searchlistscholl,Whethertocreateanewclassroom,addonAfteronelenone,addonAfteronelentwo} = this.state;
|
|
|
|
const {getFieldDecorator} = this.props.form;
|
|
|
|
const {getFieldDecorator} = this.props.form;
|
|
|
|
const propsWithoutForm = Object.assign({}, this.props)
|
|
|
|
const propsWithoutForm = Object.assign({}, this.props)
|
|
|
|
delete propsWithoutForm.form
|
|
|
|
delete propsWithoutForm.form
|
|
|
@ -639,13 +624,9 @@ class Goldsubject extends Component {
|
|
|
|
if(addonAftertwo){
|
|
|
|
if(addonAftertwo){
|
|
|
|
addonAfteronelens=String(addonAftertwo).length;
|
|
|
|
addonAfteronelens=String(addonAftertwo).length;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
console.log(addonAfteronelenone);
|
|
|
|
var addonAfterfour=this.props.form&&this.props.form.getFieldValue('classroom');
|
|
|
|
console.log(addonAfteronelentwo);
|
|
|
|
var addonAfteronelens4=0;
|
|
|
|
console.log(options);
|
|
|
|
if(addonAfterfour){
|
|
|
|
|
|
|
|
addonAfteronelens4=String(addonAfterfour).length;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<React.Fragment>
|
|
|
|
<React.Fragment>
|
|
|
|
|
|
|
|
|
|
|
@ -707,16 +688,20 @@ class Goldsubject extends Component {
|
|
|
|
.ant-select-dropdown{
|
|
|
|
.ant-select-dropdown{
|
|
|
|
// top: 221px !important;
|
|
|
|
// top: 221px !important;
|
|
|
|
// left: 115px !important;
|
|
|
|
// left: 115px !important;
|
|
|
|
|
|
|
|
width: 280px !important;
|
|
|
|
height: 160px;
|
|
|
|
height: 160px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.ant-select-dropdown-menu{
|
|
|
|
.ant-select-dropdown-menu{
|
|
|
|
|
|
|
|
width: 280px !important;
|
|
|
|
height: 160px;
|
|
|
|
height: 160px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.construction .ant-input{
|
|
|
|
.construction .ant-input{
|
|
|
|
|
|
|
|
width: 280px !important;
|
|
|
|
margin-left: 0px !important;
|
|
|
|
margin-left: 0px !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.construction {
|
|
|
|
.construction {
|
|
|
|
margin-left: 11px;
|
|
|
|
width: 280px;
|
|
|
|
|
|
|
|
margin-left: 10px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.construction .ant-select-selection__placeholder, .ant-select-search__field__placeholder {
|
|
|
|
.construction .ant-select-selection__placeholder, .ant-select-search__field__placeholder {
|
|
|
@ -726,7 +711,38 @@ class Goldsubject extends Component {
|
|
|
|
`}
|
|
|
|
`}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*<div className="stud-class-set bor-bottom-greyE padding10200 ">*/}
|
|
|
|
|
|
|
|
{/* <div className={"TabsWarpcourse"}>*/}
|
|
|
|
|
|
|
|
{/* <Form.Item label="课程名称">*/}
|
|
|
|
|
|
|
|
{/* {getFieldDecorator('course', {*/}
|
|
|
|
|
|
|
|
{/* rules: [{required: true, message: "不能为空"}],*/}
|
|
|
|
|
|
|
|
{/* })(*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/* <AutoComplete style={{ width: 280 }}*/}
|
|
|
|
|
|
|
|
{/* onSearch={this.handleSearch}*/}
|
|
|
|
|
|
|
|
{/* onChange={this.handleChange}*/}
|
|
|
|
|
|
|
|
{/* className={"fl construction "}*/}
|
|
|
|
|
|
|
|
{/* placeholder="例如:数据结构"*/}
|
|
|
|
|
|
|
|
{/* >*/}
|
|
|
|
|
|
|
|
{/* {options}*/}
|
|
|
|
|
|
|
|
{/* </AutoComplete>*/}
|
|
|
|
|
|
|
|
{/* )}*/}
|
|
|
|
|
|
|
|
{/* <span className={"newcoursestitle fl"}>*/}
|
|
|
|
|
|
|
|
{/* /!*(错误示例:数据结构2017本部;数据结构2017秋季;数据结构2017电子商务1班)*!/*/}
|
|
|
|
|
|
|
|
{/* <p className="ant-progress-text">*/}
|
|
|
|
|
|
|
|
{/* <Icon style={{ color: '#52c41a' }} type="check-circle" theme="filled"/>*/}
|
|
|
|
|
|
|
|
{/* <span className={"color-grey-9 font-12 ml5"}>正确示例:数据结构</span>*/}
|
|
|
|
|
|
|
|
{/* </p>*/}
|
|
|
|
|
|
|
|
{/* <p className="ant-progress-text">*/}
|
|
|
|
|
|
|
|
{/* <Icon style={{ color: 'red' }} theme="filled" type="close-circle"/>*/}
|
|
|
|
|
|
|
|
{/* <span className={"color-grey-9 font-12 ml5"}>错误示例:数据结构2019春</span>*/}
|
|
|
|
|
|
|
|
{/* </p>*/}
|
|
|
|
|
|
|
|
{/* </span>*/}
|
|
|
|
|
|
|
|
{/* <div id='iscourse'></div>*/}
|
|
|
|
|
|
|
|
{/* </Form.Item>*/}
|
|
|
|
|
|
|
|
{/* </div>*/}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
|
|
|
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -737,57 +753,37 @@ class Goldsubject extends Component {
|
|
|
|
`
|
|
|
|
`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="stud-class-set bor-bottom-greyE padding1020 ">
|
|
|
|
<div className="stud-class-set bor-bottom-greyE padding1020 ">
|
|
|
|
<style>{
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
.yslzxueshiskmc .ant-input{
|
|
|
|
|
|
|
|
border-right: none !important;
|
|
|
|
|
|
|
|
height: 40px !important;
|
|
|
|
|
|
|
|
width: 655px !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
<Form.Item label="课堂名称">
|
|
|
|
.yslzxueshiskmc .ant-input-group{
|
|
|
|
{getFieldDecorator('classroom', {
|
|
|
|
width: 720px !important;
|
|
|
|
rules: [{required: true, message: "不能为空"}],
|
|
|
|
}
|
|
|
|
})(
|
|
|
|
|
|
|
|
|
|
|
|
.yslzxueshiskmc .ant-input-group-addon{
|
|
|
|
<AutoComplete style={{ width: 280 }}
|
|
|
|
width: 65px !important;
|
|
|
|
onSearch={this.handleSearch}
|
|
|
|
background-color: #fafafa!important;
|
|
|
|
onChange={this.handleChange}
|
|
|
|
}
|
|
|
|
className={"fl construction "}
|
|
|
|
.yslzxueshiskmc .ant-input-group-wrapper{
|
|
|
|
placeholder="例如:数据结构"
|
|
|
|
width: 720px !important;
|
|
|
|
>
|
|
|
|
}
|
|
|
|
{options}
|
|
|
|
.yslzxueshiskmcs .ant-input-group-wrapper{
|
|
|
|
</AutoComplete>
|
|
|
|
width: 720px !important;
|
|
|
|
)}
|
|
|
|
}
|
|
|
|
{/*<span className={"newcoursestitle fl"}>*/}
|
|
|
|
`
|
|
|
|
{/* /!*(如果本学期包含多个班级,只需创建一个课堂然后在课堂内部建立不同的分班)*!/*/}
|
|
|
|
}</style>
|
|
|
|
{/* <p className="ant-progress-text">*/}
|
|
|
|
<style>
|
|
|
|
{/* <Icon style={{ color: '#52c41a' }} type="check-circle" theme="filled"/>*/}
|
|
|
|
{bordebool===false?
|
|
|
|
{/* <span className={"color-grey-9 font-12 ml5"}>正确示例:数据结构2019春季班级</span>*/}
|
|
|
|
`
|
|
|
|
{/* </p>*/}
|
|
|
|
.ant-input:hover {
|
|
|
|
{/* <p className="ant-progress-text">*/}
|
|
|
|
// border: 1px solid #d9d9d9;
|
|
|
|
{/* <Icon style={{ color: 'red' }} theme="filled" type="close-circle"/>*/}
|
|
|
|
}
|
|
|
|
{/* <span className={"color-grey-9 font-12 ml5"}>错误示例:2019春季班级数据结构</span>*/}
|
|
|
|
`:
|
|
|
|
{/* </p>*/}
|
|
|
|
`
|
|
|
|
{/* </span>*/}
|
|
|
|
.ant-input:hover {
|
|
|
|
|
|
|
|
// border: 1px solid #f5222d;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<Form.Item label="课堂名称" className="yslzxueshiskmcs">
|
|
|
|
|
|
|
|
{getFieldDecorator('classroom', {
|
|
|
|
|
|
|
|
rules: [{required: true, message: "不能为空"},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
max:60,
|
|
|
|
|
|
|
|
message: '不能超过60个字符',
|
|
|
|
|
|
|
|
}],
|
|
|
|
|
|
|
|
})(<Input className="yslzxueshiskmc fl" placeholder="例如:数据结构2016秋季班级" onChange={this.handleChange} addonAfter={String(addonAfteronelens4)+"/60"} />)}
|
|
|
|
|
|
|
|
<div id='isclassroom'></div>
|
|
|
|
<div id='isclassroom'></div>
|
|
|
|
</Form.Item>
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div className="stud-class-set bor-bottom-greyE padding1020 coursenavbox coursenavboxtow yslinputcourput">
|
|
|
|
<div className="stud-class-set bor-bottom-greyE padding1020 coursenavbox coursenavboxtow yslinputcourput">
|
|
|
|