Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TOSTUMI
Project
Project
Details
Activity
Releases
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
Maple
TOSTUMI
Commits
67e009cb
Commit
67e009cb
authored
Jan 04, 2021
by
cellee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
403页面样式修改,权限等级编辑、详情展示修改
Signed-off-by:
cellee
<
893264950@qq.com
>
parent
f88fc16d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
36 deletions
+37
-36
403.tsx
src/pages/403.tsx
+16
-10
AccountEdit.tsx
src/pages/AccountManagement/account/AccountEdit.tsx
+21
-26
No files found.
src/pages/403.tsx
View file @
67e009cb
...
...
@@ -3,16 +3,22 @@ import React from 'react';
import
{
history
}
from
'umi'
;
const
NoFoundPage
:
React
.
FC
<
{}
>
=
()
=>
(
<
Result
status=
"403"
title=
"403"
subTitle=
"Sorry, you are not authorized to access this page."
extra=
{
<
Button
type=
"primary"
onClick=
{
()
=>
history
.
push
(
'/'
)
}
>
Back Home
</
Button
>
}
/>
<
div
style=
{
{
textAlign
:
'center'
,
paddingBottom
:
50
}
}
>
<
Result
status=
"403"
// title="403"
subTitle=
""
>
<
div
className=
"desc"
>
<
p
style=
{
{
color
:
'#f00'
,
textTransform
:
'capitalize'
}
}
>
Sorry, you are not authorized to access this page.
</
p
>
</
div
>
</
Result
>
<
Button
type=
"primary"
onClick=
{
()
=>
history
.
push
(
'/'
)
}
>
Back Home
</
Button
>
</
div
>
);
export
default
NoFoundPage
;
src/pages/AccountManagement/account/AccountEdit.tsx
View file @
67e009cb
import
React
,
{
useState
,
useEffect
,
useRef
}
from
'react'
;
import
{
Form
,
Input
,
Button
,
message
,
Descriptions
,
Spin
,
Tree
,
Radio
,
Select
,
Modal
}
from
'antd'
;
import
{
Form
,
Input
,
Button
,
message
,
Descriptions
,
Spin
,
Tree
,
Tag
,
Select
,
Modal
}
from
'antd'
;
import
{
connect
,
history
}
from
'umi'
;
import
{
EditOutlined
,
LeftOutlined
,
ExclamationCircleOutlined
}
from
'@ant-design/icons'
;
import
{
EditOutlined
,
LeftOutlined
,
ExclamationCircleOutlined
,
ApartmentOutlined
,
}
from
'@ant-design/icons'
;
import
'./Account.less'
;
import
{
zhCnFaci
,
enUsFaci
}
from
'@/utils/power'
;
...
...
@@ -404,32 +409,22 @@ const Account = (props: any) => {
<
div
className=
"label"
>
<
span
className=
"title"
>
Privilege Level:
</
span
>
</
div
>
<
div
className=
"label"
>
<
Radio
.
Group
value=
{
values
}
onChange=
{
onRadio
}
>
<
Radio
style=
{
radioStyle
}
disabled
value=
{
2
}
>
Two Level Administrator
</
Radio
>
<
Radio
style=
{
radioStyle
}
disabled
value=
{
3
}
>
Three Level Administrator
</
Radio
>
</
Radio
.
Group
>
<
div
className=
"label"
style=
{
{
lineHeight
:
'32px'
}
}
>
{
values
==
2
?
(
<
Tag
color=
"processing"
icon=
{
<
ApartmentOutlined
/>
}
>
Two Level
</
Tag
>
)
:
(
<
Tag
color=
"processing"
icon=
{
<
ApartmentOutlined
/>
}
>
Three Level
</
Tag
>
)
}
{
/* 选择挂靠的二级菜单 */
}
{
values
===
3
&&
user
.
currentUser
.
userModel
.
tosUserLevel
<=
1
?
(
<
Select
style=
{
{
width
:
260
}
}
placeholder=
"Please select affiliated account"
disabled
defaultValue=
{
DataSave
.
userLeader
}
>
{
DataSave
?
(
<
Option
key=
{
DataSave
.
userLeader
}
value=
{
DataSave
.
userLeader
}
>
{
DataSave
.
userLeaderAccountName
}
-
{
DataSave
.
userLeaderName
}
</
Option
>
)
:
(
''
)
}
</
Select
>
{
values
===
3
?
(
<
Tag
color=
"default"
>
{
DataSave
.
userLeaderAccountName
}
--
{
DataSave
.
userLeaderName
}
</
Tag
>
)
:
(
''
)
}
...
...
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