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
54d97155
Commit
54d97155
authored
Jun 02, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改
parent
f639f934
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+5
-2
SafetyIndex.js
...3dviewConvertor/view/panoramic/statistical/SafetyIndex.js
+6
-2
No files found.
mods/components/3dviewConvertor/view/View3D.js
View file @
54d97155
...
...
@@ -1286,7 +1286,10 @@ class View3D extends Component {
getExceptionAreasList
=
()
=>
{
exceptionRegionListAction
().
then
(
data
=>
{
this
.
setState
({
exceptionAreas
:
data
});
const
exceptionAreas
=
data
.
filter
(
e
=>
{
return
e
.
routePath
&&
e
.
routePath
.
routePath
&&
e
.
routePath
.
routePath
.
length
>
0
;
});
this
.
setState
({
exceptionAreas
});
});
}
...
...
@@ -1304,7 +1307,7 @@ class View3D extends Component {
};
return
exceptionAreas
.
map
((
area
,
index
)
=>
{
const
{
routePath
:
points
=
[]
}
=
area
.
routePath
;
return
points
.
length
>
0
&&
<
PolygonRegion
key
=
{
area
.
id
}
{...
regionConf
}
points
=
{
points
}
onCreated
=
{
e
=>
this
.
onRectCreated
(
e
,
area
,
index
)}
/>
;
return
<
PolygonRegion
key
=
{
area
.
id
}
{...
regionConf
}
points
=
{
points
}
onCreated
=
{
e
=>
this
.
onRectCreated
(
e
,
area
,
index
)}
/>
;
});
}
...
...
mods/components/3dviewConvertor/view/panoramic/statistical/SafetyIndex.js
View file @
54d97155
...
...
@@ -7,6 +7,7 @@ import { warnController } from './conf';
import
{
getIcon
}
from
'./../../../utils/request'
;
const
panoramicIcon
=
imgStatic
.
panoramicIcon
;
const
colorLevel
=
{
1
:
'red'
,
2
:
'yellow'
,
3
:
'blue'
,
4
:
'blue'
};
/**
* 今日安全指数
...
...
@@ -82,12 +83,15 @@ export default class SafetyIndex extends Component {
width
:
5
},
title
:
{
show
:
false
show
:
true
,
offsetCenter
:
[
'5%'
,
'55%'
],
color
:
colorLevel
[
safetyIndexData
.
level
]
||
'yellow'
,
fontSize
:
15
},
detail
:
{
show
:
false
},
data
:
[{
value
:
safetyIndexData
.
safetyIndex
,
name
:
'今日安全指数'
}]
data
:
[{
value
:
safetyIndexData
.
safetyIndex
,
name
:
safetyIndexData
.
safetyTips
}]
}
]
}
...
...
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