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
16ff3558
Commit
16ff3558
authored
Jun 05, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加非点编辑模式下,选中清除
parent
a45d7f06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+9
-7
No files found.
mods/components/3dviewConvertor/view/View3D.js
View file @
16ff3558
...
...
@@ -555,7 +555,7 @@ class View3D extends Component {
this
.
getPointLoop
(
{
markers
},
pointType
,
t
.
children
)
}
else
if
(
t
.
position3d
){
t
.
position
=
t
.
position3d
;
t
.
key
=
`
${
t
.
type
}
-
${
t
.
id
}
`
;
t
.
key
=
`
${
t
.
type
}
-
${
t
.
id
}
`
;
t
.
label
=
t
.
name
;
markers
[
pointType
].
push
(
t
);
}
...
...
@@ -925,7 +925,7 @@ class View3D extends Component {
deletePointBind
=
()
=>
{
let
{
selectPoints
,
pointTypeArr
,
pointType
,
markers
}
=
this
.
state
;
if
(
selectPoints
&&
!
selectPoints
.
isRegion
)
{
let
pointParams
=
[];
pointParams
.
push
({
pointId
:
selectPoints
.
id
,
...
...
@@ -1037,10 +1037,11 @@ class View3D extends Component {
*/
changeAreaPoint
=
(
type
)
=>
{
let
{
pointTypeArr
}
=
this
.
state
;
this
.
setState
({
treeDataList
:[]})
this
.
setState
({
treeDataList
:
[]
});
this
.
stagePilot
.
positionCtl
.
clearDrag
();
//清除已有选中
if
(
type
===
'region'
)
{
getAreaTreeAction
().
then
(
data
=>
{
this
.
generateList
(
data
)
this
.
generateList
(
data
)
;
this
.
setState
({
treeData
:
data
||
[],
pageType
:
'region'
,
...
...
@@ -1108,7 +1109,7 @@ class View3D extends Component {
}
drop
=
(
event
)
=>
{
console
.
log
(
'drop'
);
this
.
stagePilot
.
positionCtl
.
clearDrag
(
);
event
.
preventDefault
();
this
.
setState
({
isPointSave
:
false
});
let
{
dragItem
,
markers
}
=
this
.
state
;
...
...
@@ -1146,10 +1147,10 @@ class View3D extends Component {
levelStr
:
dragItem
.
levelStr
};
let
selectPoints
=
{
let
selectPoints
=
{
id
:
dragItem
.
id
,
type
:
dragItem
.
type
}
}
;
markers
[
`
${
type
}
`
]
=
markers
[
`
${
type
}
`
].
filter
(
e
=>
e
.
id
!=
dragItem
.
id
);
markers
[
`
${
type
}
`
].
push
(
addPointParam
);
this
.
setState
({
...
...
@@ -1474,6 +1475,7 @@ class View3D extends Component {
errorAreaId
:
areaId
});
}
else
if
(
type
===
'out_except_model'
){
this
.
stagePilot
.
positionCtl
.
clearDrag
();
if
(
!
isPointSave
){
AmosAlert
.
confirm
(
'提示'
,
'有未保存数据,是否保存?'
,
{
callback
:
(
flag
)
=>
{
...
...
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