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
466f347f
Commit
466f347f
authored
Jun 05, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/station/amos-station-module-view
into developer
# Conflicts: # mods/components/3dviewConvertor/view/View3D.js
parents
b9b7506e
edc99d15
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
97 additions
and
45 deletions
+97
-45
amos.config.js
amos.config.js
+4
-4
pointsDetails.scss
mods/components/3dviewConvertor/styles/pointsDetails.scss
+12
-0
searchpane.scss
mods/components/3dviewConvertor/styles/searchpane.scss
+41
-1
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+39
-39
PointLeftTree.js
...3dviewConvertor/view/moduleEditComponent/PointLeftTree.js
+1
-1
No files found.
amos.config.js
View file @
466f347f
...
@@ -11,10 +11,10 @@
...
@@ -11,10 +11,10 @@
objModelURI
:
'/a3dres'
,
objModelURI
:
'/a3dres'
,
// 根url
// 根url
// baseURI: 'http://172.16.11.30:9008/',
// baseURI: 'http://172.16.11.30:9008/',
baseURI
:
'http://172.16.3.
122
:8083/'
,
baseURI
:
'http://172.16.3.
77
:8083/'
,
// convertorURI: 'http://172.16.3.122:8083/',
// convertorURI: 'http://172.16.3.122:8083/',
convertorURI
:
'http://172.16.3.
122
:8083/'
,
convertorURI
:
'http://172.16.3.
77
:8083/'
,
patrolURI
:
'http://172.16.3.
122:8082
/'
,
patrolURI
:
'http://172.16.3.
77:9000
/'
,
rulesConfigURI
:
'http://172.16.10.91:8080/'
,
rulesConfigURI
:
'http://172.16.10.91:8080/'
,
// plugin URI
// plugin URI
pluginURI
:
'http://172.16.11.40:8099/'
,
pluginURI
:
'http://172.16.11.40:8099/'
,
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
studioURI
:
'ws://172.16.11.40:10600/'
,
studioURI
:
'ws://172.16.11.40:10600/'
,
securityBaseURI
:
'ws://172.16.10.91:10600/'
,
securityBaseURI
:
'ws://172.16.10.91:10600/'
,
convertorView3dURI
:
'ws://172.16.10.91:10600/'
,
convertorView3dURI
:
'ws://172.16.10.91:10600/'
,
ruleURI
:
'ws://172.16.
10.91:8080
/'
ruleURI
:
'ws://172.16.
3.77:8083
/'
},
},
// 外部链接地址
// 外部链接地址
outterURI
:
{
outterURI
:
{
...
...
mods/components/3dviewConvertor/styles/pointsDetails.scss
View file @
466f347f
...
@@ -366,3 +366,15 @@
...
@@ -366,3 +366,15 @@
}
}
}
}
}
}
.amos-toast
{
.amos-toast-inner
{
background
:
#5a94f5
;
opacity
:
0
.78
;
color
:
white
;
.amos-toast-inner-title
{
color
:
white
;
}
}
}
mods/components/3dviewConvertor/styles/searchpane.scss
View file @
466f347f
...
@@ -294,4 +294,43 @@
...
@@ -294,4 +294,43 @@
// }
// }
}
}
.ant-calendar-picker-container
{
.ant-calendar
{
border
:
1px
solid
#2b8dd4
;
background-color
:
#2b8dd4
;
.ant-calendar-date-input-wrap
{
color
:
white
;
.ant-calendar-input
{
background-color
:
#2b8dd4
;
}
.
ant-calendar-input
:
:-
webkit-input-placeholder
{
color
:
white
;
}
}
.ant-calendar-header
{
color
:
white
;
div
a
{
color
:
white
;
}
div
span
a
{
color
:
white
;
}
}
.ant-calendar-body
{
color
:
white
;
.ant-calendar-cell
>
.ant-calendar-date
{
color
:
white
;
}
.ant-calendar-today
>
.ant-calendar-date
{
color
:
black
;
}
}
.ant-calendar-footer
{
color
:
white
;
.ant-calendar-today-btn
{
color
:
white
;
}
}
}
}
\ No newline at end of file
mods/components/3dviewConvertor/view/View3D.js
View file @
466f347f
...
@@ -782,7 +782,7 @@ class View3D extends Component {
...
@@ -782,7 +782,7 @@ class View3D extends Component {
selectPointChange
=
(
selectPoints
)
=>
{
selectPointChange
=
(
selectPoints
)
=>
{
const
{
markers
,
pointType
}
=
this
.
state
;
const
{
markers
,
pointType
}
=
this
.
state
;
if
(
selectPoints
.
isRegion
){
if
(
selectPoints
.
isRegion
){
this
.
setState
({
selectArea
:
selectPoints
});
this
.
setState
({
selectArea
:
selectPoints
,
selectPoints
});
}
else
{
}
else
{
this
.
dragItemChange
(
selectPoints
);
this
.
dragItemChange
(
selectPoints
);
markers
[
pointType
].
map
(
e
=>
{
markers
[
pointType
].
map
(
e
=>
{
...
@@ -799,9 +799,7 @@ class View3D extends Component {
...
@@ -799,9 +799,7 @@ class View3D extends Component {
}
}
getAreas
=
(
treeData
)
=>
{
getAreas
=
(
treeData
)
=>
{
let
{
dragItem
,
selectArea
}
=
this
.
state
;
let
{
dragItem
,
selectArea
}
=
this
.
state
;
// console.log(treeData)
// let areas = [];
if
(
treeData
&&
treeData
.
length
>
0
)
{
if
(
treeData
&&
treeData
.
length
>
0
)
{
treeData
.
map
((
item
)
=>
{
treeData
.
map
((
item
)
=>
{
if
(
item
.
isRegion
&&
item
.
isBind
)
{
if
(
item
.
isRegion
&&
item
.
isBind
)
{
...
@@ -908,6 +906,10 @@ class View3D extends Component {
...
@@ -908,6 +906,10 @@ class View3D extends Component {
position3d
:
item
.
position
.
length
>
1
?
`
${
item
.
position
[
0
]}
,
${
item
.
position
[
1
]}
,
${
item
.
position
[
2
]}
`
:
null
position3d
:
item
.
position
.
length
>
1
?
`
${
item
.
position
[
0
]}
,
${
item
.
position
[
1
]}
,
${
item
.
position
[
2
]}
`
:
null
};
};
});
});
this
.
savePointList
(
pointType
,
paramsArr
);
}
savePointList
=
(
pointType
,
paramsArr
)
=>
{
savePointListAction
(
paramsArr
).
then
(
savePointListAction
(
paramsArr
).
then
(
data
=>
{
data
=>
{
getPointTreeAction
(
pointType
).
then
(
getPointTreeAction
(
pointType
).
then
(
...
@@ -922,9 +924,8 @@ class View3D extends Component {
...
@@ -922,9 +924,8 @@ class View3D extends Component {
message
.
success
(
'保存成功'
);
message
.
success
(
'保存成功'
);
},
error
=>
message
.
error
(
'保存失败'
)
},
error
=>
message
.
error
(
'保存失败'
)
);
);
}
}
// 删除点绑定
// 删除点绑定
deletePointBind
=
()
=>
{
deletePointBind
=
()
=>
{
let
{
selectPoints
,
pointTypeArr
,
pointType
,
markers
}
=
this
.
state
;
let
{
selectPoints
,
pointTypeArr
,
pointType
,
markers
}
=
this
.
state
;
...
@@ -935,43 +936,42 @@ class View3D extends Component {
...
@@ -935,43 +936,42 @@ class View3D extends Component {
pointId
:
selectPoints
.
id
,
pointId
:
selectPoints
.
id
,
pointType
:
selectPoints
.
type
,
pointType
:
selectPoints
.
type
,
position3d
:
``
position3d
:
``
})
});
this
.
savePointAndRefreshMarker
(
pointType
,
pointParams
);
savePointListAction
(
pointParams
).
then
(
data
=>
{
}
else
if
(
selectPoints
&&
selectPoints
.
isRegion
&&
selectPoints
.
children
){
getPointTreeAction
(
pointType
).
then
(
data
=>
{
AmosAlert
.
confirm
(
'提示'
,
'是否删除该区域下所有点?'
,
{
this
.
getPointList
(
pointType
,
data
);
callback
:
(
flag
)
=>
{
// getPointListAction().then(data => {
if
(
flag
){
// let newMarkers ={
let
pointParams
=
[];
// riskSource:[],//风险点 - riskSource;
pointParams
=
selectPoints
.
children
.
filter
(
e
=>
e
.
position3d
&&
e
.
position3d
.
length
>
0
).
map
(
item
=>
{
// patrol:[],//巡检点 -
return
{
// impEquipment:[],//重点设备 -
pointId
:
item
.
id
,
// monitorEquipment:[],//探测器 -
pointType
:
item
.
type
,
// video:[],//摄像头 -
position3d
:
''
// fireEquipment:[],//消防设备 -
};
// person:[],
});
// pool:[],
this
.
savePointAndRefreshMarker
(
pointType
,
pointParams
);
// hydrant:[],
}
else
{
// fireChamber:[],
// fireCar:[],
// fire:[],
// fireDetection:[]
// }
// for (let i = 0; i < data.length;i++){
// newMarkers[data[i].type].push(data[i]);
// }
// this.setState( {markers: newMarkers });
// })
this
.
setState
({
treeData
:
data
||
[],
}
pageType
:
'point'
,
}
showRightPanel
:
false
});
});
});
})
}
}
}
}
savePointAndRefreshMarker
=
(
pointType
,
pointParams
)
=>
{
savePointListAction
(
pointParams
).
then
(
data
=>
{
getPointTreeAction
(
pointType
).
then
(
data
=>
{
this
.
getPointList
(
pointType
,
data
);
this
.
setState
({
treeData
:
data
||
[],
pageType
:
'point'
,
showRightPanel
:
false
});
});
});
}
//删除区域
//删除区域
deleteAreaBind
=
()
=>
{
deleteAreaBind
=
()
=>
{
let
{
selectArea
,
treeData
}
=
this
.
state
;
let
{
selectArea
,
treeData
}
=
this
.
state
;
...
...
mods/components/3dviewConvertor/view/moduleEditComponent/PointLeftTree.js
View file @
466f347f
...
@@ -181,7 +181,7 @@ class PointLeftTree extends Component {
...
@@ -181,7 +181,7 @@ class PointLeftTree extends Component {
console
.
log
(
'onSelect'
,
info
);
console
.
log
(
'onSelect'
,
info
);
let
selectItem
=
info
.
node
.
props
.
dataRef
;
let
selectItem
=
info
.
node
.
props
.
dataRef
;
this
.
setState
({
selectedKeys
});
this
.
setState
({
selectedKeys
});
this
.
props
.
selectPointChange
(
selectItem
)
this
.
props
.
selectPointChange
(
selectItem
)
;
}
}
render
()
{
render
()
{
let
{
treeData
,
checkedPointsKeys
,
pointTypeArr
,
pointType
}
=
this
.
state
;
let
{
treeData
,
checkedPointsKeys
,
pointTypeArr
,
pointType
}
=
this
.
state
;
...
...
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