|
|
@ -554,9 +554,9 @@ class CoursesNew extends Component {
|
|
|
|
{getFieldDecorator("period",
|
|
|
|
{getFieldDecorator("period",
|
|
|
|
{
|
|
|
|
{
|
|
|
|
rules:[{
|
|
|
|
rules:[{
|
|
|
|
required:true,
|
|
|
|
required:false,
|
|
|
|
pattern: new RegExp(/^[0-9]\d*$/, "g"),
|
|
|
|
pattern: new RegExp(/^[0-9]\d*$/, "g"),
|
|
|
|
message: '不能小于0'
|
|
|
|
message: ''
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
getValueFromEvent: (event) => {
|
|
|
|
getValueFromEvent: (event) => {
|
|
|
|
return event.target.value.replace(/\D/g,'')
|
|
|
|
return event.target.value.replace(/\D/g,'')
|
|
|
@ -573,9 +573,9 @@ class CoursesNew extends Component {
|
|
|
|
{getFieldDecorator("credit",
|
|
|
|
{getFieldDecorator("credit",
|
|
|
|
{
|
|
|
|
{
|
|
|
|
rules:[{
|
|
|
|
rules:[{
|
|
|
|
required:true,
|
|
|
|
required:false,
|
|
|
|
pattern: new RegExp(/^[0-9]\d*$/, "g"),
|
|
|
|
pattern: new RegExp(/^[0-9]\d*$/, "g"),
|
|
|
|
message: '不能小于0'
|
|
|
|
message: ''
|
|
|
|
}],
|
|
|
|
}],
|
|
|
|
getValueFromEvent: (event) => {
|
|
|
|
getValueFromEvent: (event) => {
|
|
|
|
return event.target.value.replace(/\D/g,'')
|
|
|
|
return event.target.value.replace(/\D/g,'')
|
|
|
|