Commit 90a5fe98 authored by wangxuelai's avatar wangxuelai

'最新代码提交续课赠送课时非必填'

parent eb7f5d2f
......@@ -154,10 +154,10 @@ class StudentAddForm extends React.Component {
{getFieldDecorator('give', {
initialValue: 0,
rules: [
{
required: true,
message: '请输入赠送课时',
},
// {
// required: true,
// message: '请输入赠送课时',
// },
],
})(
<InputNumber min={0} style={{ width: 200 }} />,
......@@ -209,10 +209,10 @@ class StudentAddForm extends React.Component {
{getFieldDecorator('give', {
initialValue: 0,
rules: [
{
required: true,
message: '请输入赠送课时',
},
// {
// required: true,
// message: '请输入赠送课时',
// },
],
})(
<InputNumber min={0} style={{ width: 200 }} />,
......
......@@ -258,10 +258,14 @@ class StudentMgt extends React.Component {
}
renewCourse = (values) => {
const { dispatch } = this.props;
console.log(values, 'values');
dispatch({
type: 'studentsinfo/studentModelCoursesBuyOrRenew',
payload: {
values,
values: {
...values,
give: values.give || 0,
},
},
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment