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
a34fbb71
Commit
a34fbb71
authored
Nov 14, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉不要的代码
parent
acd0736c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
23 deletions
+23
-23
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+23
-23
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
a34fbb71
...
@@ -95,20 +95,20 @@ const AssetAction = (props) => {
...
@@ -95,20 +95,20 @@ const AssetAction = (props) => {
ellipsis
:
true
,
ellipsis
:
true
,
render
:
(
text
,
_
)
=>
highlightSearchContentByTerms
(
text
||
''
,
terms
)
render
:
(
text
,
_
)
=>
highlightSearchContentByTerms
(
text
||
''
,
terms
)
},
},
{
//
{
title
:
'是否有权限'
,
//
title: '是否有权限',
dataIndex
:
'permission'
,
//
dataIndex: 'permission',
width
:
100
,
//
width: 100,
ellipsis
:
true
,
//
ellipsis: true,
render
:
(
_
,
record
)
=>
{
//
render: (_, record) => {
const
index
=
(
permissions
||
[]).
findIndex
(
item
=>
item
.
columnMetadataId
===
record
.
_id
);
//
const index = (permissions||[]).findIndex(item => item.columnMetadataId===record._id);
if
(
index
!==-
1
)
{
//
if (index!==-1) {
return
permissions
[
index
].
visible
===
'Y'
?
'是'
:
'否'
;
//
return permissions[index].visible === 'Y' ? '是':'否';
}
//
}
return
'否'
;
//
return '否';
}
//
}
},
//
},
{
{
title
:
'业务规则'
,
title
:
'业务规则'
,
dataIndex
:
'businessRules'
,
dataIndex
:
'businessRules'
,
...
@@ -236,16 +236,16 @@ const AssetAction = (props) => {
...
@@ -236,16 +236,16 @@ const AssetAction = (props) => {
},
[
metadataColumnList
,
pagination
,
keyword
])
},
[
metadataColumnList
,
pagination
,
keyword
])
const
getPermission
=
()
=>
{
const
getPermission
=
()
=>
{
dispatch
({
//
dispatch({
type
:
'assetmanage.getPermission'
,
//
type: 'assetmanage.getPermission',
payload
:
{
//
payload: {
permissionId
,
//
permissionId,
env
:
app
?.
env
?.
domainId
||
LocalStorage
.
get
(
'assetsEnv'
)
//
env: app?.env?.domainId||LocalStorage.get('assetsEnv')
},
//
},
callback
:
data
=>
{
//
callback: data => {
setPermissions
(
data
.
columnPermissions
);
//
setPermissions(data.columnPermissions);
}
//
}
});
//
});
}
}
const
getAssetPaths
=
()
=>
{
const
getAssetPaths
=
()
=>
{
...
...
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