Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
ea911237
Commit
ea911237
authored
May 30, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/pangguoming/20210528/external_courses' into rc
parents
08db43e4
2499826b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
44 deletions
+38
-44
src/modules/course-manage/graphics-course/components/GraphicsCourseList.less
+24
-26
src/modules/course-manage/video-course/components/VideoCourseFilter.jsx
+4
-12
src/modules/course-manage/video-course/components/VideoCourseList.jsx
+3
-3
src/modules/course-manage/video-course/components/VideoCourseList.less
+4
-1
src/modules/knowledge-base/modal/AddCourse.jsx
+3
-2
No files found.
src/modules/course-manage/graphics-course/components/GraphicsCourseList.less
View file @
ea911237
.video-course-list {
.video-course-list {
margin-top: 12px;
margin-top: 12px;
.video-list-table{
.video-list-table
{
tbody {
tbody {
tr{
tr
{
&:nth-child(even){
&:nth-child(even)
{
background: transparent !important;
background: transparent !important;
td{
td
{
background:
#FFF
!important;
background:
#fff
!important;
}
}
}
}
&:nth-child(odd){
&:nth-child(odd)
{
background: #
FAFAFA
!important;
background: #
fafafa
!important;
td{
td
{
background: #
FAFAFA
!important;
background: #
fafafa
!important;
}
}
}
}
&:hover{
&:hover
{
td{
td
{
background:
#F
3f6fa !important;
background:
#f
3f6fa !important;
}
}
}
}
}
}
}
}
}
}
.watchUserCount{
.watchUserCount
{
text-align:right;
text-align:
right;
padding:16px;
padding:
16px;
}
}
.operate-text {
.operate-text {
color: #5289
FA
;
color: #5289
fa
;
cursor: pointer;
cursor: pointer;
}
}
.operate {
.operate {
display: flex;
display: flex;
&__item {
&__item {
color: #5289
FA
;
color: #5289
fa
;
cursor: pointer;
cursor: pointer;
&.split {
&.split {
margin: 0 8px;
margin: 0 8px;
color: #
BFBFBF
;
color: #
bfbfbf
;
}
}
}
}
}
}
.more-operate{
.more-operate
{
line-height:20px;
line-height:
20px;
}
}
.record__item {
.record__item {
display: flex;
display: flex;
...
@@ -56,21 +56,20 @@
...
@@ -56,21 +56,20 @@
height: 50px;
height: 50px;
border-radius: 2px;
border-radius: 2px;
margin-right: 8px;
margin-right: 8px;
background-color: #666;
//
background-color: #666;
}
}
.course-name {
.course-name {
color: #666;
color: #666;
width:188px;
width:
188px;
overflow: hidden;
overflow: hidden;
text-overflow: ellipsis;
text-overflow: ellipsis;
display: -webkit-box;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
-webkit-box-orient: vertical;
height:48px;
height:
48px;
}
}
}
}
}
}
.video-course-more-menu {
.video-course-more-menu {
...
@@ -85,4 +84,4 @@
...
@@ -85,4 +84,4 @@
background: #f3f6fa;
background: #f3f6fa;
}
}
}
}
}
}
\ No newline at end of file
src/modules/course-manage/video-course/components/VideoCourseFilter.jsx
View file @
ea911237
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Author: 吴文洁
* @Date: 2020-08-05 10:11:57
* @Date: 2020-08-05 10:11:57
* @LastEditors: fusanqiasng
* @LastEditors: fusanqiasng
* @LastEditTime: 2021-05-28
15:38:11
* @LastEditTime: 2021-05-28
20:14:37
* @Description: 视频课-搜索模块
* @Description: 视频课-搜索模块
* @Copyright: 杭州杰竞科技有限公司 版权所有
* @Copyright: 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -78,14 +78,7 @@ class VideoCourseFilter extends React.Component {
...
@@ -78,14 +78,7 @@ class VideoCourseFilter extends React.Component {
renderTreeNodes
=
(
data
)
=>
{
renderTreeNodes
=
(
data
)
=>
{
let
newTreeData
=
data
.
map
((
item
)
=>
{
let
newTreeData
=
data
.
map
((
item
)
=>
{
item
.
title
=
(
item
.
title
=
<
span
>
{
item
.
categoryName
}
</
span
>
<
span
>
<
span
className=
'icon iconfont'
style=
{
{
color
:
'#FBD140'
}
}
>

</
span
>
{
item
.
categoryName
}
</
span
>
)
item
.
key
=
item
.
id
item
.
key
=
item
.
id
if
(
item
.
sonCategoryList
)
{
if
(
item
.
sonCategoryList
)
{
item
.
children
=
this
.
renderTreeNodes
(
item
.
sonCategoryList
)
item
.
children
=
this
.
renderTreeNodes
(
item
.
sonCategoryList
)
...
@@ -194,7 +187,6 @@ class VideoCourseFilter extends React.Component {
...
@@ -194,7 +187,6 @@ class VideoCourseFilter extends React.Component {
categoryList
,
categoryList
,
}
=
this
.
state
}
=
this
.
state
console
.
log
(
'categoryList'
,
categoryList
)
return
(
return
(
<
div
className=
'video-course-filter'
>
<
div
className=
'video-course-filter'
>
<
Row
type=
'flex'
justify=
'space-between'
align=
'top'
>
<
Row
type=
'flex'
justify=
'space-between'
align=
'top'
>
...
@@ -276,8 +268,8 @@ class VideoCourseFilter extends React.Component {
...
@@ -276,8 +268,8 @@ class VideoCourseFilter extends React.Component {
treeNodeFilterProp=
'categoryName'
treeNodeFilterProp=
'categoryName'
showSearch
showSearch
value=
{
categoryId
||
null
}
value=
{
categoryId
||
null
}
style=
{
{
w
idth
:
'calc(100% - 75px)'
}
}
style=
{
{
minW
idth
:
'calc(100% - 75px)'
}
}
dropdown
Style=
{
{
maxHeight
:
400
,
overflow
:
'auto'
}
}
dropdown
MatchSelectWidth=
{
false
}
treeData=
{
categoryList
}
treeData=
{
categoryList
}
placeholder=
'请选择课程分类'
placeholder=
'请选择课程分类'
allowClear
allowClear
...
...
src/modules/course-manage/video-course/components/VideoCourseList.jsx
View file @
ea911237
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Date: 2020-08-05 10:12:45
* @Date: 2020-08-05 10:12:45
* @LastEditors: fusanqiasng
* @LastEditors: fusanqiasng
<<<<<<< HEAD
<<<<<<< HEAD
* @LastEditTime: 2021-05-28 1
4:01:36
* @LastEditTime: 2021-05-28 1
6:17:35
=======
=======
<<<<<<< Updated upstream
<<<<<<< Updated upstream
* @LastEditTime: 2021-05-27 17:48:31
* @LastEditTime: 2021-05-27 17:48:31
...
@@ -463,11 +463,11 @@ class VideoCourseList extends React.Component {
...
@@ -463,11 +463,11 @@ class VideoCourseList extends React.Component {
)
)
}
}
render
()
{
render
()
{
const
{
dataSource
=
[],
totalCount
,
query
}
=
this
.
props
const
{
dataSource
=
[],
totalCount
,
query
,
type
}
=
this
.
props
const
{
current
,
size
}
=
query
const
{
current
,
size
}
=
query
const
{
RelatedPlanModalVisible
,
selectPlanList
,
selectCourseId
}
=
this
.
state
const
{
RelatedPlanModalVisible
,
selectPlanList
,
selectCourseId
}
=
this
.
state
return
(
return
(
<
div
className=
'video-course-list'
>
<
div
className=
{
`video-course-list ${type !== 'internal' ? 'video-course-list-mt' : ''}`
}
>
<
Table
<
Table
rowKey=
{
(
record
)
=>
record
.
id
}
rowKey=
{
(
record
)
=>
record
.
id
}
dataSource=
{
dataSource
}
dataSource=
{
dataSource
}
...
...
src/modules/course-manage/video-course/components/VideoCourseList.less
View file @
ea911237
.video-course-list {
.video-course-list {
margin-top: 12px;
margin-top: 12px;
&.video-course-list-mt {
margin-top: 4px;
}
.video-list-table {
.video-list-table {
tbody {
tbody {
tr {
tr {
...
@@ -56,7 +59,7 @@
...
@@ -56,7 +59,7 @@
height: 50px;
height: 50px;
border-radius: 2px;
border-radius: 2px;
margin-right: 8px;
margin-right: 8px;
background-color: #666;
//
background-color: #666;
}
}
.course-name {
.course-name {
...
...
src/modules/knowledge-base/modal/AddCourse.jsx
View file @
ea911237
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Author: zangsuyun
* @Date: 2021-03-13 09:54:26
* @Date: 2021-03-13 09:54:26
* @LastEditors: fusanqiasng
* @LastEditors: fusanqiasng
* @LastEditTime: 2021-05-28
15:35:33
* @LastEditTime: 2021-05-28
20:19:06
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
...
@@ -890,7 +890,8 @@ class AddCourse extends React.Component {
...
@@ -890,7 +890,8 @@ class AddCourse extends React.Component {
<
TreeSelect
<
TreeSelect
treeNodeFilterProp=
'categoryName'
treeNodeFilterProp=
'categoryName'
showSearch
showSearch
style=
{
{
width
:
'calc(100% - 75px)'
}
}
style=
{
{
minWidth
:
'calc(100% - 75px)'
}
}
dropdownMatchSelectWidth=
{
false
}
dropdownStyle=
{
{
maxHeight
:
400
,
overflow
:
'auto'
}
}
dropdownStyle=
{
{
maxHeight
:
400
,
overflow
:
'auto'
}
}
treeData=
{
videoCourseDivision
===
'internal'
?
categoryList
:
categoryListExternal
}
treeData=
{
videoCourseDivision
===
'internal'
?
categoryList
:
categoryListExternal
}
placeholder=
'请选择课程类型'
placeholder=
'请选择课程类型'
...
...
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