mirror of
https://github.com/PlayEdu/backend
synced 2025-06-26 21:22:45 +08:00
线上课分类,部门联动标题
This commit is contained in:
parent
df2058244b
commit
7f6154d3df
@ -43,6 +43,7 @@ export const CoursePage = () => {
|
|||||||
const [category_ids, setCategoryIds] = useState<any>([]);
|
const [category_ids, setCategoryIds] = useState<any>([]);
|
||||||
const [title, setTitle] = useState<string>("");
|
const [title, setTitle] = useState<string>("");
|
||||||
const [dep_ids, setDepIds] = useState<any>([]);
|
const [dep_ids, setDepIds] = useState<any>([]);
|
||||||
|
const [selLabel, setLabel] = useState<string>("全部视频");
|
||||||
|
|
||||||
const items: TabsProps["items"] = [
|
const items: TabsProps["items"] = [
|
||||||
{
|
{
|
||||||
@ -52,7 +53,10 @@ export const CoursePage = () => {
|
|||||||
<div className="float-left">
|
<div className="float-left">
|
||||||
<TreeCategory
|
<TreeCategory
|
||||||
text={"课程"}
|
text={"课程"}
|
||||||
onUpdate={(keys: any) => setCategoryIds(keys)}
|
onUpdate={(keys: any, title: any) => {
|
||||||
|
setCategoryIds(keys);
|
||||||
|
setLabel(title);
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
@ -64,7 +68,10 @@ export const CoursePage = () => {
|
|||||||
<div className="float-left">
|
<div className="float-left">
|
||||||
<TreeDepartment
|
<TreeDepartment
|
||||||
text={"部门"}
|
text={"部门"}
|
||||||
onUpdate={(keys: any) => setDepIds(keys)}
|
onUpdate={(keys: any, title: any) => {
|
||||||
|
setDepIds(keys);
|
||||||
|
setLabel(title);
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
@ -211,7 +218,7 @@ export const CoursePage = () => {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="right-box">
|
<div className="right-box">
|
||||||
<div className="playedu-main-title float-left mb-24">后端课程</div>
|
<div className="playedu-main-title float-left mb-24">{selLabel}</div>
|
||||||
<div className="float-left j-b-flex mb-24">
|
<div className="float-left j-b-flex mb-24">
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
<Link style={{ textDecoration: "none" }} to={`/course/create`}>
|
<Link style={{ textDecoration: "none" }} to={`/course/create`}>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user