分类、部门删除预检查

This commit is contained in:
禺狨
2023-03-15 16:03:25 +08:00
5 changed files with 16 additions and 4 deletions

View File

@@ -43,7 +43,11 @@ export const CoursePage = () => {
const [dep_ids, setDepIds] = useState<any>([]);
const [selLabel, setLabel] = useState<string>("全部课程");
const [categoryCount, setCategoryCount] = useState<any>({});
<<<<<<< HEAD
const [tabKey, setTabKey] = useState(1);
=======
const [pureTotal, setPureTotal] = useState(0);
>>>>>>> fc90ddf2cc1481f6aa7fb80b7d2746f7bbc94fcd
const items: TabsProps["items"] = [
{
@@ -52,6 +56,7 @@ export const CoursePage = () => {
children: (
<div className="float-left">
<TreeCategory
resourceTotal={pureTotal}
text={"课程"}
categoryCount={categoryCount}
onUpdate={(keys: any, title: any) => {
@@ -178,6 +183,7 @@ export const CoursePage = () => {
setTotal(res.data.total);
setList(res.data.data);
setCategoryCount(res.data.category_count);
setPureTotal(res.data.pure_total);
setLoading(false);
})
.catch((err: any) => {