Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-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-convertor-view
Commits
63c56696
Commit
63c56696
authored
Apr 24, 2020
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.增加全景监控,可配置显示ue4还是3d
parent
477758a7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
8 deletions
+62
-8
amos.config.js
amos.config.js
+8
-6
view.js
src/routes/view.js
+2
-1
index.js
src/view/panoramicMonitor/index.js
+19
-0
index.js
src/view/region/index.js
+0
-1
index.js
src/view/ue4/index.js
+33
-0
No files found.
amos.config.js
View file @
63c56696
...
@@ -18,7 +18,9 @@
...
@@ -18,7 +18,9 @@
// plugin uri
// plugin uri
pluginURI
:
'http://172.16.3.70:8989/'
,
pluginURI
:
'http://172.16.3.70:8989/'
,
// webstudio uri
// webstudio uri
studioURI
:
'http://172.16.3.89:8099/'
studioURI
:
'http://172.16.3.89:8099/'
,
//数据绑定
dataBindUrl
:
'http://172.16.3.63:8083/api/visual/common/dataBind'
},
},
// websocket 地址
// websocket 地址
wsURI
:
{
wsURI
:
{
...
@@ -31,19 +33,19 @@
...
@@ -31,19 +33,19 @@
},
},
// 外部链接地址
// 外部链接地址
outterURI
:
{
outterURI
:
{
xunjian
:
'http://172.16.10.91:3001/outter?isSub=true&user={userId}&token={token}&orgCode={orgCode}'
,
xunjian
:
'http://172.16.10.91:3001/outter?isSub=true&user={userId}&token={token}&orgCode={orgCode}'
,
// 管控模型
// 管控模型
mgtCtrlModel
:
'http://172.16.10.91:8080'
,
mgtCtrlModel
:
'http://172.16.10.91:8080'
,
prePlan
:
'http://172.16.10.91:3004'
prePlan
:
'http://172.16.10.91:3004'
,
ue4URI
:
'http://172.16.3.69:8089?token={token}'
},
},
// 系统配置信息 主要是为了区分各子系统
// 系统配置信息 主要是为了区分各子系统
sysConf
:
{
sysConf
:
{
needHeartBeat
:
true
,
needHeartBeat
:
true
,
//是否自动打开业务屏,true是,false否
//是否自动打开业务屏,true是,false否
isAutoOpenBussiness
:
true
,
isAutoOpenBussiness
:
true
,
//是否全景监控显示ue4
is3dUe4
:
false
},
},
//三维模型配置
//三维模型配置
...
...
src/routes/view.js
View file @
63c56696
...
@@ -53,6 +53,7 @@ import alarmTestView from './../view/bizview/alarm';
...
@@ -53,6 +53,7 @@ import alarmTestView from './../view/bizview/alarm';
import
CusVizLib
from
'./../view/planMgmt/cusVizLib'
;
import
CusVizLib
from
'./../view/planMgmt/cusVizLib'
;
import
RealTimeMonitor
from
'./../view/morphic'
;
import
RealTimeMonitor
from
'./../view/morphic'
;
import
PublishView
from
'./../view/planMgmt/view'
;
import
PublishView
from
'./../view/planMgmt/view'
;
import
PanoramicMonitor
from
'./../view/panoramicMonitor'
;
const
Routes
=
{
const
Routes
=
{
// 添加 rules 路由
// 添加 rules 路由
...
@@ -66,7 +67,7 @@ const Routes = {
...
@@ -66,7 +67,7 @@ const Routes = {
// config: Config,
// config: Config,
config
:
SubConsoleView
,
config
:
SubConsoleView
,
'3dview'
:
Three3dView
,
'3dview'
:
PanoramicMonitor
,
bizview
:
BusinessView
,
bizview
:
BusinessView
,
riskpoint
:
RiskPoint
,
riskpoint
:
RiskPoint
,
dutyinfo
:
Dutyinfo
,
dutyinfo
:
Dutyinfo
,
...
...
src/view/panoramicMonitor/index.js
0 → 100644
View file @
63c56696
import
React
,
{
Component
}
from
'react'
;
import
*
as
endConf
from
'amos-processor/lib/config/endconf'
;
import
Three3dView
from
'./../3dview'
;
import
Ue4RootView
from
'./../ue4'
;
const
AmosConfig
=
endConf
.
AmosConfig
;
const
{
is3dUe4
=
false
}
=
AmosConfig
.
sysConf
;
/**
* 全景监控
*/
export
default
class
PanoramicMonitor
extends
Component
{
render
()
{
return
(
is3dUe4
?
<
Ue4RootView
/>
:
<
Three3dView
/>
);
}
}
\ No newline at end of file
src/view/region/index.js
View file @
63c56696
...
@@ -175,7 +175,6 @@ class RegionSelect extends Component {
...
@@ -175,7 +175,6 @@ class RegionSelect extends Component {
}
}
getCurrentUser
=
()
=>
{
getCurrentUser
=
()
=>
{
debugger
getCurrentUser
().
then
(
data
=>
{
getCurrentUser
().
then
(
data
=>
{
const
{
reginParams
}
=
this
.
state
;
const
{
reginParams
}
=
this
.
state
;
const
{
companys
=
[],
companyDepartments
=
{},
orgRoles
=
{}
}
=
data
;
const
{
companys
=
[],
companyDepartments
=
{},
orgRoles
=
{}
}
=
data
;
...
...
src/view/ue4/index.js
0 → 100644
View file @
63c56696
import
React
,
{
Component
}
from
'react'
;
import
{
IFrame
}
from
'amos-framework'
;
import
{
Store
}
from
'amos-tool'
;
import
SysConsts
from
'amos-processor/lib/config/consts'
;
import
formatUrl
from
'amos-processor/lib/utils/urlFormat'
;
import
{
getOutterURL
}
from
'../../consts/urlConsts'
;
const
lsTool
=
Store
.
lsTool
;
/**
* ue4-全景监控
*/
export
default
class
Ue4RootView
extends
Component
{
render
()
{
let
url
=
getOutterURL
(
'ue4URI'
);
const
token
=
lsTool
.
read
(
SysConsts
.
token
);
url
=
formatUrl
(
url
,
{
token
});
return
(
<
IFrame
url
=
{
url
}
width
=
'100%'
id
=
"iframe-ue4-view-root"
style
=
{{
height
:
'calc(100% - 40px)'
,
marginTop
:
'40px'
}}
display
=
"initial"
position
=
"relative"
allowFullScreen
scrolling
=
"auto"
/>
);
}
}
\ No newline at end of file
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