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
e17d3cef
Commit
e17d3cef
authored
May 22, 2020
by
徐建明
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/station/amos-station-module-view
into developer
parents
9c30d1df
3b6f8877
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
25 deletions
+39
-25
actionbar.scss
mods/components/3dviewConvertor/styles/actionbar.scss
+16
-9
statistical.scss
...ts/3dviewConvertor/styles/view/panoramic/statistical.scss
+2
-1
PointsPool.js
mods/components/3dviewConvertor/view/PointsPool.js
+6
-1
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+3
-13
index.js
mods/components/3dviewConvertor/view/actionbar/index.js
+3
-1
index.js
mods/components/3dviewConvertor/view/points/index.js
+9
-0
No files found.
mods/components/3dviewConvertor/styles/actionbar.scss
View file @
e17d3cef
...
...
@@ -20,21 +20,28 @@
border
:
1px
solid
rgba
(
146
,
149
,
151
,
1
);
.action-item-title
{
color
:
rgb
(
224
,
224
,
224
);
position
:
relative
;
top
:
-23px
;
font-size
:
1vw
;
color
:
#e0e0e0
;
position
:
absolute
;
top
:
-20px
;
white-space
:
nowrap
;
width
:
38px
;
-webkit-transform-origin-x
:
0
;
-webkit-transform
:
scale
(
0
.60
);
white-space
:
nowrap
;
text-align
:
end
;
}
.action-item-icon
{
width
:
21px
;
height
:
21px
;
top
:
-16px
;
.action-item-content
{
text-align
:
center
;
position
:
relative
;
width
:
100%
;
height
:
100%
;
.action-item-icon
{
margin
:
8px
;
width
:
21px
;
height
:
21px
;
position
:
relative
;
}
}
}
...
...
mods/components/3dviewConvertor/styles/view/panoramic/statistical.scss
View file @
e17d3cef
...
...
@@ -200,7 +200,8 @@
//float: right;
padding-top
:
40px
;
right
:
0
;
z-index
:
1
;
.echart-week
{
width
:
321px
!
important
;
height
:
248px
!
important
;
...
...
mods/components/3dviewConvertor/view/PointsPool.js
View file @
e17d3cef
...
...
@@ -4,7 +4,7 @@ import { Connect } from 'amos-framework';
import
{
Store
}
from
'amos-tool'
;
import
{
connect3D
}
from
'amos-3d/lib/designer'
;
import
{
RiskPoint
,
PatrolPoint
,
PersonPoint3D
,
MonitorPoint
,
ProbePoint
,
FireResourcePoint
,
EquipmentPoint
,
FireCar3D
,
FirePoint
,
WorkerMen3D
,
PointStatistics
}
from
'./points'
;
FireResourcePoint
,
EquipmentPoint
,
FireCar3D
,
FirePoint
,
WorkerMen3D
,
PointStatistics
,
ImpEquipmentMode
}
from
'./points'
;
import
{
eventTopics
,
isPointEvent
,
isLevelFilter
}
from
'./consts'
;
import
{
parseMarkers
,
parseLevelFilter
,
objRunning
}
from
'./dataProcessor'
;
...
...
@@ -193,6 +193,11 @@ class PointsPool extends Component {
markers
=
{
markers
.
statistics
}
onCreated
=
{(
val
)
=>
this
.
onMarkersCreated
(
'statistics'
,
val
)}
/
>
<
ImpEquipmentMode
{...
rest
}
markers
=
{
markers
.
impEquipmentMode
}
onCreated
=
{(
val
)
=>
this
.
onMarkersCreated
(
'impEquipmentMode'
,
val
)}
/
>
<
/Shuttle
>
);
}
...
...
mods/components/3dviewConvertor/view/View3D.js
View file @
e17d3cef
...
...
@@ -1197,23 +1197,13 @@ class View3D extends Component {
const
{
markers
}
=
this
.
state
;
pointModelistAction
(
actionType
).
then
(
d
=>
{
// 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
[
'impEquipmentMode'
]
=
d
.
filter
(
item
=>
item
.
position
!=
null
);
// markers[markerType] = d;
this
.
setState
({
markers
markers
,
// markerType: "monitorEquipment"
});
return
;
// }
// markers[markerType] = d;
// this.setState({
// markers,
// markerType
// });
});
}
...
...
mods/components/3dviewConvertor/view/actionbar/index.js
View file @
e17d3cef
...
...
@@ -51,7 +51,9 @@ class ActionBar extends Component {
<
div
className
=
"action-item-title"
>
<
p
className
=
""
>
{
a
.
label
}
<
/p
>
<
/div
>
<
img
className
=
"action-item-icon"
src
=
{
require
(
`./../../assets/convertor/3dview/actionbars/
${
a
.
icon
}
.png`
)}
/
>
<
div
className
=
"action-item-content"
>
<
img
className
=
"action-item-icon"
src
=
{
require
(
`./../../assets/convertor/3dview/actionbars/
${
a
.
icon
}
.png`
)}
/
>
<
/div
>
<
/div
>
);
})
...
...
mods/components/3dviewConvertor/view/points/index.js
View file @
e17d3cef
...
...
@@ -126,3 +126,11 @@ export const PointStatistics = markerFactory(BasicPoint,
markerType
:
'statistics'
}
);
/**
* 重点设备模式
*/
export
const
ImpEquipmentMode
=
markerFactory
(
BasicPoint
,
{
markerType
:
'impEquipmentMode'
}
);
\ No newline at end of file
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