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
8e79a74d
Commit
8e79a74d
authored
Nov 29, 2019
by
baixian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
15d45621
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
15 deletions
+52
-15
ManageCourse.js
src/pages/coursegather/detail/ManageCourse.js
+2
-1
index.js
src/pages/coursegather/detail/index.js
+3
-3
Card.js
src/pages/coursegather/index/Card.js
+1
-1
Card.less
src/pages/coursegather/index/Card.less
+4
-4
singleDetail.js
src/pages/onlineclasses/singleclass/singleDetail.js
+42
-6
No files found.
src/pages/coursegather/detail/ManageCourse.js
View file @
8e79a74d
...
...
@@ -304,7 +304,7 @@ class ManageCourse extends React.Component { // eslint-disable-line
onOk
=
{
this
.
submit
}
className
=
"managecoursecontainer"
bodyStyle
=
{{
padding
:
'
4
0px 20px'
,
padding
:
'
0px 2
0px 20px'
,
}}
>
<
DndProvider
backend
=
{
HTML5Backend
}
>
...
...
@@ -318,6 +318,7 @@ class ManageCourse extends React.Component { // eslint-disable-line
})}
/> */
}
<
Table
title
=
{()
=>
<
div
style
=
{{
fontSize
:
14
}}
>
直接点击拖拽课程,可以修改专栏课程排序喔
<
/div>
}
rowKey
=
"id"
columns
=
{
columns
}
dataSource
=
{
list
}
...
...
src/pages/coursegather/detail/index.js
View file @
8e79a74d
...
...
@@ -239,7 +239,7 @@ class StaticCenter extends React.Component {
}
changeStatus
=
(
key
)
=>
{
const
{
dispatch
}
=
this
.
props
;
if
(
key
==
1
)
{
if
(
Number
(
key
)
=
==
1
)
{
Modal
.
confirm
({
title
:
'确认下架吗?'
,
okButtonProps
:
{
...
...
@@ -264,7 +264,7 @@ class StaticCenter extends React.Component {
onCancel
()
{
},
});
}
else
if
(
key
==
2
)
{
}
else
if
(
Number
(
key
)
=
==
2
)
{
Modal
.
confirm
({
title
:
'确认上架吗?'
,
// okButtonProps: {
...
...
@@ -852,7 +852,7 @@ class StaticCenter extends React.Component {
<
div
className
=
{
pageStyle
.
gatherstatus
}
>
已发布
<
/div
>
}
{
gatherDetail
.
status
&&
gatherDetail
.
status
==
2
&&
<
div
className
=
{
pageStyle
.
gatherstatusnotpublish
}
>
已下架
<
/div
>
<
div
className
=
{
pageStyle
.
gatherstatusnotpublish
}
>
未发布
<
/div
>
}
<
div
className
=
{
pageStyle
.
gathertime
}
>
创建于:
{
gatherDetail
.
created_at
||
''
}
<
/div
>
<
/div
>
...
...
src/pages/coursegather/index/Card.js
View file @
8e79a74d
...
...
@@ -26,7 +26,7 @@ const MediaCard = (props) => {
<
div
className
=
{
pageStyle
.
coursecount
}
><
span
style
=
{{
color
:
'red'
,
paddingRight
:
'2px'
}}
>
{
info
.
sub_courses_count
}
<
/span>个课程</
div
>
<
/div
>
<
/div
>
{
info
.
status
==
2
&&
<
img
className
=
{
pageStyle
.
notpublishicon
}
src
=
{
`
${
__IMGCDN__
}
course/notpublish_
a
.png`
}
alt
=
""
/>
}
{
info
.
status
==
2
&&
<
img
className
=
{
pageStyle
.
notpublishicon
}
src
=
{
`
${
__IMGCDN__
}
course/notpublish_
b
.png`
}
alt
=
""
/>
}
<
/div
>
<
/Col
>
);
...
...
src/pages/coursegather/index/Card.less
View file @
8e79a74d
...
...
@@ -14,11 +14,11 @@
cursor: pointer;
border: 1px solid rgb(232, 232, 232);
.notpublishicon {
width:
49
px;
height: 4
3
px;
width:
71
px;
height: 4
4
px;
position: absolute;
right:
13
px;
bottom: 7px;
right:
4
px;
bottom:
2
7px;
}
.image {
width: 166px;
...
...
src/pages/onlineclasses/singleclass/singleDetail.js
View file @
8e79a74d
...
...
@@ -59,12 +59,48 @@ class singleDetailForm extends React.Component {
}
changeStatus
=
(
key
)
=>
{
const
{
dispatch
}
=
this
.
props
;
dispatch
({
type
:
'onlineclasses/changeCourseStatus'
,
payload
:
{
status
:
key
===
1
?
2
:
1
,
},
});
if
(
Number
(
key
)
===
1
)
{
Modal
.
confirm
({
title
:
'确认下架吗?'
,
okButtonProps
:
{
type
:
'danger'
,
style
:
{
color
:
'#fff'
,
backgroundColor
:
'#ff4d4f'
,
borderColor
:
'#ff4d4f'
,
},
},
centered
:
true
,
icon
:
<
Icon
type
=
"info-circle"
style
=
{{
color
:
'red'
}}
/>
,
onOk
()
{
dispatch
({
type
:
'onlineclasses/changeCourseStatus'
,
payload
:
{
status
:
key
===
1
?
2
:
1
,
},
});
},
zIndex
:
1100
,
onCancel
()
{
},
});
}
else
if
(
Number
(
key
)
===
2
)
{
Modal
.
confirm
({
title
:
'确认上架吗?'
,
centered
:
true
,
onOk
()
{
dispatch
({
type
:
'onlineclasses/changeCourseStatus'
,
payload
:
{
status
:
key
===
1
?
2
:
1
,
},
});
},
zIndex
:
1100
,
onCancel
()
{
},
});
}
}
uploadCourseware
=
(
values
)
=>
{
const
{
dispatch
}
=
this
.
props
;
...
...
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