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

@ -1,5 +1,5 @@
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 axios from 'axios';
import "../css/Courses.css";
@ -49,6 +49,8 @@ class Goldsubject extends Component {
fetching:false,
subject_id:"",
start_date:"",
Whethertocreateanewclassroom:true,
}
}
// disabledEndDate= endValue => {
@ -136,6 +138,7 @@ class Goldsubject extends Component {
credit: parseFloat(data.credit),
course_module_types: data.course_module_types,
school:data.school,
Whethertocreateanewclassroom:false,
});
this.handleSearchschool(data.school);
}).catch((error) => {
@ -154,6 +157,7 @@ class Goldsubject extends Component {
});
this.setState({
school:user_school,
Whethertocreateanewclassroom:true,
});
this.handleSearchschool(user_school);
@ -543,7 +547,7 @@ class Goldsubject extends Component {
this.applyForAddOrgForm.setVisible(true)
}
render() {
let {datatime,datatimetwo,school,searchlistscholl} = this.state;
let {datatime,datatimetwo,school,searchlistscholl,Whethertocreateanewclassroom} = this.state;
const {getFieldDecorator} = this.props.form;
const propsWithoutForm = Object.assign({}, this.props)
delete propsWithoutForm.form
@ -581,10 +585,18 @@ class Goldsubject extends Component {
modalsBottomval={this.state.ModalsBottomval}
loadtype={this.state.Loadtype}
/>
<div className="newMain clearfix">
<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'}}>
<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>
</div>
<style>

Loading…
Cancel
Save