|
|
|
@ -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
|
|
|
|
|