diff --git a/src/compenents/left-menu/index.tsx b/src/compenents/left-menu/index.tsx index 94d4f26..7c9cfde 100644 --- a/src/compenents/left-menu/index.tsx +++ b/src/compenents/left-menu/index.tsx @@ -32,10 +32,16 @@ const items = [ ], null ), - getItem("课程中心", "/course", , null, null), + getItem( + "课程中心", + "4", + , + [getItem("线上课", "/course", null, null, null)], + null + ), getItem( "学员管理", - "4", + "5", , [ getItem("学员", "/member", null, null, null), @@ -45,7 +51,7 @@ const items = [ ), getItem( "系统设置", - "5", + "6", , [ getItem("管理人员", "/system/administrator", null, null, null), @@ -61,9 +67,11 @@ const children2Parent: any = { "/member": ["4"], "/department": ["4"], + + "/course": ["5"], - "/system/administrator": ["5"], - "/system/adminroles": ["5"], + "/system/administrator": ["6"], + "/system/adminroles": ["6"], }; export const LeftMenu: React.FC = () => { diff --git a/src/index.less b/src/index.less index 6f8a499..d165b2f 100644 --- a/src/index.less +++ b/src/index.less @@ -123,7 +123,7 @@ code { height: 150px; } -.playedu-main-body { +.playedu-main-top{ width: 100%; height: auto; float: left; @@ -133,6 +133,20 @@ code { border-radius: 12px; } +.playedu-main-body { + width: 100%; + height: auto; + min-height: calc(100vh - 252px); + float: left; + background-color: white; + box-sizing: border-box; + padding: 24px; + border-radius: 12px; + &.only{ + min-height: calc(100vh - 172px); + } +} + .ant-menu-item { width: calc(100% - 32px) !important; margin-left: 16px !important; diff --git a/src/pages/course/index.tsx b/src/pages/course/index.tsx index 9e52254..f5564da 100644 --- a/src/pages/course/index.tsx +++ b/src/pages/course/index.tsx @@ -166,7 +166,7 @@ export const CoursePage = () => { <> -
+
资源分类: @@ -182,7 +182,7 @@ export const CoursePage = () => {
-
+
课程名称: diff --git a/src/pages/member/index.tsx b/src/pages/member/index.tsx index 134aa22..0593b39 100644 --- a/src/pages/member/index.tsx +++ b/src/pages/member/index.tsx @@ -183,7 +183,7 @@ export const MemberPage: React.FC = () => {
-
+
昵称: diff --git a/src/pages/system/administrator/index.tsx b/src/pages/system/administrator/index.tsx index c4de747..f56162c 100644 --- a/src/pages/system/administrator/index.tsx +++ b/src/pages/system/administrator/index.tsx @@ -148,7 +148,7 @@ export const SystemAdministratorPage: React.FC = () => { return ( <> -
+
姓名: