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
ec57623b
Commit
ec57623b
authored
Jun 19, 2020
by
张博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
故障模式显示点
parent
70e61363
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
6 deletions
+22
-6
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+20
-5
ExceptionArea.js
...nents/3dviewConvertor/view/exceptionArea/ExceptionArea.js
+1
-1
index.js
mods/components/3dviewConvertor/view/sideControl/index.js
+1
-0
No files found.
mods/components/3dviewConvertor/view/View3D.js
View file @
ec57623b
...
...
@@ -575,9 +575,24 @@ class View3D extends Component {
});
}
};
focusObject
=
object
=>
{
getErrorAreaPoint
(
riskSourceId
){
const
{
markers
}
=
this
.
state
;
let
arrays
=
[
'riskSource'
,
'patrol'
,
'impEquipment'
,
'monitorEquipment'
];
initView3DAction
(
''
,
riskSourceId
,
true
).
then
(
d
=>
{
d
.
map
((
item
)
=>
{
if
(
arrays
.
includes
(
item
.
type
)){
markers
[
`
${
item
.
type
}
`
].
push
(
item
);
}
}
);
this
.
setState
({
markers
:
deepCopy
(
markers
)
});
});
}
focusObject
=
(
object
,
errorAreaId
)
=>
{
const
me
=
this
;
me
.
getErrorAreaPoint
(
errorAreaId
);
if
(
!
me
.
state
.
alarmStarted
&&
object
)
{
this
.
cameraFactory
.
flyTo
({
target
:
object
,
...
...
@@ -1332,13 +1347,13 @@ class View3D extends Component {
markers
[
'fireDetection'
]
=
d
.
filter
(
e
=>
e
.
type
===
'fireDetection'
);
markers
[
markerType
]
=
d
;
this
.
setState
({
markers
markers
:
deepCopy
(
markers
)
});
return
;
}
markers
[
markerType
]
=
d
;
this
.
setState
({
markers
,
markers
:
deepCopy
(
markers
)
,
markerType
});
});
...
...
@@ -1389,7 +1404,7 @@ class View3D extends Component {
toggleRoad
:
!
isCancel
});
}
else
{
//
this.clearMarkers();
this
.
clearMarkers
();
if
(
!
isCancel
)
{
this
.
asyncLoadMarkerData
(
item
.
type
,
item
.
riskSourceId
);
}
else
{
...
...
mods/components/3dviewConvertor/view/exceptionArea/ExceptionArea.js
View file @
ec57623b
...
...
@@ -46,7 +46,7 @@ class ExceptionArea extends Component {
onMarkerClick
=
(
marker
)
=>
{
const
{
extData
,
node
}
=
marker
;
this
.
props
.
handleExceptModel
&&
this
.
props
.
handleExceptModel
(
'into_except_model'
,
extData
.
id
);
this
.
props
.
focusObject
&&
this
.
props
.
focusObject
(
node
);
this
.
props
.
focusObject
&&
this
.
props
.
focusObject
(
node
,
extData
.
id
);
}
...
...
mods/components/3dviewConvertor/view/sideControl/index.js
View file @
ec57623b
...
...
@@ -26,6 +26,7 @@ class SideControl extends Component {
* control 点击,第二次点击则取消
*/
onBizItemClick
=
(
item
,
e
)
=>
{
console
.
log
(
item
.
type
);
const
{
errorAreaId
:
riskSourceId
}
=
this
.
props
;
const
alreadyActive
=
this
.
isActive
(
item
.
key
);
const
newKeys
=
this
.
getActiveControl
(
item
.
key
,
alreadyActive
);
...
...
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