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
e0b2d8d7
Commit
e0b2d8d7
authored
Apr 06, 2021
by
zangsuyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:dev
parent
8ee8d992
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
7 deletions
+34
-7
src/modules/knowledge-base/components/Classification.jsx
+2
-1
src/modules/knowledge-base/components/KnowledgeBaseFilter.jsx
+2
-2
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
+27
-4
src/modules/knowledge-base/modal/AddCourse.jsx
+3
-0
No files found.
src/modules/knowledge-base/components/Classification.jsx
View file @
e0b2d8d7
...
...
@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Date: 2021-03-19 18:05:23
* @LastEditors: zangsuyun
* @LastEditTime: 2021-04-0
1 11:59:56
* @LastEditTime: 2021-04-0
6 11:17:10
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -67,6 +67,7 @@ class Classification extends Component {
// 查询分类树
queryCategoryTree
=
(
categoryName
)
=>
{
let
query
=
{
categoryName
,
storeId
:
User
.
getStoreId
(),
withCount
:
true
,
};
...
...
src/modules/knowledge-base/components/KnowledgeBaseFilter.jsx
View file @
e0b2d8d7
...
...
@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Date: 2021-03-12 11:16:38
* @LastEditors: zangsuyun
* @LastEditTime: 2021-0
3-30 17:57:47
* @LastEditTime: 2021-0
4-02 15:32:13
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -102,7 +102,7 @@ class KnowledgeBaseFilter extends React.Component {
>
{
Reflect
.
ownKeys
(
ENUM
.
CourseTypeEnum
).
map
((
item
)
=>
{
return
(
<
Option
value=
{
item
}
>
{
ENUM
.
CourseTypeEnum
[
item
]
}
</
Option
>
<
Option
key=
{
item
}
value=
{
item
}
>
{
ENUM
.
CourseTypeEnum
[
item
]
}
</
Option
>
);
})
}
</
Select
>
...
...
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
View file @
e0b2d8d7
...
...
@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Date: 2021-03-12 14:49:40
* @LastEditors: zangsuyun
* @LastEditTime: 2021-04-0
2 10:54:24
* @LastEditTime: 2021-04-0
6 11:53:45
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
...
...
@@ -90,7 +90,7 @@ class KnowledgeBaseList extends React.Component {
title
:
"课程名称"
,
key
:
"name"
,
dataIndex
:
"name"
,
width
:
3
7
1
,
width
:
3
9
1
,
// fixed: "left",
render
:
(
val
,
record
)
=>
{
const
{
coverUrl
,
mediaCourseUrl
}
=
record
.
source
;
...
...
@@ -105,7 +105,11 @@ class KnowledgeBaseList extends React.Component {
if
(
item
.
contentType
===
"COVER"
)
{
hasCover
=
true
;
return
(
<
img
className=
"course-cover"
src=
{
item
.
mediaUrl
}
/>
<
img
className=
"course-cover"
key=
{
index
}
src=
{
item
.
mediaUrl
}
/>
);
}
})
}
...
...
@@ -145,6 +149,25 @@ class KnowledgeBaseList extends React.Component {
>
{
ENUM
.
courseStateShow
[
record
.
source
.
courseState
].
title
}
</
span
>
{
record
.
hideToUser
&&
(
<
Tooltip
title=
{
<
div
>
课程未成功开课,已在用户知识列表中隐藏
</
div
>
}
>
<
i
className=
"icon iconfont"
style=
{
{
marginLeft
:
"5px"
,
cursor
:
"pointer"
,
color
:
"#bfbfbf"
,
fontSize
:
"14px"
,
}
}
>

</
i
>
</
Tooltip
>
)
}
</
div
>
<
div
className=
"teacher-assistant"
>
{
record
.
source
.
teacherName
.
length
>
4
?
(
...
...
@@ -187,7 +210,7 @@ class KnowledgeBaseList extends React.Component {
助教:
{
record
.
source
.
admins
.
map
((
item
,
index
)
=>
{
return
(
<
span
>
<
span
key=
{
index
}
>
{
item
.
adminName
}{
" "
}
{
index
<
record
.
source
.
admins
.
length
-
1
&&
(
...
...
src/modules/knowledge-base/modal/AddCourse.jsx
View file @
e0b2d8d7
...
...
@@ -67,6 +67,7 @@ class AddCourse extends React.Component {
excludeUsed
:
true
,
courseType
:
"LIVE"
,
storeId
:
User
.
getStoreId
(),
toRefKnowledgeCategoryId
:
this
.
props
.
categoryId
},
liveTotalCount
:
0
,
selectLive
:
[],
//弹窗内已选择的直播课程
...
...
@@ -78,6 +79,7 @@ class AddCourse extends React.Component {
courseType
:
"VOICE"
,
excludeUsed
:
true
,
storeId
:
User
.
getStoreId
(),
toRefKnowledgeCategoryId
:
this
.
props
.
categoryId
},
videoTotalCount
:
0
,
selectVideo
:
[],
//弹窗内已选择的视频课程
...
...
@@ -89,6 +91,7 @@ class AddCourse extends React.Component {
excludeUsed
:
true
,
courseType
:
"PICTURE"
,
storeId
:
User
.
getStoreId
(),
toRefKnowledgeCategoryId
:
this
.
props
.
categoryId
},
pictureTotalCount
:
0
,
selectPicture
:
[],
//弹窗内已选择的图文课程
...
...
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