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
882454f3
Commit
882454f3
authored
Jun 05, 2020
by
shanqiyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
5b53aa58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
25 deletions
+26
-25
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+26
-25
No files found.
mods/components/3dviewConvertor/view/View3D.js
View file @
882454f3
...
@@ -933,27 +933,28 @@ class View3D extends Component {
...
@@ -933,27 +933,28 @@ class View3D extends Component {
savePointListAction
(
pointParams
).
then
(
data
=>
{
savePointListAction
(
pointParams
).
then
(
data
=>
{
getPointTreeAction
(
pointType
).
then
(
data
=>
{
getPointTreeAction
(
pointType
).
then
(
data
=>
{
getPointListAction
().
then
(
data
=>
{
this
.
getPointList
(
pointType
,
data
);
let
newMarkers
=
{
// getPointListAction().then(data => {
riskSource
:[],
//风险点 - riskSource;
// let newMarkers ={
patrol
:[],
//巡检点 -
// riskSource:[],//风险点 - riskSource;
impEquipment
:[],
//重点设备 -
// patrol:[],//巡检点 -
monitorEquipment
:[],
//探测器 -
// impEquipment:[],//重点设备 -
video
:[],
//摄像头 -
// monitorEquipment:[],//探测器 -
fireEquipment
:[],
//消防设备 -
// video:[],//摄像头 -
person
:[],
// fireEquipment:[],//消防设备 -
pool
:[],
// person:[],
hydrant
:[],
// pool:[],
fireChamber
:[],
// hydrant:[],
fireCar
:[],
// fireChamber:[],
fire
:[],
// fireCar:[],
fireDetection
:[]
// fire:[],
}
// fireDetection:[]
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
){
// }
newMarkers
[
data
[
i
].
type
].
push
(
data
[
i
]);
// for (let i = 0; i < data.length;i++){
}
// newMarkers[data[i].type].push(data[i]);
this
.
setState
(
{
markers
:
newMarkers
});
// }
})
// this.setState( {markers: newMarkers });
// })
this
.
setState
({
this
.
setState
({
treeData
:
data
||
[],
treeData
:
data
||
[],
...
@@ -1539,7 +1540,7 @@ class View3D extends Component {
...
@@ -1539,7 +1540,7 @@ class View3D extends Component {
const
me
=
this
;
const
me
=
this
;
const
{
markers
}
=
me
;
const
{
markers
}
=
me
;
const
isInside
=
me
.
polygonRegion
&&
extData
.
parentId
&&
me
.
polygonRegion
[
extData
.
parentId
].
pointInPolygon
([
position
.
x
,
position
.
y
,
position
.
z
]);
const
isInside
=
me
.
polygonRegion
&&
extData
.
parentId
&&
me
.
polygonRegion
[
extData
.
parentId
].
pointInPolygon
([
position
.
x
,
position
.
y
,
position
.
z
]);
if
(
isInside
){
//
if (isInside){
markers
[
extData
.
type
].
forEach
(
e
=>
{
markers
[
extData
.
type
].
forEach
(
e
=>
{
if
(
e
.
id
===
extData
.
id
){
if
(
e
.
id
===
extData
.
id
){
e
.
position
=
`
${
position
[
0
]}
,
${
position
[
1
]}
,
${
position
[
2
]}
`
;
e
.
position
=
`
${
position
[
0
]}
,
${
position
[
1
]}
,
${
position
[
2
]}
`
;
...
@@ -1553,9 +1554,9 @@ class View3D extends Component {
...
@@ -1553,9 +1554,9 @@ class View3D extends Component {
showRightPanel
:
true
,
showRightPanel
:
true
,
selectPoints
:
extData
selectPoints
:
extData
});
});
}
else
{
//
} else {
message
.
error
(
'不能放置非所在区域'
);
//
message.error('不能放置非所在区域');
}
//
}
}
}
render
()
{
render
()
{
...
...
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