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
4689b659
Commit
4689b659
authored
Jun 23, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改缺陷
parent
dbda573f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
41 additions
and
70 deletions
+41
-70
burst.png
...iewConvertor/assets/convertor/3dview/actionbars/burst.png
+0
-0
index.json
...components/3dviewConvertor/threeres/models/zmd/index.json
+0
-0
PointsPool.js
mods/components/3dviewConvertor/view/PointsPool.js
+0
-20
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+37
-37
dataProcessor.js
mods/components/3dviewConvertor/view/dataProcessor.js
+2
-12
index.js
mods/components/3dviewConvertor/view/sideControl/index.js
+2
-1
No files found.
mods/components/3dviewConvertor/assets/convertor/3dview/actionbars/burst.png
View replaced file @
dbda573f
View file @
4689b659
2.22 KB
|
W:
|
H:
1.22 KB
|
W:
|
H:
2-up
Swipe
Onion skin
mods/components/3dviewConvertor/threeres/models/zmd/index.json
View file @
4689b659
This diff is collapsed.
Click to expand it.
mods/components/3dviewConvertor/view/PointsPool.js
View file @
4689b659
...
@@ -65,26 +65,6 @@ class PointsPool extends Component {
...
@@ -65,26 +65,6 @@ class PointsPool extends Component {
if
(
extData
.
isTableDb
)
{
//控制安全执行类表双击最佳视角
if
(
extData
.
isTableDb
)
{
//控制安全执行类表双击最佳视角
this
.
props
.
focusObject
&&
this
.
props
.
focusObject
(
mc
.
node
);
this
.
props
.
focusObject
&&
this
.
props
.
focusObject
(
mc
.
node
);
}
}
if
(
extData
.
hasOwnProperty
(
'visible'
)){
let
visible
=
extData
.
visible
;
if
(
visible
)
{
if
(
extData
.
type
===
'fireCar'
)
{
mc
.
visible
=
visible
;
mc
.
object2DPipe
.
pipeNode
.
visible
=
false
;
mc
.
object2DPipe
.
pipeNode
.
elementVisible
=
false
;
}
else
{
mc
.
show
();
}
}
else
{
if
(
extData
.
type
===
'fireCar'
)
{
mc
.
visible
=
visible
;
mc
.
object2DPipe
.
pipeNode
.
visible
=
false
;
mc
.
object2DPipe
.
pipeNode
.
elementVisible
=
false
;
}
else
{
mc
.
hide
();
}
}
}
});
});
}
}
...
...
mods/components/3dviewConvertor/view/View3D.js
View file @
4689b659
...
@@ -118,7 +118,7 @@ class View3D extends Component {
...
@@ -118,7 +118,7 @@ class View3D extends Component {
alarmStarted
:
false
,
alarmStarted
:
false
,
//编辑模式
//编辑模式
drawing
:
false
,
//画线状态
drawing
:
false
,
//画线状态
selectArea
:
''
,
//选中区域
selectArea
:
{}
,
//选中区域
selectPoints
:
''
,
//选中点
selectPoints
:
''
,
//选中点
treeData
:
[],
//左树
treeData
:
[],
//左树
pointTypeArr
:
[],
pointTypeArr
:
[],
...
@@ -858,7 +858,7 @@ class View3D extends Component {
...
@@ -858,7 +858,7 @@ class View3D extends Component {
}
}
});
});
this
.
setState
({
this
.
setState
({
selectArea
:
''
,
selectArea
:
{}
,
selectPoints
,
selectPoints
,
showRightPanel
:
true
showRightPanel
:
true
});
});
...
@@ -916,6 +916,7 @@ class View3D extends Component {
...
@@ -916,6 +916,7 @@ class View3D extends Component {
onRegionCreated
=
(
polygonRegion
,
item
)
=>
{
onRegionCreated
=
(
polygonRegion
,
item
)
=>
{
this
.
polygonRegion
[
item
.
id
]
=
polygonRegion
;
this
.
polygonRegion
[
item
.
id
]
=
polygonRegion
;
}
}
saveRoutePath
=
(
data
)
=>
{
saveRoutePath
=
(
data
)
=>
{
saveAreaDataAction
(
data
).
then
(
d
=>
{
saveAreaDataAction
(
data
).
then
(
d
=>
{
message
.
success
(
'保存成功!'
);
message
.
success
(
'保存成功!'
);
...
@@ -929,31 +930,35 @@ class View3D extends Component {
...
@@ -929,31 +930,35 @@ class View3D extends Component {
message
.
error
(
'保存失败!'
);
message
.
error
(
'保存失败!'
);
});
});
}
}
changeRoutePath
=
(
routePathNode
)
=>
{
changeRoutePath
=
(
routePathNode
)
=>
{
this
.
state
.
routePathData
.
push
(
routePathNode
);
this
.
state
.
routePathData
.
push
(
routePathNode
);
}
}
//保存区域绑定
//保存区域绑定
saveAreaData
=
()
=>
{
saveAreaData
=
()
=>
{
let
{
routePathData
}
=
this
.
state
;
const
{
routePathData
}
=
this
.
state
;
this
.
setState
({
isAreaSave
:
false
});
saveAreaDataAction
(
routePathData
).
then
(
d
=>
{
saveAreaDataAction
(
routePathData
).
then
(
d
=>
{
message
.
success
(
'保存成功!'
);
this
.
a3dRef
.
changeDrawState
(
PEN_STATE
.
CLEARED
);
//清除当前路径
this
.
a3dRef
.
changeDrawState
(
PEN_STATE
.
CLEARED
);
//清除当前路径
// 结束绘制
this
.
setState
({
isAreaSave
:
false
,
drawing
:
false
,
treeData
:
[]
},()
=>
{
this
.
setState
({
message
.
success
(
'保存成功!'
);
drawing
:
false
this
.
getAreaTree
();
});
});
getAreaTreeAction
().
then
(
data
=>
{
},
err
=>
{
this
.
setState
({
treeData
:
data
||
[],
routePathData
:
[]
});
});
},
eer
=>
{
message
.
error
(
'保存失败!'
);
message
.
error
(
'保存失败!'
);
});
});
}
}
getAreaTree
=
()
=>
{
getAreaTreeAction
().
then
(
data
=>
{
this
.
setState
({
treeData
:
data
||
[],
routePathData
:
[]
});
});
}
savePointDataBack
=
async
()
=>
{
savePointDataBack
=
async
()
=>
{
await
this
.
savePointData
();
await
this
.
savePointData
();
this
.
handleOutExceptModel
();
this
.
handleOutExceptModel
();
...
@@ -1023,7 +1028,6 @@ class View3D extends Component {
...
@@ -1023,7 +1028,6 @@ class View3D extends Component {
deletePointBind
=
()
=>
{
deletePointBind
=
()
=>
{
let
{
selectPoints
,
pointType
}
=
this
.
state
;
let
{
selectPoints
,
pointType
}
=
this
.
state
;
if
(
selectPoints
&&
!
selectPoints
.
isRegion
)
{
if
(
selectPoints
&&
!
selectPoints
.
isRegion
)
{
let
pointParams
=
[];
let
pointParams
=
[];
pointParams
.
push
({
pointParams
.
push
({
pointId
:
selectPoints
.
id
,
pointId
:
selectPoints
.
id
,
...
@@ -1079,30 +1083,26 @@ class View3D extends Component {
...
@@ -1079,30 +1083,26 @@ class View3D extends Component {
//删除区域
//删除区域
deleteAreaBind
=
()
=>
{
deleteAreaBind
=
()
=>
{
let
{
selectArea
}
=
this
.
state
;
const
{
selectArea
,
routePathData
=
[]
}
=
this
.
state
;
if
(
selectArea
)
{
if
(
selectArea
&&
selectArea
.
id
)
{
getPointsByRegionIdAction
(
selectArea
.
id
).
then
(
d
=>
{
getPointsByRegionIdAction
(
selectArea
.
id
).
then
(
d
=>
{
if
(
d
&&
d
.
length
===
0
){
if
(
d
&&
d
.
length
===
0
){
this
.
state
.
routePathData
.
push
({
if
(
!
routePathData
.
some
(
r
=>
r
.
riskSourceId
===
selectArea
.
id
)){
riskSourceId
:
selectArea
.
id
,
routePathData
.
push
({
routePath
:
''
riskSourceId
:
selectArea
.
id
,
});
routePath
:
''
//var tree = new Object();
});
//tree.children = treeData;
}
//this.removeTreeDataRoutePathByChildId(selectArea.id,tree);
const
promptData
=
{
//this.getAreas(tree.children);
this
.
setState
({
routePathData
:
this
.
state
.
routePathData
,
//treeData: tree.children,
selectArea
:
''
});
this
.
setState
({
promptData
:
{
promptvisible
:
true
,
promptvisible
:
true
,
promptContent
:
'确定将选中删除?'
,
promptContent
:
'确定将选中删除?'
,
type
:
'region'
,
type
:
'region'
,
btnType
:
'isOk'
,
btnType
:
'isOk'
,
isback
:
false
isback
:
false
}
};
this
.
setState
({
routePathData
,
promptData
});
});
}
else
{
}
else
{
message
.
danger
(
'请先清除点的绑定再进行删除!'
);
message
.
danger
(
'请先清除点的绑定再进行删除!'
);
...
@@ -1160,7 +1160,7 @@ class View3D extends Component {
...
@@ -1160,7 +1160,7 @@ class View3D extends Component {
this
.
setState
(
{
this
.
setState
(
{
treeDataList
:
[],
treeDataList
:
[],
dragItem
:
''
,
dragItem
:
''
,
selectArea
:
''
,
selectArea
:
{}
,
selectPoints
:
''
selectPoints
:
''
}
);
}
);
this
.
stagePilot
.
positionCtl
.
clearDrag
();
//清除已有选中
this
.
stagePilot
.
positionCtl
.
clearDrag
();
//清除已有选中
...
@@ -1183,7 +1183,7 @@ class View3D extends Component {
...
@@ -1183,7 +1183,7 @@ class View3D extends Component {
treeData
:
data
||
[],
treeData
:
data
||
[],
pageType
:
'point'
,
pageType
:
'point'
,
showRightPanel
:
false
,
showRightPanel
:
false
,
selectArea
:
''
selectArea
:
{}
});
});
});
});
this
.
enableCamera
();
this
.
enableCamera
();
...
@@ -1195,7 +1195,7 @@ class View3D extends Component {
...
@@ -1195,7 +1195,7 @@ class View3D extends Component {
pointType
,
pointType
,
treeData
:
[],
treeData
:
[],
treeDataList
:
[],
treeDataList
:
[],
selectArea
:
''
,
selectArea
:
{}
,
selectPoints
:
''
,
selectPoints
:
''
,
dragItem
:
''
dragItem
:
''
});
});
...
@@ -1631,7 +1631,7 @@ class View3D extends Component {
...
@@ -1631,7 +1631,7 @@ class View3D extends Component {
isEditMode
:
false
,
//推出编辑模式
isEditMode
:
false
,
//推出编辑模式
errorAreaId
:
''
,
errorAreaId
:
''
,
dragItem
:
''
,
dragItem
:
''
,
selectArea
:
''
,
selectArea
:
{}
,
selectPoints
:
''
,
selectPoints
:
''
,
showRightPanel
:
false
,
showRightPanel
:
false
,
routePathData
:
[],
routePathData
:
[],
...
...
mods/components/3dviewConvertor/view/dataProcessor.js
View file @
4689b659
...
@@ -247,19 +247,9 @@ export const parseLevelFilter = (instance, topic, data) => {
...
@@ -247,19 +247,9 @@ export const parseLevelFilter = (instance, topic, data) => {
case
'fireResource'
:
case
'fireResource'
:
(
instance
.
markerList
[
pointLevel
]
||
[]).
forEach
(
mc
=>
{
(
instance
.
markerList
[
pointLevel
]
||
[]).
forEach
(
mc
=>
{
if
(
visible
)
{
if
(
visible
)
{
if
(
mc
.
extData
.
type
===
'fireCar'
)
{
mc
.
visible
=
true
;
mc
.
node
.
visible
=
visible
;
mc
.
object2DPipe
.
pipeNode
.
show
();
}
else
{
mc
.
visible
=
true
;
}
}
else
{
}
else
{
if
(
mc
.
extData
.
type
===
'fireCar'
)
{
mc
.
visible
=
false
;
mc
.
node
.
visible
=
visible
;
mc
.
object2DPipe
.
pipeNode
.
hide
();
}
else
{
mc
.
visible
=
false
;
}
}
}
});
});
break
;
break
;
...
...
mods/components/3dviewConvertor/view/sideControl/index.js
View file @
4689b659
...
@@ -82,7 +82,8 @@ SideControl.propTypes = {
...
@@ -82,7 +82,8 @@ SideControl.propTypes = {
write
:
PropTypes
.
func
,
write
:
PropTypes
.
func
,
toStr
:
PropTypes
.
func
,
toStr
:
PropTypes
.
func
,
animationProps
:
PropTypes
.
object
,
animationProps
:
PropTypes
.
object
,
errorAreaId
:
PropTypes
.
number
errorAreaId
:
PropTypes
.
string
,
activeAction
:
PropTypes
.
array
};
};
export
default
SideControl
;
export
default
SideControl
;
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