Commit 69755fc9 by zhangleyuan

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

parent e950fa02
......@@ -250,22 +250,9 @@ function CourseCatalogPage() {
}
setChooseItem(record);
}
// function expandSecondCatalog(expanded:boolean,record:any){
// const parentId = 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
// });
// }
function expandSecondCatalog(expanded:boolean,record:any){
setParentCatalogId(record.id);
}
return (
<div className=" page course-catalog-page">
<div className="page-content">
......@@ -295,6 +282,7 @@ function CourseCatalogPage() {
}
}}
dataSource={courseCatalogList}
onExpand={(expanded, record)=>expandSecondCatalog(expanded, record)}
/>
</div>
<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