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
d31eb057
Commit
d31eb057
authored
Jun 19, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
缺陷:【实景监控】三维模型,风险点RPN值变化后,未在上级风险区域顶部实时展示红色色柱及安全指数值。
parent
19eed715
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
index_dev.json
...ents/3dviewConvertor/threeres/models/yinan/index_dev.json
+1
-1
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+6
-2
ExceptionArea.js
...nents/3dviewConvertor/view/exceptionArea/ExceptionArea.js
+0
-2
No files found.
mods/components/3dviewConvertor/threeres/models/yinan/index_dev.json
View file @
d31eb057
{
{
"sceneName"
:
"station-yinan"
,
"sceneName"
:
"station-yinan"
,
"basePath"
:
"/threeres/models/yinan/"
,
"basePath"
:
"/
mods/components/3dviewConvertor/
threeres/models/yinan/"
,
"models"
:
[
"models"
:
[
{
"objName"
:
"ground.obj"
,
"mtlName"
:
"ground.mtl"
,
"modelLevel"
:
"Park"
},
{
"objName"
:
"ground.obj"
,
"mtlName"
:
"ground.mtl"
,
"modelLevel"
:
"Park"
},
{
"objName"
:
"helper-text.obj"
,
"mtlName"
:
"helper-text.mtl"
,
"modelLevel"
:
"Stuff"
}
{
"objName"
:
"helper-text.obj"
,
"mtlName"
:
"helper-text.mtl"
,
"modelLevel"
:
"Stuff"
}
...
...
mods/components/3dviewConvertor/view/View3D.js
View file @
d31eb057
...
@@ -1565,22 +1565,26 @@ class View3D extends Component {
...
@@ -1565,22 +1565,26 @@ class View3D extends Component {
}
}
getExceptionAreasList
=
()
=>
{
getExceptionAreasList
=
()
=>
{
this
.
_marker
=
[];
exceptionRegionListAction
().
then
(
data
=>
{
exceptionRegionListAction
().
then
(
data
=>
{
const
exceptionAreas
=
data
&&
data
.
filter
(
e
=>
{
const
exceptionAreas
=
data
.
filter
(
e
=>
{
return
e
.
routePath
&&
e
.
routePath
.
routePath
&&
e
.
routePath
.
routePath
.
length
>
0
;
return
e
.
routePath
&&
e
.
routePath
.
routePath
&&
e
.
routePath
.
routePath
.
length
>
0
;
});
});
this
.
setState
({
exceptionAreas
});
this
.
setState
({
exceptionAreas
});
});
});
}
}
initExceptionAreasData
=
()
=>
{
initExceptionAreasData
=
()
=>
{
this
.
setState
({
startLoadExceptionArea
:
true
},()
=>
{
this
.
setState
({
startLoadExceptionArea
:
false
,
exceptionAreas
:
[]
},()
=>
{
this
.
getExceptionAreasList
();
this
.
getExceptionAreasList
();
});
});
}
}
selectonRectCreated
=
(
polygonRegion
)
=>
{
selectonRectCreated
=
(
polygonRegion
)
=>
{
polygonRegion
.
visible
=
true
;
polygonRegion
.
visible
=
true
;
}
}
selectPolygonRegion
=
(
exceptionAreas
,
id
)
=>
{
selectPolygonRegion
=
(
exceptionAreas
,
id
)
=>
{
const
regionConf
=
{
const
regionConf
=
{
// regionColor: '#76d015', // 区域颜色
// regionColor: '#76d015', // 区域颜色
...
...
mods/components/3dviewConvertor/view/exceptionArea/ExceptionArea.js
View file @
d31eb057
...
@@ -45,11 +45,9 @@ class ExceptionArea extends Component {
...
@@ -45,11 +45,9 @@ class ExceptionArea extends Component {
onMarkerClick
=
(
marker
)
=>
{
onMarkerClick
=
(
marker
)
=>
{
const
{
extData
,
node
}
=
marker
;
const
{
extData
,
node
}
=
marker
;
this
.
props
.
handleExceptModel
&&
this
.
props
.
handleExceptModel
(
'into_except_model'
,
extData
.
id
);
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
);
this
.
props
.
getErrorAreaPoint
&&
this
.
props
.
getErrorAreaPoint
(
extData
.
id
);
this
.
props
.
getErrorAreaPoint
&&
this
.
props
.
getErrorAreaPoint
(
extData
.
id
);
}
}
...
...
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