dev_oauth
杨树林 6 years ago
parent 8ff2b8ff23
commit e8cba53c99

@ -1,5 +1,5 @@
import React, {Component} from "React"; import React, {Component} from "React";
import {Form, Select, Input, Button, Checkbox, DatePicker,Spin,Icon,AutoComplete,InputNumber} from "antd"; import {Form, Select, Input, Button, Checkbox, DatePicker,Spin,Icon,AutoComplete,InputNumber,Breadcrumb} from "antd";
import ApplyForAddOrgModal from '../../user/modal/ApplyForAddOrgModal'; import ApplyForAddOrgModal from '../../user/modal/ApplyForAddOrgModal';
import axios from 'axios'; import axios from 'axios';
import "../css/Courses.css"; import "../css/Courses.css";
@ -49,6 +49,8 @@ class Goldsubject extends Component {
fetching:false, fetching:false,
subject_id:"", subject_id:"",
start_date:"", start_date:"",
Whethertocreateanewclassroom:true,
} }
} }
// disabledEndDate= endValue => { // disabledEndDate= endValue => {
@ -136,6 +138,7 @@ class Goldsubject extends Component {
credit: parseFloat(data.credit), credit: parseFloat(data.credit),
course_module_types: data.course_module_types, course_module_types: data.course_module_types,
school:data.school, school:data.school,
Whethertocreateanewclassroom:false,
}); });
this.handleSearchschool(data.school); this.handleSearchschool(data.school);
}).catch((error) => { }).catch((error) => {
@ -154,6 +157,7 @@ class Goldsubject extends Component {
}); });
this.setState({ this.setState({
school:user_school, school:user_school,
Whethertocreateanewclassroom:true,
}); });
this.handleSearchschool(user_school); this.handleSearchschool(user_school);
@ -543,7 +547,7 @@ class Goldsubject extends Component {
this.applyForAddOrgForm.setVisible(true) this.applyForAddOrgForm.setVisible(true)
} }
render() { render() {
let {datatime,datatimetwo,school,searchlistscholl} = this.state; let {datatime,datatimetwo,school,searchlistscholl,Whethertocreateanewclassroom} = 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
@ -581,10 +585,18 @@ class Goldsubject extends Component {
modalsBottomval={this.state.ModalsBottomval} modalsBottomval={this.state.ModalsBottomval}
loadtype={this.state.Loadtype} loadtype={this.state.Loadtype}
/> />
<div className="newMain clearfix"> <div className="newMain clearfix">
<div className={"educontent mb20"}> <div className={"educontent mb20"}>
<Breadcrumb className="mt10">
<Breadcrumb.Item>
<a href="/">首页</a>
</Breadcrumb.Item>
<Breadcrumb.Item>{Whethertocreateanewclassroom===true?"新建课堂":"编辑课堂"}</Breadcrumb.Item>
</Breadcrumb>
<div style={{width: '100%', height: '70px'}}> <div style={{width: '100%', height: '70px'}}>
<p className="ml15 fl color-black mt30 summaryname">{this.props.match.params.coursesId === undefined ? "新建课堂" : "编辑课堂"}</p> <p className=" fl color-black mt18 summaryname">{Whethertocreateanewclassroom===true ? "新建课堂" : "编辑课堂"}</p>
<a onClick={this.goback} className="color-grey-6 fr font-16 ml30 mt18 mr20">返回</a> <a onClick={this.goback} className="color-grey-6 fr font-16 ml30 mt18 mr20">返回</a>
</div> </div>
<style> <style>

Loading…
Cancel
Save