Commit 7698fcaa by zangsuyun

fix:bug自测修复

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