From e8cba53c99d721757a2c09f34214e0240f6d5564 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Mon, 19 Aug 2019 16:43:32 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/modules/courses/new/Goldsubject.js | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/courses/new/Goldsubject.js b/public/react/src/modules/courses/new/Goldsubject.js index b79a43613..95e13323d 100644 --- a/public/react/src/modules/courses/new/Goldsubject.js +++ b/public/react/src/modules/courses/new/Goldsubject.js @@ -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} /> +