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
aae492e3
Commit
aae492e3
authored
Aug 15, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
08fe06be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
draft.jsx
src/view/Manage/AssetDraft/draft.jsx
+4
-4
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+8
-8
No files found.
src/view/Manage/AssetDraft/draft.jsx
View file @
aae492e3
...
@@ -104,8 +104,8 @@ const FC = (props) => {
...
@@ -104,8 +104,8 @@ const FC = (props) => {
let
[
_canPublish
,
_canDelete
]
=
[
true
,
true
]
let
[
_canPublish
,
_canDelete
]
=
[
true
,
true
]
for
(
const
item
of
(
selectedRows
??[]))
{
for
(
const
item
of
(
selectedRows
??[]))
{
const
publishIndex
=
(
item
.
allow
Acti
ons
??[]).
findIndex
(
item
=>
item
===
'publish'
)
const
publishIndex
=
(
item
.
allow
Butt
ons
??[]).
findIndex
(
item
=>
item
===
'publish'
)
const
deleteIndex
=
(
item
.
allow
Acti
ons
??[]).
findIndex
(
item
=>
item
===
'delete'
)
const
deleteIndex
=
(
item
.
allow
Butt
ons
??[]).
findIndex
(
item
=>
item
===
'delete'
)
if
(
publishIndex
===
-
1
)
{
if
(
publishIndex
===
-
1
)
{
_canPublish
=
false
_canPublish
=
false
}
}
...
@@ -119,7 +119,7 @@ const FC = (props) => {
...
@@ -119,7 +119,7 @@ const FC = (props) => {
const
menuData
=
React
.
useMemo
(()
=>
{
const
menuData
=
React
.
useMemo
(()
=>
{
const
newMenuData
=
[]
const
newMenuData
=
[]
for
(
const
key
of
rightRow
?.
allow
Acti
ons
??[])
{
for
(
const
key
of
rightRow
?.
allow
Butt
ons
??[])
{
if
(
operationMap
[
key
])
{
if
(
operationMap
[
key
])
{
newMenuData
.
push
(
operationMap
[
key
])
newMenuData
.
push
(
operationMap
[
key
])
}
}
...
@@ -599,7 +599,7 @@ const FC = (props) => {
...
@@ -599,7 +599,7 @@ const FC = (props) => {
setRightRow(record)
setRightRow(record)
let allowContextMenu = false
let allowContextMenu = false
for (const key of (record.allow
Acti
ons??[])) {
for (const key of (record.allow
Butt
ons??[])) {
if (operationMap[key]) {
if (operationMap[key]) {
allowContextMenu = true
allowContextMenu = true
break
break
...
...
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
aae492e3
...
@@ -209,7 +209,7 @@ const AssetTable = (props) => {
...
@@ -209,7 +209,7 @@ const AssetTable = (props) => {
const
actionCol
=
{
const
actionCol
=
{
title
:
'操作'
,
title
:
'操作'
,
dataIndex
:
'action'
,
dataIndex
:
'action'
,
width
:
12
0
,
width
:
6
0
,
fixed
:
'right'
,
fixed
:
'right'
,
filter
:
false
,
filter
:
false
,
render
:
(
_
,
record
)
=>
{
render
:
(
_
,
record
)
=>
{
...
@@ -222,13 +222,13 @@ const AssetTable = (props) => {
...
@@ -222,13 +222,13 @@ const AssetTable = (props) => {
}
}
>
授权
</
a
>
}
}
>
授权
</
a
>
}
}
{
{
(
reference
===
AssetManageReference
||
(
reference
===
AssetBrowseReference
&&
record
.
hasPermission
))
&&
<
a
onClick=
{
(
e
)
=>
{
//
(reference===AssetManageReference||(reference===AssetBrowseReference&&record.hasPermission)) && <a onClick=
{(
e
)
=>
{
e
.
stopPropagation
();
//
e.stopPropagation();
setAssetMountParam
({
//
setAssetMountParam(
{
visible
:
true
,
//
visible: true,
ids
:
[
record
.
id
]
//
ids: [record.id]
});
//
});
}
}
>
变更目录
</
a
>
//
}}
>
变更目录
<
/a>
}
}
</
Space
>
</
Space
>
)
)
...
...
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