Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
62ff8beb
Commit
62ff8beb
authored
Jun 06, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉无权限提示
parent
fc3d19d0
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
9 deletions
+4
-9
PermissionButton.jsx
src/util/Component/PermissionButton.jsx
+1
-1
PermissionMenuItem.jsx
src/util/Component/PermissionMenuItem.jsx
+1
-1
PermissionRcItem.jsx
src/util/Component/PermissionRcItem.jsx
+1
-1
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+0
-5
ModelTree.jsx
src/view/Manage/Model/Component/ModelTree.jsx
+1
-1
No files found.
src/util/Component/PermissionButton.jsx
View file @
62ff8beb
...
...
@@ -18,7 +18,7 @@ const FC = (props) => {
},
[
permissionKey
,
permissions
,
defaultPermission
])
return
(
<
Tooltip
title=
{
tip
}
placement=
{
tooltipPlacement
}
>
<
Tooltip
title=
{
havePermission
?
tip
:
''
}
placement=
{
tooltipPlacement
}
>
<
Button
disabled=
{
!
havePermission
||
disabled
}
{
...
restProps
}
/>
</
Tooltip
>
)
...
...
src/util/Component/PermissionMenuItem.jsx
View file @
62ff8beb
...
...
@@ -19,7 +19,7 @@ const FC = (props) => {
return
(
<
Menu
.
Item
disabled=
{
!
havePermission
||
disabled
}
{
...
restProps
}
>
<
Tooltip
title=
{
tip
}
>
<
Tooltip
title=
{
havePermission
?
tip
:
''
}
>
{
children
}
</
Tooltip
>
</
Menu
.
Item
>
...
...
src/util/Component/PermissionRcItem.jsx
View file @
62ff8beb
...
...
@@ -20,7 +20,7 @@ const FC = (props) => {
return
(
<
RcItem
disabled=
{
!
havePermission
||
disabled
}
{
...
restProps
}
>
<
Tooltip
title=
{
tip
}
>
<
Tooltip
title=
{
havePermission
?
tip
:
''
}
>
{
children
}
</
Tooltip
>
</
RcItem
>
...
...
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
62ff8beb
...
...
@@ -551,11 +551,6 @@ const AssetTree = (props) => {
<
div
style=
{
{
width
:
32
}
}
/>
<
div
style=
{
{
width
:
32
}
}
/>
<
div
style=
{
{
width
:
32
}
}
/>
{
/* <Tooltip title={haveCustomPermission?"自定义目录":"暂无权限"}>
<SettingOutlined className={(!haveCustomPermission)?'disable': 'default'} onClick={customDir} style={{ fontSize:16,cursor:(!haveCustomPermission)?'not-allowed':'pointer',flex:1}} />
</Tooltip> */
}
{
/* <div style={{ flex: 3 }}></div> */
}
</
div
>
}
bordered=
{
false
}
...
...
src/view/Manage/Model/Component/ModelTree.jsx
View file @
62ff8beb
...
...
@@ -647,7 +647,7 @@ const ModelTree = (props) => {
}
{
(
viewSelectedKey
===
'dir'
)
&&
(
<
Tooltip
title=
{
haveStockImportPermission
?
'存量模型导入'
:
'
暂无权限
'
}
>
<
Tooltip
title=
{
haveStockImportPermission
?
'存量模型导入'
:
''
}
>
<
ImportOutlined
className=
{
(
!
haveStockImportPermission
)?
'disable'
:
'default'
}
onClick=
{
()
=>
{
haveStockImportPermission
&&
importStockModel
&&
importStockModel
()
}
}
style=
{
{
fontSize
:
16
,
cursor
:(
!
haveStockImportPermission
)?
'not-allowed'
:
'pointer'
}
}
/>
</
Tooltip
>
)
...
...
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