杨树林 6 years ago
parent 7bbc9150a6
commit 24dd22aa35

@ -104,17 +104,17 @@ class ListPageIndex extends Component{
{/*头部banner*/}
<CoursesBanner {...this.props}></CoursesBanner>
{yslGuideone===null||yslGuideone===undefined||yslGuideone===false?
(
this.props.isAdmin()===true?
<Guide
setwindowlocal={(b)=>this.setwindowlocal(b)}
>
</Guide>
:""
)
:""
}
{/*{yslGuideone===null||yslGuideone===undefined||yslGuideone===false?*/}
{/* (*/}
{/* this.props.isAdmin()===true?*/}
{/* <Guide*/}
{/* setwindowlocal={(b)=>this.setwindowlocal(b)}*/}
{/* >*/}
{/* </Guide>*/}
{/* :""*/}
{/* )*/}
{/* :""*/}
{/*}*/}
<div className="educontent clearfix" style={{flex: "1 0 auto"}}>

@ -580,7 +580,7 @@ class CoursesBanner extends Component {
<li className={"mt7 mr10im ml10"} style={{overflow:"hidden"}}>
<a>
<span className="color-grey-c fl font-16">邀请码</span>
<span className="color-grey-c fl font-16" style={{marginRight: "10px"}}>邀请码</span>
<span
className={coursedata.code_halt === true? "color-white fl font-16 bannerurli width75f" : "color-white fl font-16 bannerurli width107f marleftf10 color-orange-tip"}>
{coursedata.code_halt === true? "已停用" : coursedata.invite_code}

@ -1649,3 +1649,17 @@ input.ant-input-number-input:focus {
left: -95px;
top:120px;
}
/*.yslnobinput input{*/
/* width: 280px;*/
/* height: 40px !important;*/
/* background-color: #fafafa!important;*/
/*}*/
/*.yslnobinput .ant-input-number-input-wrap{*/
/* width: 280px;*/
/* height: 40px !important;*/
/* background-color: #fafafa!important;*/
/*}*/
.yslinputcourput .ant-form-explain{
padding-left: 0px !important;
}

@ -1,5 +1,5 @@
import React, {Component} from "React";
import {Form, Select, Input, Button, Checkbox, DatePicker,Spin,Icon,AutoComplete} from "antd";
import {Form, Select, Input, Button, Checkbox, DatePicker,Spin,Icon,AutoComplete,InputNumber} from "antd";
import ApplyForAddOrgModal from '../../user/modal/ApplyForAddOrgModal';
import axios from 'axios';
import "../css/Courses.css";
@ -539,7 +539,7 @@ class CoursesNew extends Component {
</div>
<div className="stud-class-set bor-bottom-greyE padding1020 coursenavbox coursenavboxtow">
<div className="stud-class-set bor-bottom-greyE padding1020 coursenavbox coursenavboxtow yslinputcourput">
<style>
{`
.ant-form-item{
@ -551,8 +551,18 @@ class CoursesNew extends Component {
label="总学时"
hasFeedback
>
{getFieldDecorator("period")(
<Input id="period" className="greyInput" placeholder="例如30"/>
{getFieldDecorator("period",
{
rules:[{
required:true,
pattern: new RegExp(/^[0-9]\d*$/, "g"),
message: '不能小于0'
}],
getValueFromEvent: (event) => {
return event.target.value.replace(/\D/g,'')
}}
)(
<Input id="period" className="greyInput " placeholder="例如30"/>
)}
</Form.Item>
@ -560,8 +570,18 @@ class CoursesNew extends Component {
label="学分"
hasFeedback
>
{getFieldDecorator("credit")(
<Input id="credit" className={"greyInput"} placeholder="例如3"/>
{getFieldDecorator("credit",
{
rules:[{
required:true,
pattern: new RegExp(/^[0-9]\d*$/, "g"),
message: '不能小于0'
}],
getValueFromEvent: (event) => {
return event.target.value.replace(/\D/g,'')
}}
)(
<Input id="credit" className={"greyInput "} placeholder="例如3"/>
)}
</Form.Item>
<Form.Item

@ -311,7 +311,6 @@
margin-top: 20%;
margin-left: 61%;
margin-right: 0%;
height: 33%;
}
/*成员列表*/
@ -348,9 +347,9 @@
margin-right: 43%;
}
.ysldiv31024{
margin-top: 18%;
margin-top: 19%;
margin-left: 1%;
margin-right: 38%;
margin-right: 34%;
}
/*目录管理*/
@ -427,8 +426,7 @@
margin-right: 39%;
}
.ysldiv51024{
margin-top: 34%;
margin-left: -1%;
margin-top: 30%;
margin-right: 27%;
}
@ -468,8 +466,8 @@
height: 53%;
}
.ysldiv61024{
margin-top: 26%;
margin-top: 31%;
margin-left: 27%;
margin-right: 0%;
margin-right: 0;
height: 40%;
}
Loading…
Cancel
Save