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
9a6170aa
Commit
9a6170aa
authored
May 25, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改进入故障模式字段
parent
6862f8b6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
77 additions
and
109 deletions
+77
-109
urlConsts.js
mods/components/3dviewConvertor/consts/urlConsts.js
+1
-1
3dService.js
mods/components/3dviewConvertor/services/3dService.js
+2
-2
ConvertorView3DRoot.js
mods/components/3dviewConvertor/view/ConvertorView3DRoot.js
+0
-1
MaskContent.js
mods/components/3dviewConvertor/view/MaskContent.js
+5
-3
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+64
-98
ExceptionArea.js
...nents/3dviewConvertor/view/exceptionArea/ExceptionArea.js
+1
-2
index.js
mods/components/3dviewConvertor/view/sideControl/index.js
+4
-2
No files found.
mods/components/3dviewConvertor/consts/urlConsts.js
View file @
9a6170aa
...
@@ -18,7 +18,7 @@ export const FscSerUrl = {
...
@@ -18,7 +18,7 @@ export const FscSerUrl = {
//*******************************************************************************
//*******************************************************************************
// 3D视图
// 3D视图
//*******************************************************************************
//*******************************************************************************
view3dInitUrl
:
completePrefix
(
view3dURI
,
'api/view3d/init3dViewNode?type={type}'
),
// 初始化三维视图 get
view3dInitUrl
:
completePrefix
(
view3dURI
,
'api/view3d/init3dViewNode?type={type}
&riskSourceId={riskSourceId}
'
),
// 初始化三维视图 get
view3dInitLinkUrl
:
completePrefix
(
view3dURI
,
'view3d/initViewLink'
),
// 初始化三维视图 获取link get
view3dInitLinkUrl
:
completePrefix
(
view3dURI
,
'view3d/initViewLink'
),
// 初始化三维视图 获取link get
searchRegionListUrl
:
completePrefix
(
patrolURI
,
'api/group/queryDept'
),
//右侧菜单-检索-区域集合
searchRegionListUrl
:
completePrefix
(
patrolURI
,
'api/group/queryDept'
),
//右侧菜单-检索-区域集合
searchViewUrl
:
completePrefix
(
view3dURI
,
'api/view3d/retrieve/all?inputText={inputText}&dataLevel={dataLevel}&orgCode={orgCode}&nodeState={nodeState}&type={type}¤t={page}&pageSize={pageSize}&routeName={routeName}&protectObjName={protectObjName}'
),
// 右侧菜单-检索
searchViewUrl
:
completePrefix
(
view3dURI
,
'api/view3d/retrieve/all?inputText={inputText}&dataLevel={dataLevel}&orgCode={orgCode}&nodeState={nodeState}&type={type}¤t={page}&pageSize={pageSize}&routeName={routeName}&protectObjName={protectObjName}'
),
// 右侧菜单-检索
...
...
mods/components/3dviewConvertor/services/3dService.js
View file @
9a6170aa
...
@@ -25,8 +25,8 @@ export const getObjFromNet = (url, callback) => {
...
@@ -25,8 +25,8 @@ export const getObjFromNet = (url, callback) => {
* 获取各个类型的marker
* 获取各个类型的marker
* @param {string} type
* @param {string} type
*/
*/
export
const
initView3DAction
=
(
type
)
=>
{
export
const
initView3DAction
=
(
type
,
riskSourceId
)
=>
{
const
url
=
formatUrl
(
FscSerUrl
.
view3dInitUrl
,
{
type
});
const
url
=
formatUrl
(
FscSerUrl
.
view3dInitUrl
,
{
type
,
riskSourceId
});
return
commonGet
(
url
);
return
commonGet
(
url
);
};
};
...
...
mods/components/3dviewConvertor/view/ConvertorView3DRoot.js
View file @
9a6170aa
...
@@ -107,7 +107,6 @@ class ConvertorView3DRoot extends Basic {
...
@@ -107,7 +107,6 @@ class ConvertorView3DRoot extends Basic {
render
()
{
render
()
{
const
{
isEdit
}
=
this
.
state
;
const
{
isEdit
}
=
this
.
state
;
debugger
const
wsURL
=
completeToken
(
SysWsURL
.
convertorView3dws
);
const
wsURL
=
completeToken
(
SysWsURL
.
convertorView3dws
);
return
(
return
(
<
div
>
<
div
>
...
...
mods/components/3dviewConvertor/view/MaskContent.js
View file @
9a6170aa
...
@@ -76,7 +76,8 @@ class MaskContent extends Component {
...
@@ -76,7 +76,8 @@ class MaskContent extends Component {
planQuit
,
planQuit
,
sideControlShow
,
sideControlShow
,
isShowActionBar
,
isShowActionBar
,
headerName
headerName
,
errorAreaId
}
=
this
.
props
;
}
=
this
.
props
;
const
wsURL
=
completeToken
(
SysWsURL
.
convertorRulews
);
const
wsURL
=
completeToken
(
SysWsURL
.
convertorRulews
);
const
controlAnimation
=
{
const
controlAnimation
=
{
...
@@ -108,7 +109,7 @@ class MaskContent extends Component {
...
@@ -108,7 +109,7 @@ class MaskContent extends Component {
return
(
return
(
<
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
/>
{
sideControlShow
&&
<
SideControl
multiple
=
{
multiple
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/>
}
{
sideControlShow
&&
<
SideControl
multiple
=
{
multiple
}
errorAreaId
=
{
errorAreaId
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/>
}
{
sideControlShow
&&
<
DataPane
animationProps
=
{
datapaneAnim
}
/>
}
{
sideControlShow
&&
<
DataPane
animationProps
=
{
datapaneAnim
}
/>
}
<
TopMsg
alarmStart
=
{
alarmStart
}
/
>
<
TopMsg
alarmStart
=
{
alarmStart
}
/
>
{
!
isShowActionBar
&&
<
ModelHeader
headerName
=
{
headerName
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
{
!
isShowActionBar
&&
<
ModelHeader
headerName
=
{
headerName
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
...
@@ -139,7 +140,8 @@ MaskContent.propTypes = {
...
@@ -139,7 +140,8 @@ MaskContent.propTypes = {
isShowActionBar
:
PropTypes
.
bool
,
isShowActionBar
:
PropTypes
.
bool
,
headerName
:
PropTypes
.
string
,
headerName
:
PropTypes
.
string
,
setHeaderName
:
PropTypes
.
string
,
setHeaderName
:
PropTypes
.
string
,
handleExceptModel
:
PropTypes
.
func
handleExceptModel
:
PropTypes
.
func
,
errorAreaId
:
PropTypes
.
number
};
};
MaskContent
.
defaultProps
=
{
MaskContent
.
defaultProps
=
{
...
...
mods/components/3dviewConvertor/view/View3D.js
View file @
9a6170aa
This diff is collapsed.
Click to expand it.
mods/components/3dviewConvertor/view/exceptionArea/ExceptionArea.js
View file @
9a6170aa
...
@@ -46,8 +46,7 @@ class ExceptionArea extends Component {
...
@@ -46,8 +46,7 @@ class ExceptionArea extends Component {
onMarkerClick
=
(
marker
)
=>
{
onMarkerClick
=
(
marker
)
=>
{
const
{
extData
}
=
marker
;
const
{
extData
}
=
marker
;
lsTool
.
write
(
'errorAreaId'
,
extData
.
id
);
this
.
props
.
handleExceptModel
&&
this
.
props
.
handleExceptModel
(
'into_except_model'
,
extData
.
id
);
this
.
props
.
handleExceptModel
&&
this
.
props
.
handleExceptModel
(
'into_except_model'
);
}
}
setTopCardConf
=
(
obj
,{
safetyIndex
})
=>
{
setTopCardConf
=
(
obj
,{
safetyIndex
})
=>
{
...
...
mods/components/3dviewConvertor/view/sideControl/index.js
View file @
9a6170aa
...
@@ -27,12 +27,13 @@ class SideControl extends Component {
...
@@ -27,12 +27,13 @@ class SideControl extends Component {
* control 点击,第二次点击则取消
* control 点击,第二次点击则取消
*/
*/
onBizItemClick
=
(
item
,
e
)
=>
{
onBizItemClick
=
(
item
,
e
)
=>
{
const
{
errorAreaId
:
riskSourceId
}
=
this
.
props
;
const
alreadyActive
=
this
.
isActive
(
item
.
key
);
const
alreadyActive
=
this
.
isActive
(
item
.
key
);
const
newKeys
=
this
.
getActiveControl
(
item
.
key
,
alreadyActive
);
const
newKeys
=
this
.
getActiveControl
(
item
.
key
,
alreadyActive
);
this
.
setState
({
this
.
setState
({
activeControl
:
newKeys
activeControl
:
newKeys
});
});
this
.
props
.
onItemClick
&&
this
.
props
.
onItemClick
(
item
,
alreadyActive
);
this
.
props
.
onItemClick
&&
this
.
props
.
onItemClick
(
{
...
item
,
riskSourceId
}
,
alreadyActive
);
};
};
getActiveControl
=
(
key
,
alreadyActive
)
=>
{
getActiveControl
=
(
key
,
alreadyActive
)
=>
{
...
@@ -80,7 +81,8 @@ SideControl.propTypes = {
...
@@ -80,7 +81,8 @@ SideControl.propTypes = {
onItemClick
:
PropTypes
.
func
,
onItemClick
:
PropTypes
.
func
,
write
:
PropTypes
.
func
,
write
:
PropTypes
.
func
,
toStr
:
PropTypes
.
func
,
toStr
:
PropTypes
.
func
,
animationProps
:
PropTypes
.
object
animationProps
:
PropTypes
.
object
,
errorAreaId
:
PropTypes
.
number
};
};
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