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
08fe06be
Commit
08fe06be
authored
Aug 15, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产权限
parent
444a3674
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
48 additions
and
3 deletions
+48
-3
assetmanage.js
src/model/assetmanage.js
+9
-0
dataassetmanager.js
src/service/dataassetmanager.js
+9
-0
constant.js
src/util/constant.js
+3
-0
index.js
src/util/index.js
+19
-1
AssetManageTree.jsx
src/view/Manage/AssetManage/Component/AssetManageTree.jsx
+4
-1
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+0
-0
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+4
-1
No files found.
src/model/assetmanage.js
View file @
08fe06be
...
...
@@ -528,4 +528,12 @@ export function* listDataAssetHistoryTimeline(payload) {
export
function
*
queryCustomTypeRootDirectory
()
{
return
yield
call
(
service
.
queryCustomTypeRootDirectory
);
}
export
function
*
getPrivilegeByRange
(
payload
)
{
return
yield
call
(
service
.
getPrivilegeByRange
,
payload
);
}
export
function
*
getPrivilegeByRangeAndDirId
(
payload
)
{
return
yield
call
(
service
.
getPrivilegeByRangeAndDirId
,
payload
);
}
\ No newline at end of file
src/service/dataassetmanager.js
View file @
08fe06be
...
...
@@ -535,4 +535,12 @@ export function listDataAssetHistoryTimeline(payload) {
export
function
queryCustomTypeRootDirectory
()
{
return
GetJSON
(
"/dataassetmanager/directoryApi/queryCustomTypeRootDirectory"
);
}
export
function
getPrivilegeByRange
(
payload
)
{
return
GetJSON
(
"/dataassetmanager/AuthorityApi/listAllowButtonsByRange"
,
payload
);
}
export
function
getPrivilegeByRangeAndDirId
(
payload
)
{
return
GetJSON
(
"/dataassetmanager/AuthorityApi/listAllowButtonsByRangeAndOptionId"
,
payload
);
}
\ No newline at end of file
src/util/constant.js
View file @
08fe06be
...
...
@@ -26,9 +26,11 @@ export const DataModelerRoleUser = 'user';
export
const
DataModelerRoleReader
=
'reader'
;
//资产
export
const
ResourceManageReference
=
'resource-manage'
;
export
const
AssetManageReference
=
'asset-manage'
;
export
const
AssetBrowseReference
=
'asset-browse'
;
export
const
ResourceBrowseReference
=
'resource-browse'
;
export
const
AssetRecycleReference
=
'asset-recycle'
;
export
const
AssetMountReference
=
'asset-mount'
;
export
const
AssetInventoryReference
=
'asset-inventory'
;
export
const
AssetDraftReference
=
'asset-draft'
;
\ No newline at end of file
src/util/index.js
View file @
08fe06be
...
...
@@ -6,7 +6,7 @@ import { Subject } from 'rxjs';
import
{
dispatchLatest
,
action
}
from
'../model'
;
import
{
set_sess_state
}
from
"../model/reducer"
;
import
{
DataModelerRoleAdmin
,
DataModelerRoleUser
,
DataModelerRoleReader
}
from
'./constant'
;
import
{
DataModelerRoleAdmin
,
DataModelerRoleUser
,
DataModelerRoleReader
,
AssetManageReference
,
AssetBrowseReference
,
ResourceBrowseReference
,
AssetRecycleReference
,
ResourceManageReference
,
AssetInventoryReference
}
from
'./constant'
;
//内网深交所环境 isSzseEnv true
//元曜公网环境 isSzseEnv false
...
...
@@ -423,4 +423,21 @@ export function getScrollbarWidth() {
return
scrollbarWidth
;
}
export
function
getAssetRange
(
menuName
)
{
if
(
menuName
===
ResourceManageReference
)
{
return
'dataAsset_resourceManage'
;
}
else
if
(
menuName
===
AssetManageReference
)
{
return
'dataAsset_dataAssetManage'
;
}
else
if
(
menuName
===
AssetBrowseReference
)
{
return
'dataAsset_dataAssetBrowse'
;
}
else
if
(
menuName
===
ResourceBrowseReference
)
{
return
'dataAsset_resourceBrowse'
;
}
else
if
(
menuName
===
AssetRecycleReference
)
{
return
'dataAsset_unloadDataAsset'
;
}
else
if
(
menuName
===
AssetInventoryReference
)
{
return
'dataAsset_inventory'
;
}
return
''
;
}
\ No newline at end of file
src/view/Manage/AssetManage/Component/AssetManageTree.jsx
View file @
08fe06be
...
...
@@ -9,7 +9,7 @@ import { dispatch } from '../../../../model';
import
ImportDirectory
from
'./ImportDirectory'
;
import
UpdateDirectoryModal
from
'./UpdateDirectoryModal'
;
import
CustomDirectoryModal
from
'./CustomDirectoryModal'
;
import
{
showMessage
,
getQueryParam
}
from
'../../../../util'
;
import
{
showMessage
,
getQueryParam
,
getAssetRange
}
from
'../../../../util'
;
import
{
AnchorTimestamp
,
AnchorId
,
AssetManageReference
,
AssetBrowseReference
,
ResourceBrowseReference
,
AssetMountReference
,
AnchorDirId
,
AnchorTemplateType
}
from
'../../../../util/constant'
;
import
{
highlightSearchContentByTerms
}
from
'../../../../util'
;
import
{
listSubject
}
from
'./AssetTable'
;
...
...
@@ -308,6 +308,9 @@ const AssetManageTree = (props) => {
dispatch
({
type
:
url
,
payload
:
{
range
:
getAssetRange
(
AssetManageReference
)
},
callback
:
data
=>
{
let
newData
=
[];
if
(
viewSelectedKeyRef
.
current
===
'dir'
)
{
...
...
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
08fe06be
This diff is collapsed.
Click to expand it.
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
08fe06be
...
...
@@ -6,7 +6,7 @@ import LocalStorage from 'local-storage';
import
{
dispatch
}
from
'../../../../model'
;
import
CustomDirectoryModal
from
'./CustomDirectoryModal'
;
import
{
showMessage
,
getQueryParam
}
from
'../../../../util'
;
import
{
showMessage
,
getQueryParam
,
getAssetRange
}
from
'../../../../util'
;
import
{
AnchorTimestamp
,
AnchorId
,
AssetBrowseReference
,
ResourceBrowseReference
,
AnchorDirId
,
AnchorTemplateType
}
from
'../../../../util/constant'
;
import
{
highlightSearchContentByTerms
}
from
'../../../../util'
;
import
UpdateDirectoryModal
from
'./UpdateDirectoryModal'
;
...
...
@@ -204,6 +204,9 @@ const AssetTree = (props) => {
dispatch
({
type
:
url
,
payload
:
{
range
:
getAssetRange
(
AssetBrowseReference
)
},
callback
:
data
=>
{
setLoading
(
false
);
refresh
&&
showMessage
(
'success'
,
'操作成功'
);
...
...
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