Commit 63c56696 authored by suhuiguang's avatar suhuiguang

1.增加全景监控,可配置显示ue4还是3d

parent 477758a7
...@@ -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
}, },
//三维模型配置 //三维模型配置
......
...@@ -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,
......
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
...@@ -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;
......
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment