Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-view
Project
Project
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
station
amos-convertor-view
Commits
a773c754
Commit
a773c754
authored
Nov 09, 2020
by
zhengjiawei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
线路维护
parent
a26ad386
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
index.js
src/view/bizview/stationMainten/index.js
+2
-4
indexMap.js
src/view/bizview/stationMainten/indexMap.js
+2
-2
No files found.
src/view/bizview/stationMainten/index.js
View file @
a773c754
...
@@ -169,9 +169,9 @@ class StationMainten extends Component {
...
@@ -169,9 +169,9 @@ class StationMainten extends Component {
initMap
()
{
initMap
()
{
let
_this
=
this
;
let
_this
=
this
;
if
(
outMap
)
{
if
(
outMap
)
{
Object
.
keys
(
localStorage
).
map
(
e
=>
{
Object
.
keys
(
window
.
localStorage
).
map
(
e
=>
{
if
(
e
.
indexOf
(
'_AMap'
)
===
0
)
{
if
(
e
.
indexOf
(
'_AMap'
)
===
0
)
{
localStorage
.
removeItem
(
e
);
window
.
localStorage
.
removeItem
(
e
);
}
}
});
});
let
script
=
null
;
let
script
=
null
;
...
@@ -195,8 +195,6 @@ class StationMainten extends Component {
...
@@ -195,8 +195,6 @@ class StationMainten extends Component {
BasicMap
:
require
(
'./indexMap'
)
BasicMap
:
require
(
'./indexMap'
)
});
});
},
timeout2000
);
},
timeout2000
);
console
.
log
(
this
.
state
);
console
.
log
(
require
(
'./indexMap'
));
});
});
});
});
}
else
{
}
else
{
...
...
src/view/bizview/stationMainten/indexMap.js
View file @
a773c754
...
@@ -69,7 +69,7 @@ class IndexMap extends Component {
...
@@ -69,7 +69,7 @@ class IndexMap extends Component {
* @memberof IndexMap
* @memberof IndexMap
*/
*/
handleClickMap
=
e
=>
{
handleClickMap
=
e
=>
{
le
t
{
marker
}
=
this
.
state
;
cons
t
{
marker
}
=
this
.
state
;
marker
.
longitude
=
e
.
lnglat
.
lng
;
marker
.
longitude
=
e
.
lnglat
.
lng
;
marker
.
latitude
=
e
.
lnglat
.
lat
;
marker
.
latitude
=
e
.
lnglat
.
lat
;
this
.
setState
({
marker
});
this
.
setState
({
marker
});
...
@@ -81,7 +81,7 @@ class IndexMap extends Component {
...
@@ -81,7 +81,7 @@ class IndexMap extends Component {
created
:
this
.
setInstanceToGlobal
,
created
:
this
.
setInstanceToGlobal
,
click
:
this
.
handleClickMap
click
:
this
.
handleClickMap
};
};
le
t
{
mapCenter
,
marker
}
=
this
.
state
;
cons
t
{
mapCenter
,
marker
}
=
this
.
state
;
if
(
outMap
)
{
if
(
outMap
)
{
...
...
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