Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
biz.qingxiao.com
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangxuelai
biz.qingxiao.com
Commits
2ae07a65
Commit
2ae07a65
authored
Nov 28, 2019
by
wangxuelai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
a12a9c70
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
5 deletions
+6
-5
coursegatherdetail.js
src/models/coursegatherdetail.js
+2
-1
CourseBox.js
src/pages/coursegather/detail/CourseBox.js
+1
-2
AddCourseModal.js
src/pages/coursegather/index/AddCourseModal.js
+1
-1
AddCourseModal.js
src/pages/onlineclasses/singleclass/AddCourseModal.js
+2
-1
No files found.
src/models/coursegatherdetail.js
View file @
2ae07a65
...
...
@@ -1580,7 +1580,7 @@ export default {
...
editSingleCourseInfo
,
...
value
,
id
,
content
:
JSON
.
stringify
(
editSingleCourseInfo
.
content
)
,
content
:
editSingleCourseInfo
.
content
?
JSON
.
stringify
(
editSingleCourseInfo
.
content
)
:
''
,
});
}
else
{
saveData
=
yield
call
(
onlineAjax
.
editCourse
,
{
...
...
@@ -1599,6 +1599,7 @@ export default {
});
const
{
code
,
data
}
=
saveData
;
if
(
code
==
200
)
{
message
.
success
(
'保存成功'
,
1
);
yield
put
({
type
:
'selectCourseList'
,
payload
:
{
...
...
src/pages/coursegather/detail/CourseBox.js
View file @
2ae07a65
...
...
@@ -27,7 +27,6 @@ class CourseBoxForm extends React.Component {
title
,
start_time
,
}
=
values
;
console
.
log
(
start_time
,
'start_time'
);
save
({
title
,
start_time
:
moment
(
start_time
).
format
(
'YYYY-MM-DD HH:mm'
),
...
...
@@ -303,7 +302,7 @@ class CourseBoxForm extends React.Component {
<
/FormItem
>
<
FormItem
{...
formItemModalLineLayout
}
label
=
"开课时间"
>
{
getFieldDecorator
(
'start_time'
,
{
initialValue
:
editSingleCourseInfo
.
start_time
?
moment
(
editSingleCourseInfo
.
start_time
,
'YYYY-MM-DD HH:mm'
)
:
null
,
initialValue
:
editSingleCourseInfo
.
start_time
?
moment
(
editSingleCourseInfo
.
start_time
,
'YYYY-MM-DD HH:mm'
)
:
moment
(
new
Date
(),
'YYYY-MM-DD'
)
,
rules
:
[
{
required
:
true
,
...
...
src/pages/coursegather/index/AddCourseModal.js
View file @
2ae07a65
...
...
@@ -199,8 +199,8 @@ class AddCourseModalForm extends React.Component {
],
})(
<
Radio
.
Group
>
<
Radio
value
=
"2"
>
免费
<
/Radio
>
<
Radio
value
=
"1"
>
加密
<
/Radio
>
<
Radio
value
=
"2"
>
不加密
<
/Radio
>
<
/Radio.Group>
,
)}
<
/FormItem
>
...
...
src/pages/onlineclasses/singleclass/AddCourseModal.js
View file @
2ae07a65
...
...
@@ -159,6 +159,7 @@ class AddCourseModalForm extends React.Component {
<
/FormItem
>
<
FormItem
{...
formItemModalLineLayout
}
label
=
"开课时间"
>
{
getFieldDecorator
(
'time'
,
{
initialValue
:
moment
(
new
Date
(),
'YYYY-MM-DD'
),
rules
:
[
{
required
:
true
,
...
...
@@ -195,8 +196,8 @@ class AddCourseModalForm extends React.Component {
],
})(
<
Radio
.
Group
>
<
Radio
value
=
"2"
>
免费
<
/Radio
>
<
Radio
value
=
"1"
>
加密
<
/Radio
>
<
Radio
value
=
"2"
>
不加密
<
/Radio
>
<
/Radio.Group>
,
)}
<
/FormItem
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment