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
a45d7f06
Commit
a45d7f06
authored
Jun 05, 2020
by
单奇雲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
坐标绑定
parent
ca45b7ac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
4 deletions
+7
-4
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+5
-2
RightEditPointPanel.js
...Convertor/view/moduleEditComponent/RightEditPointPanel.js
+2
-2
No files found.
mods/components/3dviewConvertor/view/View3D.js
View file @
a45d7f06
...
...
@@ -788,6 +788,7 @@ class View3D extends Component {
selectArea
:
''
,
selectPoints
,
showRightPanel
:
true
,
selectPoints
});
}
...
...
@@ -923,7 +924,8 @@ class View3D extends Component {
// 删除点绑定
deletePointBind
=
()
=>
{
let
{
selectPoints
,
pointTypeArr
,
pointType
,
markers
}
=
this
.
state
;
if
(
selectPoints
)
{
if
(
selectPoints
&&
!
selectPoints
.
isRegion
)
{
let
pointParams
=
[];
pointParams
.
push
({
pointId
:
selectPoints
.
id
,
...
...
@@ -1148,6 +1150,7 @@ class View3D extends Component {
id
:
dragItem
.
id
,
type
:
dragItem
.
type
}
markers
[
`
${
type
}
`
]
=
markers
[
`
${
type
}
`
].
filter
(
e
=>
e
.
id
!=
dragItem
.
id
);
markers
[
`
${
type
}
`
].
push
(
addPointParam
);
this
.
setState
({
markers
:
deepCopy
(
markers
),
...
...
@@ -1543,7 +1546,7 @@ class View3D extends Component {
// if (isInside){
markers
[
extData
.
type
].
forEach
(
e
=>
{
if
(
e
.
id
===
extData
.
id
){
e
.
position
=
`
${
position
[
0
]}
,
${
position
[
1
]}
,
${
position
[
2
]}
`
;
e
.
position
=
position
;
e
.
isEdit
=
true
;
}
});
...
...
mods/components/3dviewConvertor/view/moduleEditComponent/RightEditPointPanel.js
View file @
a45d7f06
...
...
@@ -49,8 +49,8 @@ class RightEditPointPanel extends Component {
console
.
log
(
'componentWillReceivePropscomponentWillReceiveProps'
);
// positionxyz && this.setState({ positionxyz, positionX: positionxyz[0], positionY: positionxyz[1], positionZ: positionxyz[2] });
getPointTreeDetailAction
(
detailData
.
id
,
detailData
.
type
).
then
(
data
=>
{
if
(
detailData
.
position
3d
){
data
.
position
=
detailData
.
position
3d
;
if
(
detailData
.
position
){
data
.
position
=
detailData
.
position
;
}
else
if
(
!
data
.
position
){
const
curTypeMaker
=
markers
[
data
.
type
];
for
(
let
i
=
0
;
i
<
curTypeMaker
.
length
;
i
++
)
{
...
...
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