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
1b15c34b
Commit
1b15c34b
authored
Jul 29, 2021
by
wufan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/maolipeng/youhua' into 'master'
Feature/maolipeng/youhua See merge request
!76
parents
281c42ca
2cbaff72
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
13 additions
and
14 deletions
+13
-14
src/components/ContactWidget.tsx
+2
-3
src/modules/college-manage/EmployeeManage.tsx
+3
-3
src/modules/college-manage/modal/SetEmployeeModal.jsx
+1
-1
src/modules/root/Header.jsx
+1
-1
src/modules/store-manage/EmployeeAddOrEditModal.tsx
+1
-1
src/modules/store-manage/EmployeesManagePage.tsx
+1
-1
src/routes/config/mainRoutes.tsx
+2
-2
src/routes/config/menuList.tsx
+2
-2
No files found.
src/components/ContactWidget.tsx
View file @
1b15c34b
import
React
,
{
ReactElement
}
from
"react"
;
import
{
Popover
}
from
"antd"
;
import
{
TooltipPlacement
}
from
"antd/lib/tooltip"
;
import
{
ActionType
}
from
"rc-trigger/lib/interface"
;
import
"./ContactWidget.less"
interface
ContactWidgetProps
{
placement
:
TooltipPlacement
children
:
React
.
ReactElement
visible
?:
boolean
trigger
:
ActionType
|
ActionType
[]
trigger
:
string
|
string
[]
}
function
Content
()
{
...
...
@@ -27,7 +26,7 @@ function Content() {
export
default
function
ContactWidget
(
props
:
ContactWidgetProps
)
{
return
<
Popover
c
lassName=
"contact-widget-popover"
overlayC
lassName=
"contact-widget-popover"
placement=
{
props
.
placement
}
arrowPointAtCenter
content=
{
Content
}
...
...
src/modules/college-manage/EmployeeManage.tsx
View file @
1b15c34b
...
...
@@ -166,7 +166,7 @@ function EmployeeManage() {
},
},
{
title
:
"
身份
"
,
title
:
"
角色
"
,
dataIndex
:
"role"
,
key
:
"role"
,
render
:
(
val
:
string
)
=>
{
...
...
@@ -276,7 +276,7 @@ function EmployeeManage() {
return
(
<
div
className=
"page employee-manage-page"
>
<
div
className=
"content-header"
>
员工
管理
</
div
>
<
div
className=
"content-header"
>
角色
管理
</
div
>
<
div
className=
"box"
>
<
div
className=
"box-header"
>
<
div
...
...
@@ -326,7 +326,7 @@ function EmployeeManage() {
</
div
>
<
div
>
身份
:
角色
:
{
_
.
map
(
roleIds
,
(
item
:
any
)
=>
{
return
(
<
CheckBox
...
...
src/modules/college-manage/modal/SetEmployeeModal.jsx
View file @
1b15c34b
...
...
@@ -77,7 +77,7 @@ export default class SetEmployeeModal extends React.Component {
))
}
</
div
>
<
div
className=
"detail-box"
>
<
div
className=
"title"
>
员工
身份
:
</
div
>
<
div
className=
"title"
>
员工
角色
:
</
div
>
<
RadioGroup
value=
{
roleCode
}
onChange=
{
(
e
)
=>
{
...
...
src/modules/root/Header.jsx
View file @
1b15c34b
...
...
@@ -154,7 +154,7 @@ function Header(props) {
});
}
}
>
<
span
className=
'menu-before iconfont icon'
>

</
span
>
<
span
>
进入管理后台
</
span
>
<
span
>
多学院管理面板
</
span
>
<
span
className=
'menu-after iconfont icon'
>

</
span
>
</
div
>
)
}
...
...
src/modules/store-manage/EmployeeAddOrEditModal.tsx
View file @
1b15c34b
...
...
@@ -273,7 +273,7 @@ function AddEmployeeModal(props: AddEmployeeModalProps) {
</
Form
.
Item
>
)
}
<
Form
.
Item
label=
"员工
身份
"
label=
"员工
角色
"
name=
"role"
rules=
{
[{
required
:
false
}]
}
style=
{
{
marginBottom
:
'-2px !important'
}
}
...
...
src/modules/store-manage/EmployeesManagePage.tsx
View file @
1b15c34b
...
...
@@ -300,7 +300,7 @@ function EmployeesManagePage() {
return
(
<
div
className=
" page employee-manage-page"
>
<
div
className=
"content-header"
>
员工
管理
</
div
>
<
div
className=
"content-header"
>
角色
管理
</
div
>
<
div
className=
"box"
>
<
div
className=
"box-header"
>
<
div
...
...
src/routes/config/mainRoutes.tsx
View file @
1b15c34b
...
...
@@ -46,12 +46,12 @@ const mainRoutes = [
{
path
:
'/employees-manage'
,
component
:
EmployeesManagePage
,
name
:
'
员工
管理'
,
name
:
'
角色
管理'
,
},
{
path
:
'/college-employee'
,
component
:
EmployeeManage
,
name
:
'
员工
管理'
,
name
:
'
角色
管理'
,
},
{
path
:
'/personal-info'
,
...
...
src/routes/config/menuList.tsx
View file @
1b15c34b
...
...
@@ -99,14 +99,14 @@ export const menuList: any = [
selectImg
:
'https://image.xiaomaiketang.com/xm/5sN4MzjxYc.png'
,
},
{
groupName
:
'
人员
管理'
,
groupName
:
'
权限
管理'
,
groupCode
:
'PersonManage'
,
icon
:
''
,
img
:
'https://image.xiaomaiketang.com/xm/PRCnrt35y8.png'
,
selectImg
:
'https://image.xiaomaiketang.com/xm/GhkwbdpwfK.png'
,
children
:
[
{
groupName
:
'
员工
管理'
,
groupName
:
'
角色
管理'
,
groupCode
:
'ShopStaff'
,
link
:
'/college-employee'
,
},
...
...
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