dev_oauth
杨树明 6 years ago
commit 87aa723e95

@ -445,7 +445,7 @@ class CoursesBanner extends Component {
<style> <style>
{ {
` `
.tag-orange .tag-name{ .tag-orangces .tag-name{
display: block; display: block;
width: auto; width: auto;
background-color: #FF6800; background-color: #FF6800;
@ -462,7 +462,7 @@ class CoursesBanner extends Component {
} }
</style> </style>
{excellent===true? {excellent===true?
<span className="tag-orange fl"><span className="tag-name mt10 ml10">国家精品</span></span> <span className="tag-orangces fl"><span className="tag-name mt10 ml10">国家精品</span></span>
:""} :""}
<span className={"TabsWarp"}> <span className={"TabsWarp"}>
<CoursesListType <CoursesListType

@ -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);
@ -412,7 +416,12 @@ class Goldsubject extends Component {
// this.props.history.push(this.props.current_user.first_category_url); // this.props.history.push(this.props.current_user.first_category_url);
// } // }
// window.history.go(-1) // window.history.go(-1)
this.props.history.goBack() if(this.state.Whethertocreateanewclassroom===true){
var subjectids=this.props.match.params.subjectid;
window.location.href=`/paths/${subjectids}`
}else{
this.props.history.goBack();
}
} }
onCheckAllChange = (e) => { onCheckAllChange = (e) => {
@ -543,7 +552,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,11 +590,19 @@ 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" separator=">">
<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