From 3340cacbe14165e6a534db5bf8641aa45166d751 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Thu, 9 Mar 2023 18:03:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E8=8F=9C=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/left-menu/index.tsx | 18 +++++++++++++----- src/index.less | 16 +++++++++++++++- src/pages/course/index.tsx | 4 ++-- src/pages/member/index.tsx | 2 +- src/pages/system/administrator/index.tsx | 2 +- 5 files changed, 32 insertions(+), 10 deletions(-) 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 ( <> -
+
姓名: