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
43c3187e
Commit
43c3187e
authored
Apr 07, 2021
by
zangsuyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:未分类不支持移动
parent
82562bd2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
+14
-4
src/modules/knowledge-base/index.jsx
+3
-2
No files found.
src/modules/knowledge-base/components/KnowledgeBaseList.jsx
View file @
43c3187e
...
@@ -3,12 +3,12 @@
...
@@ -3,12 +3,12 @@
* @Author: zangsuyun
* @Author: zangsuyun
* @Date: 2021-03-12 14:49:40
* @Date: 2021-03-12 14:49:40
* @LastEditors: zangsuyun
* @LastEditors: zangsuyun
* @LastEditTime: 2021-04-0
6 11:53:45
* @LastEditTime: 2021-04-0
7 13:49:59
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
import
React
from
"react"
;
import
React
from
"react"
;
import
{
Table
,
Modal
,
message
,
Tooltip
,
Switch
,
Dropdown
}
from
"antd"
;
import
{
Table
,
Modal
,
message
,
Tooltip
,
Switch
,
Dropdown
,
Button
}
from
"antd"
;
import
{
Route
,
withRouter
}
from
"react-router-dom"
;
import
{
Route
,
withRouter
}
from
"react-router-dom"
;
import
{
PageControl
}
from
"@/components"
;
import
{
PageControl
}
from
"@/components"
;
import
{
LIVE_SHARE_MAP
}
from
"@/common/constants/academic/cloudClass"
;
import
{
LIVE_SHARE_MAP
}
from
"@/common/constants/academic/cloudClass"
;
...
@@ -160,7 +160,7 @@ class KnowledgeBaseList extends React.Component {
...
@@ -160,7 +160,7 @@ class KnowledgeBaseList extends React.Component {
style=
{
{
style=
{
{
marginLeft
:
"5px"
,
marginLeft
:
"5px"
,
cursor
:
"pointer"
,
cursor
:
"pointer"
,
color
:
"#
bfbfbf
"
,
color
:
"#
FF4F4F
"
,
fontSize
:
"14px"
,
fontSize
:
"14px"
,
}
}
}
}
>
>
...
@@ -340,7 +340,17 @@ class KnowledgeBaseList extends React.Component {
...
@@ -340,7 +340,17 @@ class KnowledgeBaseList extends React.Component {
width
:
160
,
width
:
160
,
// fixed: "right",
// fixed: "right",
render
:
(
val
,
record
,
index
)
=>
{
render
:
(
val
,
record
,
index
)
=>
{
return
(
console
.
log
(
this
.
props
.
categoryId
);
return
this
.
props
.
categoryId
===
'0'
?
(
<
div
className=
"operate"
>
<
div
className=
"operate__item"
onClick=
{
()
=>
this
.
handleDelete
(
record
)
}
>
移出
</
div
>
</
div
>
)
:
(
<
div
className=
"operate"
>
<
div
className=
"operate"
>
<
div
<
div
className=
{
className=
{
...
...
src/modules/knowledge-base/index.jsx
View file @
43c3187e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @Author: zangsuyun
* @Author: zangsuyun
* @Date: 2021-03-12 10:43:10
* @Date: 2021-03-12 10:43:10
* @LastEditors: zangsuyun
* @LastEditors: zangsuyun
* @LastEditTime: 2021-0
3-30 15:42:20
* @LastEditTime: 2021-0
4-07 13:50:11
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/
*/
import
React
from
"react"
;
import
React
from
"react"
;
...
@@ -28,7 +28,7 @@ export default class KnowledgeBase extends React.Component {
...
@@ -28,7 +28,7 @@ export default class KnowledgeBase extends React.Component {
},
},
dataSource
:
[],
// 知识库列表
dataSource
:
[],
// 知识库列表
totalCount
:
0
,
// 知识库数据总条数
totalCount
:
0
,
// 知识库数据总条数
categoryId
:
0
,
categoryId
:
'0'
,
updateCategoryFlag
:
false
,
updateCategoryFlag
:
false
,
};
};
}
}
...
@@ -110,6 +110,7 @@ export default class KnowledgeBase extends React.Component {
...
@@ -110,6 +110,7 @@ export default class KnowledgeBase extends React.Component {
{
/* 知识库列表模块 */
}
{
/* 知识库列表模块 */
}
<
KnowledgeBaseList
<
KnowledgeBaseList
query=
{
query
}
query=
{
query
}
categoryId=
{
categoryId
}
dataSource=
{
dataSource
}
dataSource=
{
dataSource
}
totalCount=
{
totalCount
}
totalCount=
{
totalCount
}
onChange=
{
this
.
handleFetchScheduleList
}
onChange=
{
this
.
handleFetchScheduleList
}
...
...
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