Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linweijiong
jinfa-admin
Commits
a3304074
Commit
a3304074
authored
Jan 26, 2021
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 平台权限菜单调整
parent
ff78a5b3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
8 deletions
+36
-8
authConfig.ts
config/routes/authConfig.ts
+30
-2
index.tsx
src/pages/authConfig/memberSystem/index.tsx
+3
-3
index.tsx
src/pages/authConfig/userSystem/index.tsx
+3
-3
No files found.
config/routes/authConfig.ts
View file @
a3304074
...
@@ -14,7 +14,21 @@ export default {
...
@@ -14,7 +14,21 @@ export default {
component
:
'@/pages/authConfig/memberSystem'
,
component
:
'@/pages/authConfig/memberSystem'
,
},
},
{
{
path
:
'/authConfig/memberSystem/memberDetail'
,
path
:
'/authConfig/memberSystem/memberDetail/add'
,
name
:
'memberDetail'
,
component
:
'@/pages/authConfig/memberSystem/memberDetail'
,
hideInMenu
:
true
,
hidePageHeader
:
true
},
{
path
:
'/authConfig/memberSystem/memberDetail/update'
,
name
:
'memberDetail'
,
component
:
'@/pages/authConfig/memberSystem/memberDetail'
,
hideInMenu
:
true
,
hidePageHeader
:
true
},
{
path
:
'/authConfig/memberSystem/memberDetail/preview'
,
name
:
'memberDetail'
,
name
:
'memberDetail'
,
component
:
'@/pages/authConfig/memberSystem/memberDetail'
,
component
:
'@/pages/authConfig/memberSystem/memberDetail'
,
hideInMenu
:
true
,
hideInMenu
:
true
,
...
@@ -26,7 +40,21 @@ export default {
...
@@ -26,7 +40,21 @@ export default {
component
:
'@/pages/authConfig/userSystem'
,
component
:
'@/pages/authConfig/userSystem'
,
},
},
{
{
path
:
'/authConfig/userSystem/userDetail'
,
path
:
'/authConfig/userSystem/userDetail/add'
,
name
:
'userSystem'
,
component
:
'@/pages/authConfig/userSystem/userDetail'
,
hideInMenu
:
true
,
hidePageHeader
:
true
},
{
path
:
'/authConfig/userSystem/userDetail/update'
,
name
:
'userSystem'
,
component
:
'@/pages/authConfig/userSystem/userDetail'
,
hideInMenu
:
true
,
hidePageHeader
:
true
},
{
path
:
'/authConfig/userSystem/userDetail/preview'
,
name
:
'userSystem'
,
name
:
'userSystem'
,
component
:
'@/pages/authConfig/userSystem/userDetail'
,
component
:
'@/pages/authConfig/userSystem/userDetail'
,
hideInMenu
:
true
,
hideInMenu
:
true
,
...
...
src/pages/authConfig/memberSystem/index.tsx
View file @
a3304074
...
@@ -33,7 +33,7 @@ const MemberSystem: React.FC<{}> = () => {
...
@@ -33,7 +33,7 @@ const MemberSystem: React.FC<{}> = () => {
}
}
const
updateItem
=
(
record
)
=>
{
const
updateItem
=
(
record
)
=>
{
history
.
push
(
`/authConfig/memberSystem/memberDetail?id=
${
record
.
id
}
&preview=0`
)
history
.
push
(
`/authConfig/memberSystem/memberDetail
/update
?id=
${
record
.
id
}
&preview=0`
)
}
}
const
handleStatus
=
async
(
record
)
=>
{
const
handleStatus
=
async
(
record
)
=>
{
...
@@ -58,7 +58,7 @@ const MemberSystem: React.FC<{}> = () => {
...
@@ -58,7 +58,7 @@ const MemberSystem: React.FC<{}> = () => {
align
:
'center'
,
align
:
'center'
,
key
:
'roleName'
,
key
:
'roleName'
,
className
:
'commonPickColor'
,
className
:
'commonPickColor'
,
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/authConfig/memberSystem/memberDetail?id=${record.id}&preview=1`
}
>
{
text
}
</
EyePreview
>
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/authConfig/memberSystem/memberDetail
/preview
?id=${record.id}&preview=1`
}
>
{
text
}
</
EyePreview
>
},
},
{
{
title
:
'描述'
,
title
:
'描述'
,
...
@@ -107,7 +107,7 @@ const MemberSystem: React.FC<{}> = () => {
...
@@ -107,7 +107,7 @@ const MemberSystem: React.FC<{}> = () => {
layouts
:
{
layouts
:
{
order
:
2
order
:
2
},
},
children
:
<
Button
style=
{
{
width
:
140
}
}
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
history
.
push
(
'/authConfig/memberSystem/memberDetail'
)
}
type=
'primary'
>
新建
</
Button
>
children
:
<
Button
style=
{
{
width
:
140
}
}
icon=
{
<
PlusOutlined
/>
}
onClick=
{
()
=>
history
.
push
(
'/authConfig/memberSystem/memberDetail
/add
'
)
}
type=
'primary'
>
新建
</
Button
>
}
}
}
}
formilyProps=
{
{
formilyProps=
{
{
layouts
:
{
layouts
:
{
...
...
src/pages/authConfig/userSystem/index.tsx
View file @
a3304074
...
@@ -26,7 +26,7 @@ const UserSystem: React.FC<{}> = () => {
...
@@ -26,7 +26,7 @@ const UserSystem: React.FC<{}> = () => {
const
ref
=
useRef
<
any
>
({})
const
ref
=
useRef
<
any
>
({})
const
addItem
=
()
=>
{
const
addItem
=
()
=>
{
history
.
push
(
'/authConfig/userSystem/userDetail'
)
history
.
push
(
'/authConfig/userSystem/userDetail
/add
'
)
}
}
const
deleteItem
=
(
record
)
=>
{
const
deleteItem
=
(
record
)
=>
{
// 删除该项
// 删除该项
...
@@ -38,7 +38,7 @@ const UserSystem: React.FC<{}> = () => {
...
@@ -38,7 +38,7 @@ const UserSystem: React.FC<{}> = () => {
}
}
const
updateItem
=
(
record
)
=>
{
const
updateItem
=
(
record
)
=>
{
history
.
push
(
`/authConfig/userSystem/userDetail?id=
${
record
.
userId
}
&preview=0`
)
history
.
push
(
`/authConfig/userSystem/userDetail
/update
?id=
${
record
.
userId
}
&preview=0`
)
}
}
const
handleStatus
=
(
record
)
=>
{
const
handleStatus
=
(
record
)
=>
{
...
@@ -56,7 +56,7 @@ const UserSystem: React.FC<{}> = () => {
...
@@ -56,7 +56,7 @@ const UserSystem: React.FC<{}> = () => {
align
:
'center'
,
align
:
'center'
,
key
:
'account'
,
key
:
'account'
,
className
:
'commonPickColor'
,
className
:
'commonPickColor'
,
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/authConfig/userSystem/userDetail?id=${record.userId}&preview=1`
}
>
{
text
}
</
EyePreview
>
render
:
(
text
,
record
)
=>
<
EyePreview
url=
{
`/authConfig/userSystem/userDetail
/preview
?id=${record.userId}&preview=1`
}
>
{
text
}
</
EyePreview
>
},
},
{
{
title
:
'用户姓名'
,
title
:
'用户姓名'
,
...
...
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