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
42a4b586
Commit
42a4b586
authored
Jul 04, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产路径定位
parent
602d8381
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+2
-1
AssetManageTree.jsx
src/view/Manage/AssetManage/Component/AssetManageTree.jsx
+1
-1
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+6
-0
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
42a4b586
...
@@ -200,8 +200,9 @@ const AssetAction = (props) => {
...
@@ -200,8 +200,9 @@ const AssetAction = (props) => {
if
(
!
readOnly
)
{
if
(
!
readOnly
)
{
setFullScreen
(
false
);
setFullScreen
(
false
);
let
event
=
new
Event
(
'storage'
);
let
event
=
new
Event
(
'storage'
);
event
.
key
=
'asset
DirChange
Event'
;
event
.
key
=
'asset
PathOnClick
Event'
;
event
.
dirId
=
item
.
dirId
||
''
;
event
.
dirId
=
item
.
dirId
||
''
;
event
.
id
=
item
.
dataAssetId
||
''
;
window
?.
dispatchEvent
(
event
);
window
?.
dispatchEvent
(
event
);
}
else
{
}
else
{
const
timestamp
=
new
Date
().
getTime
();
const
timestamp
=
new
Date
().
getTime
();
...
...
src/view/Manage/AssetManage/Component/AssetManageTree.jsx
View file @
42a4b586
...
@@ -107,7 +107,7 @@ const AssetManageTree = (props) => {
...
@@ -107,7 +107,7 @@ const AssetManageTree = (props) => {
},
[
centerId
])
},
[
centerId
])
const
storageChange
=
(
e
)
=>
{
const
storageChange
=
(
e
)
=>
{
if
(
e
.
key
===
'assetDirChangeEvent'
)
{
if
(
e
.
key
===
'assetDirChangeEvent'
||
e
.
key
===
'assetPathOnClickEvent'
)
{
if
((
e
.
dirId
||
''
)
!==
''
)
{
if
((
e
.
dirId
||
''
)
!==
''
)
{
treeDirectoryChanged
(
e
.
dirId
);
treeDirectoryChanged
(
e
.
dirId
);
}
}
...
...
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
42a4b586
...
@@ -243,6 +243,12 @@ const AssetTable = (props) => {
...
@@ -243,6 +243,12 @@ const AssetTable = (props) => {
if
(
e
.
key
===
'assetRelationOnClickEvent'
)
{
if
(
e
.
key
===
'assetRelationOnClickEvent'
)
{
remoteRelationRef
.
current
=
e
.
relation
;
remoteRelationRef
.
current
=
e
.
relation
;
shouldScrollRef
.
current
=
true
;
shouldScrollRef
.
current
=
true
;
}
else
if
(
e
.
key
===
'assetPathOnClickEvent'
)
{
remoteRelationRef
.
current
=
{
dataAssetId
:
e
.
id
,
dirId
:
e
.
dirId
};
shouldScrollRef
.
current
=
true
;
}
}
}
}
...
...
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