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
bc90be9e
Commit
bc90be9e
authored
Jun 11, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复缺陷773、774
parent
b2396581
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
72 deletions
+66
-72
MaskContent.js
mods/components/3dviewConvertor/view/MaskContent.js
+6
-13
index.js
mods/components/3dviewConvertor/view/searchPane/index.js
+59
-57
paramsHeader.js
...omponents/3dviewConvertor/view/searchPane/paramsHeader.js
+1
-2
No files found.
mods/components/3dviewConvertor/view/MaskContent.js
View file @
bc90be9e
...
@@ -4,7 +4,6 @@ import { Connect } from 'amos-framework';
...
@@ -4,7 +4,6 @@ import { Connect } from 'amos-framework';
import
AmosWebSocket
from
'amos-websocket'
;
import
AmosWebSocket
from
'amos-websocket'
;
import
SysWsURL
,
{
completeToken
}
from
'./../consts/wsUrlConsts'
;
import
SysWsURL
,
{
completeToken
}
from
'./../consts/wsUrlConsts'
;
import
SideControl
from
'./sideControl'
;
import
SideControl
from
'./sideControl'
;
import
DataPane
from
'./datapane'
;
import
globalMsg
from
'./pagefactory/msgFactory'
;
import
globalMsg
from
'./pagefactory/msgFactory'
;
import
{
eventTopics
,
rulesDataFactory
}
from
'./consts'
;
import
{
eventTopics
,
rulesDataFactory
}
from
'./consts'
;
import
LayerPool
from
'./LayerPool'
;
import
LayerPool
from
'./LayerPool'
;
...
@@ -17,7 +16,6 @@ const eventConnect = Connect.eventConnect;
...
@@ -17,7 +16,6 @@ const eventConnect = Connect.eventConnect;
@
eventConnect
@
eventConnect
class
MaskContent
extends
Component
{
class
MaskContent
extends
Component
{
constructor
(
props
)
{
constructor
(
props
)
{
super
(
props
);
super
(
props
);
this
.
state
=
{
this
.
state
=
{
...
@@ -72,7 +70,8 @@ class MaskContent extends Component {
...
@@ -72,7 +70,8 @@ class MaskContent extends Component {
}
}
initViewModel
=
()
=>
{
initViewModel
=
()
=>
{
this
.
setState
({
activeAction
:
'panoramic'
});
//选中全景监控、隐藏检索查询框
this
.
setState
({
activeAction
:
'panoramic'
,
searchPaneVisible
:
false
});
}
}
render
()
{
render
()
{
...
@@ -101,14 +100,6 @@ class MaskContent extends Component {
...
@@ -101,14 +100,6 @@ class MaskContent extends Component {
transitionAppear
:
true
transitionAppear
:
true
}
}
};
};
const
datapaneAnim
=
{
animateName
:
'zoom-comb-right'
,
visible
:
!
planStarted
&&
!
alarmStarted
,
animateProps
:
{
key
:
'animate-datapane'
,
// animate key
transitionAppear
:
true
}
};
const
layerPoolAnimation
=
{
const
layerPoolAnimation
=
{
animateName
:
'fade'
,
animateName
:
'fade'
,
visible
:
alarmStarted
,
visible
:
alarmStarted
,
...
@@ -123,7 +114,7 @@ class MaskContent extends Component {
...
@@ -123,7 +114,7 @@ class MaskContent extends Component {
<
div
className
=
"mask-content"
>
<
div
className
=
"mask-content"
>
<
AmosWebSocket
ref
=
{
node
=>
this
.
aws
=
node
}
url
=
{
wsURL
}
onMessage
=
{
this
.
handleData
}
reconnect
debug
/>
<
AmosWebSocket
ref
=
{
node
=>
this
.
aws
=
node
}
url
=
{
wsURL
}
onMessage
=
{
this
.
handleData
}
reconnect
debug
/>
{
!
alarmStarted
&&
sideControlShow
&&
<
SideControl
multiple
=
{
multiple
}
errorAreaId
=
{
errorAreaId
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/>
}
{
!
alarmStarted
&&
sideControlShow
&&
<
SideControl
multiple
=
{
multiple
}
errorAreaId
=
{
errorAreaId
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/>
}
{
!
alarmStarted
&&
<
SearchPane
visible
=
{
searchPaneVisible
}
focusPosition
=
{
focusPosition
}
changeSearchPaneVisible
=
{()
=>
this
.
changeSearchPaneVisible
}
/>
}
{
!
alarmStarted
&&
isShowActionBar
&&
<
SearchPane
visible
=
{
searchPaneVisible
}
focusPosition
=
{
focusPosition
}
changeSearchPaneVisible
=
{()
=>
this
.
changeSearchPaneVisible
}
/>
}
<
TopMsg
alarmStart
=
{
alarmStart
}
/
>
<
TopMsg
alarmStart
=
{
alarmStart
}
/
>
{
!
alarmStarted
&&
!
isShowActionBar
&&
<
ModelHeader
animationProps
=
{
controlAnimation
}
headerName
=
{
headerName
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
{
!
alarmStarted
&&
!
isShowActionBar
&&
<
ModelHeader
animationProps
=
{
controlAnimation
}
headerName
=
{
headerName
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
{
!
alarmStarted
&&
isShowActionBar
&&
<
ActionBar
activeAction
=
{
activeAction
}
onActionItemClick
=
{(
e
)
=>
this
.
actionBarClick
(
e
)}
animationProps
=
{
controlAnimation
}
/>
}
{
!
alarmStarted
&&
isShowActionBar
&&
<
ActionBar
activeAction
=
{
activeAction
}
onActionItemClick
=
{(
e
)
=>
this
.
actionBarClick
(
e
)}
animationProps
=
{
controlAnimation
}
/>
}
...
@@ -154,7 +145,9 @@ MaskContent.propTypes = {
...
@@ -154,7 +145,9 @@ MaskContent.propTypes = {
headerName
:
PropTypes
.
string
,
headerName
:
PropTypes
.
string
,
setHeaderName
:
PropTypes
.
string
,
setHeaderName
:
PropTypes
.
string
,
handleExceptModel
:
PropTypes
.
func
,
handleExceptModel
:
PropTypes
.
func
,
errorAreaId
:
PropTypes
.
number
errorAreaId
:
PropTypes
.
number
,
editModelChange
:
PropTypes
.
func
,
focusPosition
:
PropTypes
.
func
};
};
MaskContent
.
defaultProps
=
{
MaskContent
.
defaultProps
=
{
...
...
mods/components/3dviewConvertor/view/searchPane/index.js
View file @
bc90be9e
...
@@ -10,11 +10,11 @@ import {
...
@@ -10,11 +10,11 @@ import {
searchAction
,
searchAction
,
msgAction
,
msgAction
,
exeRecordAction
,
exeRecordAction
,
trajectoryAction
,
recordAction
recordAction
}
from
'./../../services/3dService'
;
}
from
'./../../services/3dService'
;
const
{
TabList
,
Tab
,
TabPanel
}
=
Tabs
;
const
{
TabList
,
Tab
,
TabPanel
}
=
Tabs
;
const
MsgType
=
{
protal
:
'巡检'
,
equiment
:
'设备'
,
riskAlert
:
'风险'
};
const
getColumns
=
(
self
,
retrieveType
)
=>
{
const
getColumns
=
(
self
,
retrieveType
)
=>
{
switch
(
retrieveType
)
{
switch
(
retrieveType
)
{
...
@@ -29,23 +29,23 @@ const getColumns = (self,retrieveType) => {
...
@@ -29,23 +29,23 @@ const getColumns = (self,retrieveType) => {
return
[
return
[
{
title
:
'编号'
,
dataIndex
:
'code'
,
key
:
'code'
,
width
:
'16.5%'
},
{
title
:
'编号'
,
dataIndex
:
'code'
,
key
:
'code'
,
width
:
'16.5%'
},
{
title
:
'名称'
,
dataIndex
:
'label'
,
key
:
'label'
,
width
:
'16.5%'
},
{
title
:
'名称'
,
dataIndex
:
'label'
,
key
:
'label'
,
width
:
'16.5%'
},
{
title
:
'路线'
,
dataIndex
:
'routeName'
,
key
:
'
level
'
,
width
:
'16.5%'
},
{
title
:
'路线'
,
dataIndex
:
'routeName'
,
key
:
'
routeName
'
,
width
:
'16.5%'
},
{
title
:
'状态'
,
dataIndex
:
'title'
,
key
:
'
level
'
,
width
:
'16.5%'
},
{
title
:
'状态'
,
dataIndex
:
'title'
,
key
:
'
title
'
,
width
:
'16.5%'
},
{
title
:
'责任人'
,
dataIndex
:
'person'
,
key
:
'
level
'
,
width
:
'16.5%'
},
{
title
:
'责任人'
,
dataIndex
:
'person'
,
key
:
'
person
'
,
width
:
'16.5%'
},
{
title
:
'类别'
,
dataIndex
:
'typeName'
,
key
:
'typeName'
,
width
:
'16.5%'
}
{
title
:
'类别'
,
dataIndex
:
'typeName'
,
key
:
'typeName'
,
width
:
'16.5%'
}
];
];
case
'monitorEquipment'
:
case
'monitorEquipment'
:
return
[
return
[
{
title
:
'编号'
,
dataIndex
:
'code'
,
key
:
'code'
,
width
:
'25%'
},
{
title
:
'编号'
,
dataIndex
:
'code'
,
key
:
'code'
,
width
:
'25%'
},
{
title
:
'名称'
,
dataIndex
:
'label'
,
key
:
'label'
,
width
:
'25%'
},
{
title
:
'名称'
,
dataIndex
:
'label'
,
key
:
'label'
,
width
:
'25%'
},
{
title
:
'监控对象'
,
dataIndex
:
'
level
'
,
key
:
'protectObjName'
,
width
:
'25%'
},
{
title
:
'监控对象'
,
dataIndex
:
'
protectObjName
'
,
key
:
'protectObjName'
,
width
:
'25%'
},
{
title
:
'类别'
,
dataIndex
:
'typeName'
,
key
:
'typeName'
,
width
:
'25%'
}
{
title
:
'类别'
,
dataIndex
:
'typeName'
,
key
:
'typeName'
,
width
:
'25%'
}
];
];
case
'video'
:
case
'video'
:
return
[
return
[
{
title
:
'编号'
,
dataIndex
:
'code'
,
key
:
'code'
,
width
:
'25%'
},
{
title
:
'编号'
,
dataIndex
:
'code'
,
key
:
'code'
,
width
:
'25%'
},
{
title
:
'名称'
,
dataIndex
:
'label'
,
key
:
'label'
,
width
:
'25%'
},
{
title
:
'名称'
,
dataIndex
:
'label'
,
key
:
'label'
,
width
:
'25%'
},
{
title
:
'监控对象'
,
dataIndex
:
'
level
'
,
key
:
'protectObjName'
,
width
:
'25%'
},
{
title
:
'监控对象'
,
dataIndex
:
'
protectObjName
'
,
key
:
'protectObjName'
,
width
:
'25%'
},
{
title
:
'类别'
,
dataIndex
:
'typeName'
,
key
:
'typeName'
,
width
:
'25%'
}
{
title
:
'类别'
,
dataIndex
:
'typeName'
,
key
:
'typeName'
,
width
:
'25%'
}
];
];
default
:
default
:
...
@@ -60,7 +60,7 @@ const getColumns = (self,retrieveType) => {
...
@@ -60,7 +60,7 @@ const getColumns = (self,retrieveType) => {
const
getMsgColumns
=
()
=>
{
const
getMsgColumns
=
()
=>
{
return
[
return
[
{
title
:
'标题'
,
dataIndex
:
'title'
,
key
:
'title'
,
width
:
'15%'
},
{
title
:
'标题'
,
dataIndex
:
'title'
,
key
:
'title'
,
width
:
'15%'
},
{
title
:
'类型'
,
dataIndex
:
'type'
,
key
:
'type'
,
width
:
'15%'
},
{
title
:
'类型'
,
dataIndex
:
'type'
,
key
:
'type'
,
width
:
'15%'
,
render
:
text
=>
MsgType
[
text
]
},
{
title
:
'时间'
,
dataIndex
:
'timeStr'
,
key
:
'timeStr'
,
width
:
'15%'
},
{
title
:
'时间'
,
dataIndex
:
'timeStr'
,
key
:
'timeStr'
,
width
:
'15%'
},
{
title
:
'内容'
,
dataIndex
:
'content'
,
key
:
'content'
,
width
:
'55%'
}
{
title
:
'内容'
,
dataIndex
:
'content'
,
key
:
'content'
,
width
:
'55%'
}
];
];
...
@@ -113,35 +113,6 @@ class SearchPane extends Component {
...
@@ -113,35 +113,6 @@ class SearchPane extends Component {
this
.
fetchRetrieveData
();
this
.
fetchRetrieveData
();
}
}
paramsOnChange
=
(
filter
)
=>
{
const
{
activeKey
}
=
this
.
state
;
if
(
activeKey
===
'search'
){
this
.
setState
({
filter
},
this
.
fetchRetrieveData
);
}
else
if
(
activeKey
===
'message'
){
this
.
setState
({
filter
},
this
.
fetchMsgData
);
}
else
if
(
activeKey
===
'record'
){
this
.
setState
({
filter
},
this
.
fetchRecordData
);
}
else
if
(
activeKey
===
'trajectory'
){
this
.
setState
({
filter
},
this
.
fetchTrajectoryData
);
}
}
/**
* 获取表格刷新方法
*/
reload
=
r
=>
{
this
.
setState
(
{
reload
:
()
=>
{
r
();
this
.
setState
({
selectedRows
:
[],
selectedRowKeys
:
[]
});
}
},
r
()
);
};
onTabClick
=
(
value
)
=>
{
onTabClick
=
(
value
)
=>
{
this
.
pageConfig
.
current
=
0
;
this
.
pageConfig
.
current
=
0
;
if
(
value
===
'search'
){
if
(
value
===
'search'
){
...
@@ -156,9 +127,35 @@ class SearchPane extends Component {
...
@@ -156,9 +127,35 @@ class SearchPane extends Component {
this
.
setState
({
activeKey
:
value
,
filter
:
[]
});
this
.
setState
({
activeKey
:
value
,
filter
:
[]
});
}
}
onRetrieveRowDoubleClick
=
(
record
)
=>
{
// 更新视图数据
let
views
=
new
Array
();
if
(
record
.
position
){
record
.
id
=
record
.
id
.
replace
(
`
${
record
.
type
}
-`
,
''
);
views
.
push
(
record
);
let
args
=
{
target
:
views
,
operateType
:
operateTypes
.
POINT_SEARCH
};
update3DViewData
(
args
);
this
.
props
.
focusPosition
(
this
.
toCameraPosition
(
record
.
position
));
}
else
{
message
.
danger
(
'坐标未绑定!!!'
);
}
}
getPanelHeight
=
()
=>
{
getPanelHeight
=
()
=>
{
return
700
;
return
700
;
};
};
setPageConfig
=
({
pageSize
,
current
})
=>
{
if
(
pageSize
!==
undefined
)
{
this
.
pageConfig
.
pageSize
=
pageSize
;
}
if
(
current
!==
undefined
)
{
this
.
pageConfig
.
current
=
current
-
1
;
}
};
//轨迹
//轨迹
fetchTrajectoryData
=
()
=>
{
fetchTrajectoryData
=
()
=>
{
const
{
filter
}
=
this
.
state
;
const
{
filter
}
=
this
.
state
;
...
@@ -225,29 +222,31 @@ class SearchPane extends Component {
...
@@ -225,29 +222,31 @@ class SearchPane extends Component {
});
});
}
}
setPageConfig
=
({
pageSize
,
current
})
=>
{
/**
if
(
pageSize
!==
undefined
)
{
* 获取表格刷新方法
this
.
pageConfig
.
pageSize
=
pageSize
;
*/
}
reload
=
r
=>
{
if
(
current
!==
undefined
)
{
this
.
setState
(
this
.
pageConfig
.
current
=
current
-
1
;
{
}
reload
:
()
=>
{
r
();
this
.
setState
({
selectedRows
:
[],
selectedRowKeys
:
[]
});
}
},
r
()
);
};
};
onRetrieveRowDoubleClick
=
(
record
)
=>
{
paramsOnChange
=
(
filter
)
=>
{
// 更新视图数据
const
{
activeKey
}
=
this
.
state
;
let
views
=
new
Array
();
if
(
activeKey
===
'search'
){
if
(
record
.
position
){
this
.
setState
({
filter
},
this
.
fetchRetrieveData
);
record
.
id
=
record
.
id
.
replace
(
`
${
record
.
type
}
-`
,
''
);
}
else
if
(
activeKey
===
'message'
){
views
.
push
(
record
);
this
.
setState
({
filter
},
this
.
fetchMsgData
);
let
args
=
{
}
else
if
(
activeKey
===
'record'
){
target
:
views
,
this
.
setState
({
filter
},
this
.
fetchRecordData
);
operateType
:
operateTypes
.
POINT_SEARCH
}
else
if
(
activeKey
===
'trajectory'
){
};
this
.
setState
({
filter
},
this
.
fetchTrajectoryData
);
update3DViewData
(
args
);
this
.
props
.
focusPosition
(
this
.
toCameraPosition
(
record
.
position
));
}
else
{
message
.
danger
(
'坐标未绑定!!!'
);
}
}
}
}
...
@@ -347,6 +346,9 @@ class SearchPane extends Component {
...
@@ -347,6 +346,9 @@ class SearchPane extends Component {
}
}
SearchPane
.
propTypes
=
{
SearchPane
.
propTypes
=
{
focusPosition
:
PropTypes
.
func
,
visible
:
PropTypes
.
bool
,
changeSearchPaneVisible
:
PropTypes
.
func
};
};
export
default
SearchPane
;
export
default
SearchPane
;
mods/components/3dviewConvertor/view/searchPane/paramsHeader.js
View file @
bc90be9e
...
@@ -14,12 +14,11 @@ import { bizControlsTypes, riskSourceLevel } from './../conf';
...
@@ -14,12 +14,11 @@ import { bizControlsTypes, riskSourceLevel } from './../conf';
const
Option
=
Select
.
Option
;
const
Option
=
Select
.
Option
;
const
MsgTypeEnum
=
[{
id
:
'protal'
,
name
:
'巡检'
},
{
id
:
'equiment'
,
name
:
'设备'
},
{
id
:
'risk'
,
name
:
'风险'
}];
const
MsgTypeEnum
=
[{
id
:
'protal'
,
name
:
'巡检'
},
{
id
:
'equiment'
,
name
:
'设备'
},
{
id
:
'risk
Alert
'
,
name
:
'风险'
}];
const
groupStyle
=
{
display
:
'unset'
,
width
:
'100%'
};
const
groupStyle
=
{
display
:
'unset'
,
width
:
'100%'
};
const
selectStyle
=
{
width
:
'25%'
,
minWidth
:
'20%'
,
marginRight
:
'14px'
};
const
selectStyle
=
{
width
:
'25%'
,
minWidth
:
'20%'
,
marginRight
:
'14px'
};
const
inputStyle
=
{
width
:
'30%'
,
minWidth
:
'20%'
,
height
:
'28px'
,
marginRight
:
'14px'
};
const
inputStyle
=
{
width
:
'30%'
,
minWidth
:
'20%'
,
height
:
'28px'
,
marginRight
:
'14px'
};
const
datePickerStyle
=
{
width
:
'30%'
,
minWidth
:
'20%'
,
height
:
'28px'
,
marginRight
:
'14px'
};
const
datePickerStyle
=
{
width
:
'30%'
,
minWidth
:
'20%'
,
height
:
'28px'
,
marginRight
:
'14px'
};
const
enterkey
=
13
;
/**
/**
*
*
* @class paramsHeader
* @class paramsHeader
...
...
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