chromesetting
杨树明 5 years ago
parent 926586fe2d
commit 7d6ad09f19

@ -271,9 +271,15 @@ export default class Shixuninformation extends Component {
} }
setopentime = (e) => { setopentime = (e) => {
if(e.target.checked===false){
this.setState({
opening_time:null
})
}
this.setState({ this.setState({
opentime: e.target.checked opentime: e.target.checked
}) })
} }
render() { render() {

@ -456,14 +456,14 @@ class Newshixuns extends Component {
</div> </div>
<div className="padding10-20 color-grey-3 clearfix"> <div className="padding10-20 color-grey-3 clearfix">
<Form> <Form>
{this.props.user&&this.props.user.admin===true||this.props.user&&this.props.user.business===true?<Form.Item label="实训类型"> <Form.Item label="实训类型">
{getFieldDecorator('is_jupyter')( {getFieldDecorator('is_jupyter')(
<Radio.Group onChange={this.RadiovalueonChange} value={this.state.Radiovalue}> <Radio.Group onChange={this.RadiovalueonChange} value={this.state.Radiovalue}>
<Radio value="1">普通实训</Radio> <Radio value="1">普通实训</Radio>
<Radio value="2">Jupyter实训</Radio> {this.props.user&&this.props.user.admin===true||this.props.user&&this.props.user.business===true?<Radio value="2" >Jupyter实训</Radio>:""}
</Radio.Group>, </Radio.Group>,
)} )}
</Form.Item>:""} </Form.Item>
<Form.Item <Form.Item
label="名称" label="名称"
className="mt15" className="mt15"

Loading…
Cancel
Save