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
c3494cf9
Commit
c3494cf9
authored
Jul 01, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产定位调整
parent
be64a216
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
28 deletions
+2
-28
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+2
-18
MapContent.jsx
src/view/Manage/Map/MapContent.jsx
+0
-10
No files found.
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
c3494cf9
...
@@ -46,7 +46,6 @@ const AssetTable = (props) => {
...
@@ -46,7 +46,6 @@ const AssetTable = (props) => {
const
timestamp
=
getQueryParam
(
AnchorTimestamp
,
props
.
location
.
search
);
const
timestamp
=
getQueryParam
(
AnchorTimestamp
,
props
.
location
.
search
);
const
shouldScrollRef
=
useRef
(
false
);
const
shouldScrollRef
=
useRef
(
false
);
const
urlChangeRef
=
useRef
(
false
);
const
cellCache
=
new
CellMeasurerCache
({
const
cellCache
=
new
CellMeasurerCache
({
fixedWidth
:
true
,
fixedWidth
:
true
,
...
@@ -57,13 +56,9 @@ const AssetTable = (props) => {
...
@@ -57,13 +56,9 @@ const AssetTable = (props) => {
if
((
nodeId
||
''
)
!==
''
)
{
if
((
nodeId
||
''
)
!==
''
)
{
if
(
shouldScrollRef
.
current
===
true
)
{
if
(
shouldScrollRef
.
current
===
true
)
{
urlChangeRef
.
current
=
false
;
getDataAssetLocation
();
}
else
if
(
urlChangeRef
.
current
)
{
urlChangeRef
.
current
=
false
;
shouldScrollRef
.
current
=
false
;
getDataAssetLocation
();
}
else
{
}
else
{
...
@@ -82,7 +77,6 @@ const AssetTable = (props) => {
...
@@ -82,7 +77,6 @@ const AssetTable = (props) => {
if
((
anchorId
||
''
)
!==
''
)
{
if
((
anchorId
||
''
)
!==
''
)
{
shouldScrollRef
.
current
=
true
;
shouldScrollRef
.
current
=
true
;
urlChangeRef
.
current
=
true
;
}
}
//eslint-disable-next-line react-hooks/exhaustive-deps
//eslint-disable-next-line react-hooks/exhaustive-deps
...
@@ -99,16 +93,6 @@ const AssetTable = (props) => {
...
@@ -99,16 +93,6 @@ const AssetTable = (props) => {
//eslint-disable-next-line react-hooks/exhaustive-deps
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[
keyword
,
pagination
])
},
[
keyword
,
pagination
])
useEffect
(()
=>
{
if
(
shouldScrollRef
.
current
)
{
var
anchor
=
document
.
querySelector
(
`#data-asset-
${
anchorId
}
`
);
if
(
anchor
)
{
shouldScrollRef
.
current
=
false
;
}
}
})
const
getDataAssetLocation
=
()
=>
{
const
getDataAssetLocation
=
()
=>
{
setLoading
(
true
);
setLoading
(
true
);
dispatch
({
dispatch
({
...
...
src/view/Manage/Map/MapContent.jsx
View file @
c3494cf9
...
@@ -130,16 +130,6 @@ class MapContent extends React.Component {
...
@@ -130,16 +130,6 @@ class MapContent extends React.Component {
})
})
}
}
setSquareGraphState
=
(
item
)
=>
{
const
{
breadcrumbContents
}
=
this
.
state
;
this
.
loadedRowsMap
=
{};
this
.
setState
({
breadcrumbContents
:
[...
breadcrumbContents
,
{
name
:
item
.
dirName
||
''
,
data
:
item
}],
curTableModelData
:
item
.
children
||
[],
});
}
handleInfiniteOnLoad
=
({
startIndex
,
stopIndex
})
=>
{
handleInfiniteOnLoad
=
({
startIndex
,
stopIndex
})
=>
{
const
{
haveMoreData
,
curTableModelData
}
=
this
.
state
;
const
{
haveMoreData
,
curTableModelData
}
=
this
.
state
;
...
...
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