Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xiaomai-cloud-class-web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xiaomai-cloud-class
xiaomai-cloud-class-web
Commits
718ee023
Commit
718ee023
authored
Jun 29, 2021
by
guomingpang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:课程管理缺省图替换,导航栏收起高亮
parent
510254f6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
src/modules/root/Menu.tsx
+1
-4
src/routes/config/menuList.tsx
+5
-0
No files found.
src/modules/root/Menu.tsx
View file @
718ee023
...
...
@@ -118,15 +118,12 @@ function Aside(props: any) {
if
(
ctx
.
xmState
.
storeUserPermissionList
.
indexOf
(
item
.
groupCode
)
===
-
1
)
{
return
null
;
}
// console.log('selectKe===>', selectKey);
// console.log('item===>', item);
if
(
item
.
children
)
{
return
(
<
SubMenu
key=
{
item
.
groupCode
}
style=
{
{
marginTop
:
0
,
backgroundColor
:
!
menuType
&&
item
.
groupCode
===
selectKeyParent
?
'#2966FF'
:
'#fff'
}
}
icon=
{
<
img
src=
{
item
.
img
}
className=
'icon-img'
></
img
>
}
icon=
{
<
img
src=
{
!
menuType
&&
item
.
groupCode
===
selectKeyParent
?
item
.
selectImg
:
item
.
img
}
className=
'icon-img'
></
img
>
}
title=
{
menuType
?
<
span
>
{
item
.
groupName
}
</
span
>
:
''
}
onTitleClick=
{
()
=>
onOpenChange
(
item
.
groupCode
)
}
>
{
item
.
children
.
map
((
_item
:
any
,
_index
:
any
)
=>
{
...
...
src/routes/config/menuList.tsx
View file @
718ee023
...
...
@@ -20,6 +20,7 @@ export const menuList: any = [
groupCode
:
'CloudCourse'
,
icon
:
''
,
img
:
'https://image.xiaomaiketang.com/xm/jBGrGjM7HQ.png'
,
selectImg
:
'https://image.xiaomaiketang.com/xm/TTBGBpf3BJ.png'
,
children
:
[
{
groupName
:
'直播课'
,
...
...
@@ -48,6 +49,7 @@ export const menuList: any = [
groupCode
:
'TrainManage'
,
icon
:
''
,
img
:
'https://image.xiaomaiketang.com/xm/Yy6pZ6G6kS.png'
,
selectImg
:
'https://image.xiaomaiketang.com/xm/TTBGBpf3BJ.png'
,
children
:
[
{
groupName
:
'培训计划'
,
...
...
@@ -61,6 +63,7 @@ export const menuList: any = [
groupCode
:
'AidTool'
,
icon
:
''
,
img
:
'https://image.xiaomaiketang.com/xm/xsma4hx3b3.png'
,
selectImg
:
'https://image.xiaomaiketang.com/xm/3QZkdFMCS7.png'
,
children
:
[
{
groupName
:
'题库'
,
...
...
@@ -100,6 +103,7 @@ export const menuList: any = [
groupCode
:
'PersonManage'
,
icon
:
''
,
img
:
'https://image.xiaomaiketang.com/xm/PRCnrt35y8.png'
,
selectImg
:
'https://image.xiaomaiketang.com/xm/GhkwbdpwfK.png'
,
children
:
[
{
groupName
:
'员工管理'
,
...
...
@@ -118,6 +122,7 @@ export const menuList: any = [
groupCode
:
'CloudShop'
,
icon
:
''
,
img
:
'https://image.xiaomaiketang.com/xm/Q8i5RSMKNc.png'
,
selectImg
:
'https://image.xiaomaiketang.com/xm/pFFF3Wcy3t.png'
,
children
:
[
{
groupName
:
'学院信息'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment