Commit 69755fc9 by zhangleyuan

feat:课程分类里的编辑分类修改

parent e950fa02
...@@ -250,22 +250,9 @@ function CourseCatalogPage() { ...@@ -250,22 +250,9 @@ function CourseCatalogPage() {
} }
setChooseItem(record); setChooseItem(record);
} }
// function expandSecondCatalog(expanded:boolean,record:any){ function expandSecondCatalog(expanded:boolean,record:any){
// const parentId = record.id; setParentCatalogId(record.id);
// const param = { }
// parentId,
// }
// StoreService.getAllSonCategory(param).then((res: any) => {
// record.child= res.result || [];
// record.child.map((item:any,index:any) => {
// item.key= item.id
// return item
// })
// const _courseCatalogList =[...courseCatalogList];
// setCourseCatalogList(_courseCatalogList);
// return
// });
// }
return ( return (
<div className=" page course-catalog-page"> <div className=" page course-catalog-page">
<div className="page-content"> <div className="page-content">
...@@ -295,6 +282,7 @@ function CourseCatalogPage() { ...@@ -295,6 +282,7 @@ function CourseCatalogPage() {
} }
}} }}
dataSource={courseCatalogList} dataSource={courseCatalogList}
onExpand={(expanded, record)=>expandSecondCatalog(expanded, record)}
/> />
</div> </div>
<div className="box-footer"> <div className="box-footer">
......
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