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
830dd7e3
Commit
830dd7e3
authored
May 30, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:外部课程相关 merge master
parent
88745c2f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
24 deletions
+19
-24
src/modules/course-manage/video-course/components/VideoCourseList.jsx
+0
-0
src/modules/knowledge-base/index.jsx
+19
-24
No files found.
src/modules/course-manage/video-course/components/VideoCourseList.jsx
View file @
830dd7e3
This diff is collapsed.
Click to expand it.
src/modules/knowledge-base/index.jsx
View file @
830dd7e3
...
...
@@ -2,24 +2,19 @@
* @Description:
* @Author: zangsuyun
* @Date: 2021-03-12 10:43:10
<<<<<<< HEAD
* @LastEditors: fusanqiasng
* @LastEditTime: 2021-05-28 13:33:07
=======
* @LastEditors: fusanqiasng
* @LastEditTime: 2021-05-27 13:51:42
>>>>>>> 4399d60 (fix:修复外部课程相关模块bug)
* @LastEditTime: 2021-05-30 19:46:49
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
import
React
from
'react'
import
React
from
"react"
import
KnowledgeBaseFilter
from
'./components/KnowledgeBaseFilter'
import
KnowledgeBaseOpt
from
'./components/KnowledgeBaseOpt'
import
KnowledgeBaseList
from
'./components/KnowledgeBaseList'
import
Classification
from
'./components/Classification'
import
KnowledgeBaseFilter
from
"./components/KnowledgeBaseFilter"
import
KnowledgeBaseOpt
from
"./components/KnowledgeBaseOpt"
import
KnowledgeBaseList
from
"./components/KnowledgeBaseList"
import
Classification
from
"./components/Classification"
import
KnowledgeAPI
from
'@/data-source/knowledge/request-api'
import
User
from
'@/common/js/user'
import
KnowledgeAPI
from
"@/data-source/knowledge/request-api"
import
User
from
"@/common/js/user"
export
default
class
KnowledgeBase
extends
React
.
Component
{
constructor
(
props
)
{
...
...
@@ -29,12 +24,12 @@ export default class KnowledgeBase extends React.Component {
size
:
10
,
current
:
1
,
storeId
:
User
.
getStoreId
(),
categoryId
:
0
,
categoryId
:
0
},
dataSource
:
[],
// 知识库列表
totalCount
:
0
,
// 知识库数据总条数
categoryId
:
'0'
,
updateCategoryFlag
:
false
,
categoryId
:
"0"
,
updateCategoryFlag
:
false
}
}
...
...
@@ -45,7 +40,7 @@ export default class KnowledgeBase extends React.Component {
}
getSelectedCategoryId
=
(
categoryId
)
=>
{
this
.
setState
({
categoryId
,
categoryId
})
this
.
handleFetchScheduleList
({
categoryId
,
current
:
1
})
}
...
...
@@ -53,14 +48,14 @@ export default class KnowledgeBase extends React.Component {
// 更新分类树
updateCategoryTree
=
()
=>
{
this
.
setState
({
updateCategoryFlag
:
!
this
.
state
.
updateCategoryFlag
,
updateCategoryFlag
:
!
this
.
state
.
updateCategoryFlag
})
}
// 获取知识库列表
handleFetchScheduleList
=
(
_query
=
{},
flag
=
true
)
=>
{
const
query
=
{
...
this
.
state
.
query
,
...
_query
,
...
_query
}
// 更新请求参数
...
...
@@ -73,7 +68,7 @@ export default class KnowledgeBase extends React.Component {
const
{
records
=
[],
total
=
0
}
=
result
this
.
setState
({
dataSource
:
records
,
totalCount
:
Number
(
total
)
,
totalCount
:
Number
(
total
)
})
})
}
...
...
@@ -84,17 +79,17 @@ export default class KnowledgeBase extends React.Component {
<
div
className=
'page'
>
<
div
className=
'content-header'
>
知识库
</
div
>
<
div
className=
'box'
style=
{
{
display
:
'flex'
}
}
>
<
div
className=
'box'
style=
{
{
display
:
"flex"
}
}
>
{
/* 搜索模块 */
}
<
div
className=
'left'
style=
{
{
width
:
245
}
}
>
<
Classification
updateCategoryFlag=
{
updateCategoryFlag
}
categoryId=
{
categoryId
}
getSelectedCategoryId=
{
this
.
getSelectedCategoryId
}
/>
</
div
>
<
div
className=
'liner'
style=
{
{
backgroundColor
:
'rgb(238, 238, 238)'
,
width
:
0.5
,
margin
:
'1px 16px 1px 2px'
}
}
></
div
>
<
div
className=
'right'
style=
{
{
width
:
'calc(100% - 285px)'
}
}
>
<
div
className=
'liner'
style=
{
{
backgroundColor
:
"rgb(238, 238, 238)"
,
width
:
0.5
,
margin
:
"1px 16px 1px 2px"
}
}
></
div
>
<
div
className=
'right'
style=
{
{
width
:
"calc(100% - 285px)"
}
}
>
<
KnowledgeBaseFilter
onChange=
{
this
.
handleFetchScheduleList
}
/>
{
/* 操作模块 */
}
{
categoryId
!==
'0'
&&
(
{
categoryId
!==
"0"
&&
(
<
KnowledgeBaseOpt
onChange=
{
this
.
handleFetchScheduleList
}
updateCategoryTree=
{
this
.
updateCategoryTree
}
categoryId=
{
categoryId
}
/>
)
}
...
...
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