Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-station-module-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-station-module-view
Commits
507d3024
Commit
507d3024
authored
May 21, 2020
by
shanqiyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a
parent
d4c4410c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
10 deletions
+14
-10
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+14
-10
No files found.
mods/components/3dviewConvertor/view/View3D.js
View file @
507d3024
...
...
@@ -646,30 +646,34 @@ class View3D extends Component {
onActionItemClick
=
(
actionType
)
=>
{
console
.
log
(
'onActionItemClick'
);
this
.
clearMarkers
();
this
.
asyncLoadImpEquipment
(
actionType
);
if
(
actionType
===
"impEquipment"
){
this
.
asyncLoadImpEquipment
(
actionType
);
}
else
if
(
actionType
===
"editMode"
){
}
}
asyncLoadImpEquipment
=
(
actionType
)
=>
{
const
{
markers
}
=
this
.
state
;
pointModelistAction
(
actionType
).
then
(
d
=>
{
if
(
markerType
===
'fireResource'
)
{
//
if (markerType === 'fireResource') {
markers
[
'hydrant'
]
=
d
[
'hydrant'
];
markers
[
'monitorEquipment'
]
=
d
[
'monitorEquipment'
];
markers
[
'fireCar'
]
=
d
[
'fireCar'
];
markers
[
'impEquipment'
]
=
d
[
'impEquipment'
];
markers
[
'fireChamber'
]
=
d
[
'fireChamber'
];
markers
[
'pool'
]
=
d
[
'pool'
];
markers
[
markerType
]
=
d
;
//
markers[markerType] = d;
this
.
setState
({
markers
});
return
;
}
markers
[
markerType
]
=
d
;
this
.
setState
({
markers
,
markerType
});
//
}
//
markers[markerType] = d;
//
this.setState({
//
markers,
//
markerType
//
});
});
}
...
...
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