Commit 7698fcaa by zangsuyun

fix:bug自测修复

parent 1dc87439
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: zangsuyun * @Author: zangsuyun
* @Date: 2021-03-12 14:49:40 * @Date: 2021-03-12 14:49:40
* @LastEditors: zangsuyun * @LastEditors: zangsuyun
* @LastEditTime: 2021-03-30 10:45:21 * @LastEditTime: 2021-03-31 10:25:56
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -347,7 +347,7 @@ class KnowledgeBaseList extends React.Component { ...@@ -347,7 +347,7 @@ class KnowledgeBaseList extends React.Component {
className="operate__item" className="operate__item"
onClick={() => this.handleDelete(record)} onClick={() => this.handleDelete(record)}
> >
</div> </div>
</div> </div>
); );
...@@ -359,8 +359,8 @@ class KnowledgeBaseList extends React.Component { ...@@ -359,8 +359,8 @@ class KnowledgeBaseList extends React.Component {
handleDelete = (record) => { handleDelete = (record) => {
return confirm({ return confirm({
title: "移知识", title: "移知识",
content: "确定将分类中此知识移吗?", content: "确定将分类中此知识移吗?",
icon: ( icon: (
<span className="icon iconfont default-confirm-icon">&#xe839; </span> <span className="icon iconfont default-confirm-icon">&#xe839; </span>
), ),
...@@ -393,7 +393,7 @@ class KnowledgeBaseList extends React.Component { ...@@ -393,7 +393,7 @@ class KnowledgeBaseList extends React.Component {
}; };
KnowledgeAPI.delKnowledge(params).then((res) => { KnowledgeAPI.delKnowledge(params).then((res) => {
if (res.success) { if (res.success) {
message.success("移成功"); message.success("移成功");
this.props.onChange(); this.props.onChange();
this.props.updateCategoryTree(); this.props.updateCategoryTree();
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @Author: zangsuyun * @Author: zangsuyun
* @Date: 2021-03-12 14:25:52 * @Date: 2021-03-12 14:25:52
* @LastEditors: zangsuyun * @LastEditors: zangsuyun
* @LastEditTime: 2021-03-24 15:18:26 * @LastEditTime: 2021-03-31 10:23:05
* @Copyright: © 2020 杭州杰竞科技有限公司 版权所有 * @Copyright: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -26,10 +26,10 @@ export default function KnowledgeBaseOpt({ ...@@ -26,10 +26,10 @@ export default function KnowledgeBaseOpt({
const menu = ( const menu = (
<Menu> <Menu>
<Menu.Item key="1" style={{ textAlign: "center" }}> <Menu.Item key="1" style={{ textAlign: "center" }}>
<span onClick={handAddCourse}>新增课程</span> <span onClick={handAddCourse}>添加课程</span>
</Menu.Item> </Menu.Item>
<Menu.Item key="2" style={{ textAlign: "center" }}> <Menu.Item key="2" style={{ textAlign: "center" }}>
<span onClick={handleAddFile}>新增资料</span> <span onClick={handleAddFile}>添加资料</span>
</Menu.Item> </Menu.Item>
</Menu> </Menu>
); );
...@@ -53,7 +53,7 @@ export default function KnowledgeBaseOpt({ ...@@ -53,7 +53,7 @@ export default function KnowledgeBaseOpt({
categoryId: categoryId, categoryId: categoryId,
refIds, refIds,
storeId: User.getStoreId(), storeId: User.getStoreId(),
createId: User.getUserId(), createId: User.getStoreUserId(),
type: "FOLDER", type: "FOLDER",
}; };
KnowledgeAPI.addKnowledge(params).then(({ success }) => { KnowledgeAPI.addKnowledge(params).then(({ success }) => {
...@@ -89,7 +89,7 @@ export default function KnowledgeBaseOpt({ ...@@ -89,7 +89,7 @@ export default function KnowledgeBaseOpt({
<div className="video-course-opt"> <div className="video-course-opt">
<Dropdown overlay={menu}> <Dropdown overlay={menu}>
<Button type="primary" className="mr12"> <Button type="primary" className="mr12">
新增知识 添加知识
<DownOutlined /> <DownOutlined />
</Button> </Button>
</Dropdown> </Dropdown>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment