Commit 82c372f2 authored by 张博's avatar 张博

集成问题

parent db7fc6c2
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
.common-footer { .common-footer {
text-align: center; text-align: center;
background: transparent;//$core-color; background: transparent; //$core-color;
// border: 1px solid $core-border-color; // border: 1px solid $core-border-color;
// border-radius: $core-border-radius; // border-radius: $core-border-radius;
...@@ -45,7 +45,6 @@ ...@@ -45,7 +45,6 @@
} }
.footer-item-text { .footer-item-text {
} }
} }
} }
...@@ -88,7 +87,7 @@ ...@@ -88,7 +87,7 @@
position: relative; position: relative;
// width: $dialog-min-width; // width: $dialog-min-width;
// height: $dialog-height; // height: $dialog-height;
height:497px; height: 497px;
width: 866px !important; width: 866px !important;
min-width: $dialog-min-width; min-width: $dialog-min-width;
//color: black; //color: black;
...@@ -104,7 +103,7 @@ ...@@ -104,7 +103,7 @@
position: relative; position: relative;
height: 2.5rem; height: 2.5rem;
margin-left: 1rem; margin-left: 1rem;
.dialog-min-title{ .dialog-min-title {
position: absolute; position: absolute;
line-height: 2.5rem; line-height: 2.5rem;
padding-top: 1rem; padding-top: 1rem;
...@@ -136,7 +135,6 @@ ...@@ -136,7 +135,6 @@
margin-right: 1rem; margin-right: 1rem;
margin-left: 1rem; margin-left: 1rem;
.ant-table-title { .ant-table-title {
display: none; display: none;
} }
...@@ -147,11 +145,11 @@ ...@@ -147,11 +145,11 @@
// color: $biz-table-font-color; // color: $biz-table-font-color;
// background: $biz-table-title-color;//rgba(40, 40, 40, 1); // background: $biz-table-title-color;//rgba(40, 40, 40, 1);
// border-color: $core-border-color; // border-color: $core-border-color;
color:#fff; color: #fff;
background-color: transparent; background-color: transparent;
} }
}
} }
}
.ant-table-body { .ant-table-body {
tr { tr {
...@@ -159,13 +157,12 @@ ...@@ -159,13 +157,12 @@
// color: $biz-table-font-color;//#ffffff; // color: $biz-table-font-color;//#ffffff;
// background: $content-color;//rgba(51, 51, 51, 1); // background: $content-color;//rgba(51, 51, 51, 1);
// border-color: $core-border-color;//#252525; // border-color: $core-border-color;//#252525;
color:#fff; color: #fff;
background-color: transparent; background-color: transparent;
} }
} }
max-height: 273px !important; max-height: 273px !important;
overflow-y: scroll; overflow-y: scroll;
} }
.ant-table-placeholder { .ant-table-placeholder {
...@@ -179,36 +176,35 @@ ...@@ -179,36 +176,35 @@
background: #ecf6fd; background: #ecf6fd;
} }
} }
} }
.common-footer { .common-footer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
width: 100%; width: 100%;
height: 50px; height: 50px;
color: red; color: red;
border-bottom: none; border-bottom: none;
border-top-right-radius: 0; border-top-right-radius: 0;
border-top-left-radius: 0; border-top-left-radius: 0;
.common-footer-item { .common-footer-item {
border-top: 0; border-top: 0;
}
} }
} }
}
.dialog-body-max { .dialog-body-max {
width: $dialog-max-width; width: $dialog-max-width;
height: $dialog-height; height: $dialog-height;
// min-width: $dialog-max-width; // min-width: $dialog-max-width;
margin-left: 0.5rem; margin-left: 0.5rem;
background: $content-color; background: $content-color;
border: 1px solid $core-border-color; border: 1px solid $core-border-color;
border-radius: 6px; border-radius: 6px;
} }
} }
@media only screen and (min-width: 1500px) { @media only screen and (min-width: 1500px) {
.dialog-body-portal-wrapper { .dialog-body-portal-wrapper {
.dialog-body { .dialog-body {
......
...@@ -38,13 +38,17 @@ ...@@ -38,13 +38,17 @@
#app>div{ #app>div{
height: 100%; height: 100%;
overflow: hidden; overflow: hidden;
>div{ // >div{
height: 100%; // height: 100%;
} // }
} }
.sys-view-3d { .sys-view-3d {
height: 100%; height: 100%;
// scrollbar-width: none; /* firefox */
// -ms-overflow-style: none; /* IE 10+ */
// overflow-x: hidden;
// overflow-y: hidden;
} }
.side-control-pane, .side-control-pane,
......
...@@ -10,6 +10,9 @@ ...@@ -10,6 +10,9 @@
.side-control-pane { .side-control-pane {
color: black; color: black;
text-align: center; text-align: center;
position: absolute;
top: 64px;
left: 10px;
.control-pane-biz { .control-pane-biz {
padding: 1rem 0; padding: 1rem 0;
......
...@@ -79,7 +79,6 @@ ...@@ -79,7 +79,6 @@
border-radius: 0 4px 4px 0; border-radius: 0 4px 4px 0;
} }
.carousel-center-bar { .carousel-center-bar {
position: relative; position: relative;
height: 100%; height: 100%;
...@@ -111,7 +110,7 @@ ...@@ -111,7 +110,7 @@
font-size: 7px; font-size: 7px;
line-height: 40px; line-height: 40px;
//color: $biz-table-font-color;//white; //color: $biz-table-font-color;//white;
color:#fff; color: #fff;
.colTitle { .colTitle {
padding-left: 8px; padding-left: 8px;
...@@ -125,18 +124,16 @@ ...@@ -125,18 +124,16 @@
display: flex; display: flex;
border: 1px solid $core-border-color; border: 1px solid $core-border-color;
border-bottom: 0; border-bottom: 0;
} }
.point-detail-table-row2 { .point-detail-table-row2 {
display: flex; display: flex;
border: 1px solid $core-border-color; border: 1px solid $core-border-color;
} }
.colTitle { .colTitle {
float: left; float: left;
width: 131px;//9.84%; width: 131px; //9.84%;
height: 40px; height: 40px;
background: rgba(25, 86, 147, 1); background: rgba(25, 86, 147, 1);
box-sizing: border-box; box-sizing: border-box;
...@@ -145,7 +142,7 @@ ...@@ -145,7 +142,7 @@
.colValue { .colValue {
float: left; float: left;
width: 131px;//9.83%; width: 131px; //9.83%;
height: 40px; height: 40px;
//background: $content-color;//rgb(97, 96, 96); //background: $content-color;//rgb(97, 96, 96);
background: transparent; background: transparent;
...@@ -153,7 +150,7 @@ ...@@ -153,7 +150,7 @@
//border-left: 1px solid $core-border-color; //border-left: 1px solid $core-border-color;
} }
} }
.point-dialog-modal{ .point-dialog-modal {
::-webkit-scrollbar { ::-webkit-scrollbar {
/* 血槽宽度 */ /* 血槽宽度 */
width: 5px; width: 5px;
...@@ -172,37 +169,37 @@ ...@@ -172,37 +169,37 @@
} }
width: 100%; width: 100%;
height: 100%; height: 100%;
.amos-modal-container{ .amos-modal-container {
background-image: url('../assets/convertor/3dview/toolmodalbg.png'); background-image: url('../assets/convertor/3dview/toolmodalbg.png');
background-repeat: no-repeat; background-repeat: no-repeat;
height:262px; height: 262px;
width: 452px !important; width: 452px !important;
background-color: rgba(255,255,255,0); background-color: rgba(255, 255, 255, 0);
.amos-modal-close{ .amos-modal-close {
color: white; color: white;
background: linear-gradient(180deg, rgba(255, 0, 102, 1) 0%, rgba(255, 0, 102, 1) 0%, rgba(255, 51, 0, 1) 100%, rgba(255, 51, 0, 1) 100%); background: linear-gradient(180deg, rgba(255, 0, 102, 1) 0%, rgba(255, 0, 102, 1) 0%, rgba(255, 51, 0, 1) 100%, rgba(255, 51, 0, 1) 100%);
.amos-modal-close-x{ .amos-modal-close-x {
width: 30px; width: 30px;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
} }
} }
.amos-modal-header{ .amos-modal-header {
background: rgba(255,255,255,0); background: rgba(255, 255, 255, 0);
height: 50px; height: 50px;
padding: 0; padding: 0;
border-width: 0em; border-width: 0em;
.amos-modal-title{ .amos-modal-title {
line-height: 50px; line-height: 50px;
padding-left: 9px; padding-left: 9px;
color: #fff; color: #fff;
font-size: 18px; font-size: 18px;
} }
} }
.amos-modal-content{ .amos-modal-content {
padding: 0; padding: 0;
.point-dialog-body{ .point-dialog-body {
margin:10px; margin: 10px;
max-height: 180px; max-height: 180px;
color: #fff; color: #fff;
.point-dialog-modal-row { .point-dialog-modal-row {
...@@ -229,67 +226,69 @@ ...@@ -229,67 +226,69 @@
} }
} }
} }
} }
} }
.risk-warn-modal{ .risk-warn-modal {
::-webkit-scrollbar { /* 血槽宽度 */ ::-webkit-scrollbar {
/* 血槽宽度 */
width: 14px; width: 14px;
height: 8px; height: 8px;
} }
::-webkit-scrollbar-thumb { /* 拖动条 */ ::-webkit-scrollbar-thumb {
background-image: url('../assets/convertor/3dview/scrollslider.png') ; /* 拖动条 */
background-image: url('../assets/convertor/3dview/scrollslider.png');
background-repeat: no-repeat; background-repeat: no-repeat;
height: 10px; height: 10px;
} }
::-webkit-scrollbar-track { /* 背景槽 */ ::-webkit-scrollbar-track {
background-color:rgba(17, 44, 88, 0.2); /* 背景槽 */
background-color: rgba(17, 44, 88, 0.2);
} }
::-webkit-scrollbar-button{ ::-webkit-scrollbar-button {
background-image: url('../assets/convertor/3dview/scrollbutton.png') ; background-image: url('../assets/convertor/3dview/scrollbutton.png');
background-repeat: no-repeat; background-repeat: no-repeat;
} }
height:100%; height: 100%;
.amos-modal-container{ .amos-modal-container {
background-image: url('../assets/convertor/3dview/modalbg.png'); background-image: url('../assets/convertor/3dview/modalbg.png');
height:497px; height: 497px;
width: 866px !important; width: 866px !important;
background-color: rgba(255,255,255,0); background-color: rgba(255, 255, 255, 0);
.amos-modal-close{ .amos-modal-close {
color: white; color: white;
background: linear-gradient(180deg, rgba(255, 0, 102, 1) 0%, rgba(255, 0, 102, 1) 0%, rgba(255, 51, 0, 1) 100%, rgba(255, 51, 0, 1) 100%); background: linear-gradient(180deg, rgba(255, 0, 102, 1) 0%, rgba(255, 0, 102, 1) 0%, rgba(255, 51, 0, 1) 100%, rgba(255, 51, 0, 1) 100%);
.amos-modal-close-x{ .amos-modal-close-x {
width: 30px; width: 30px;
height: 30px; height: 30px;
line-height: 30px; line-height: 30px;
} }
} }
.amos-modal-header{ .amos-modal-header {
background: rgba(255,255,255,0); background: rgba(255, 255, 255, 0);
height: 50px; height: 50px;
padding: 0; padding: 0;
border-width: 0em; border-width: 0em;
.amos-modal-title{ .amos-modal-title {
line-height: 50px; line-height: 50px;
padding-left: 9px; padding-left: 9px;
color: #fff; color: #fff;
font-size: 18px; font-size: 18px;
} }
} }
.amos-modal-content{ .amos-modal-content {
.risk-warn{ .risk-warn {
.risk-warn-header{ .risk-warn-header {
margin-bottom: 1rem; margin-bottom: 1rem;
color:#fff; color: #fff;
} }
.risk-warn-table{ .risk-warn-table {
background-color: transparent; background-color: transparent;
.ant-table-title{ .ant-table-title {
display: none; display: none;
} }
span{ span {
font-size: 14px; font-size: 14px;
} }
...@@ -302,32 +301,30 @@ ...@@ -302,32 +301,30 @@
.ant-table-thead { .ant-table-thead {
tr { tr {
th { th {
color:#fff; color: #fff;
background-color: rgba(25, 86, 147, 1); background-color: rgba(25, 86, 147, 1);
} }
}
} }
}
.ant-table-body { .ant-table-body {
tr { tr {
td { td {
color:#fff; color: #fff;
background-color: transparent; background-color: transparent;
} }
} }
} }
.ant-table-body{ .ant-table-body {
max-height: 35rem !important; max-height: 35rem !important;
background-color:transparent; background-color: transparent;
} }
} }
.risk-warn-content{ .risk-warn-content {
padding: 15px; padding: 15px;
border: 1px solid rgba(255, 255, 255, 0.3);; border: 1px solid rgba(255, 255, 255, 0.3);
margin-top: 1rem; margin-top: 1rem;
margin-bottom: 2em; margin-bottom: 2em;
span{ span {
color: #fff; color: #fff;
} }
} }
...@@ -336,34 +333,34 @@ ...@@ -336,34 +333,34 @@
} }
} }
.risk-warn-toast{ .risk-warn-toast {
width: 740px; width: 740px;
.amos-toast-inner-content{ .amos-toast-inner-content {
.amos-toast-inner-title{ .amos-toast-inner-title {
width: 100%; width: 100%;
height: 31px; height: 31px;
background: $model-header-color-3d; background: $model-header-color-3d;
line-height: 31px; line-height: 31px;
padding-left: 9px; padding-left: 9px;
} }
.amos-toast-inner-content{ .amos-toast-inner-content {
.risk-warn{ .risk-warn {
.risk-warn-header{ .risk-warn-header {
padding-bottom: 1rem; padding-bottom: 1rem;
padding-top: 0.5rem; padding-top: 0.5rem;
padding-left: 0.5rem; padding-left: 0.5rem;
border: 1px solid $core-border-color; border: 1px solid $core-border-color;
margin-bottom: 1rem; margin-bottom: 1rem;
} }
.risk-warn-table{ .risk-warn-table {
.ant-table-title{ .ant-table-title {
display: none; display: none;
} }
.ant-table-body{ .ant-table-body {
max-height: 35rem !important; max-height: 35rem !important;
} }
} }
.risk-warn-content{ .risk-warn-content {
padding-bottom: 2rem; padding-bottom: 2rem;
border: 1px solid $core-border-color; border: 1px solid $core-border-color;
margin-top: 1rem; margin-top: 1rem;
...@@ -371,24 +368,23 @@ ...@@ -371,24 +368,23 @@
} }
} }
} }
.amos-toast-inner-close{ .amos-toast-inner-close {
color: white; color: white;
top: 22px; top: 22px;
i{ i {
padding: 9px; padding: 9px;
background: red; background: red;
} }
} }
} }
.amos-toast{ .amos-toast {
.amos-toast-inner{ .amos-toast-inner {
background: #5a94f5; background: #5a94f5;
opacity: 0.78; opacity: 0.78;
color: white; color: white;
.amos-toast-inner-title{ .amos-toast-inner-title {
color: white; color: white;
} }
} }
} }
...@@ -92,12 +92,17 @@ class ConvertorView3DRoot extends Basic { ...@@ -92,12 +92,17 @@ class ConvertorView3DRoot extends Basic {
render() { render() {
const { isEdit } = this.state; const { isEdit } = this.state;
const { visualParams = '',dataConfig = { view3dFile: false } } = this.props;
console.log('1111111');
console.log(dataConfig);
return ( return (
<div style={{ height: '100%' }}> <div style={{ height: '100%' }}>
{ isEdit ? '' : <Statistical /> } { isEdit ? '' : <Statistical /> }
<div className="sys-view-3d"> <div className="sys-view-3d">
<View3D <View3D
ref={node => this.view3d = node} ref={node => this.view3d = node}
visualParams={visualParams}
dataConfig={dataConfig}
onLoadCompleted={this.onLoadCompleted} onLoadCompleted={this.onLoadCompleted}
hiddenScreenSaver={this.hiddenScreenSaver} hiddenScreenSaver={this.hiddenScreenSaver}
editModelChange={this.editModelChange} editModelChange={this.editModelChange}
......
...@@ -113,7 +113,7 @@ class MaskContent extends Component { ...@@ -113,7 +113,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 />
{ !alarmStarted && sideControlShow && <SideControl multiple={multiple} errorAreaId={errorAreaId} onItemClick={onItemClick} layerConfig={layerConfig} animationProps={controlAnimation} activeAction={activeAction}/>} { !alarmStarted && sideControlShow && <SideControl multiple={multiple} errorAreaId={errorAreaId} onItemClick={onItemClick} layerConfig={layerConfig} animationProps={controlAnimation} activeAction={activeAction} />}
{ !alarmStarted && isShowActionBar && <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} />}
......
...@@ -146,13 +146,16 @@ class View3D extends Component { ...@@ -146,13 +146,16 @@ class View3D extends Component {
}, },
isOutterView: true //控制进入层级后是否显示marker isOutterView: true //控制进入层级后是否显示marker
}; };
if (props.dataConfig.view3dFile){
getObjFromNet(view3dFile, (objs, asyncModels) => { return;
this.setState({ } else {
objs, getObjFromNet(view3dFile, (objs, asyncModels) => {
asyncModels this.setState({
objs,
asyncModels
});
}); });
}); }
this.lensLevel = LENS_LEVEL.ROOT; this.lensLevel = LENS_LEVEL.ROOT;
// this.markerList = {}; // this.markerList = {};
this.drowItem = ''; this.drowItem = '';
...@@ -1724,9 +1727,17 @@ class View3D extends Component { ...@@ -1724,9 +1727,17 @@ class View3D extends Component {
pointType, pointType,
isOutterView isOutterView
} = this.state; } = this.state;
const { dimension, hiddenScreenSaver, editModelChange } = this.props; const { dimension, hiddenScreenSaver, editModelChange , visualParams } = this.props;
var mension = {};
if (visualParams && visualParams.width && visualParams.height){
mension = { width: visualParams.width,height: visualParams.height };
console.log(mension);
} else {
mension = dimension;
console.log(`-------${mension}`);
}
const graphicProps = { const graphicProps = {
...dimension, ...mension,
...desigerConf, ...desigerConf,
enableAnimator: true, enableAnimator: true,
enableOutline: true, enableOutline: true,
......
...@@ -27,7 +27,7 @@ class ActionBar extends Component { ...@@ -27,7 +27,7 @@ class ActionBar extends Component {
render() { render() {
const { animationProps, activeAction = 'panoramic' } = this.props; const { animationProps, activeAction = 'panoramic' } = this.props;
return ( return (
<SidePane className="action-pane-data" left={false} top={false} {...animationProps}> <div className="action-pane-data" {...animationProps}>
<div className="action-list"> <div className="action-list">
{ {
actionBars.map( a => { actionBars.map( a => {
...@@ -48,7 +48,7 @@ class ActionBar extends Component { ...@@ -48,7 +48,7 @@ class ActionBar extends Component {
}) })
} }
</div> </div>
</SidePane> </div>
); );
} }
} }
......
...@@ -273,7 +273,7 @@ class SearchPane extends Component { ...@@ -273,7 +273,7 @@ class SearchPane extends Component {
return ( return (
<div> <div>
{ this.props.visible && <div className="search-pane-bg" /> } { this.props.visible && <div className="search-pane-bg" /> }
{ this.props.visible && <SidePane className="search-pane"> { this.props.visible && <div className="search-pane">
<div className="search-pane-close" onClick={()=>this.closeModal()}> <div className="search-pane-close" onClick={()=>this.closeModal()}>
<Icon icon="close" /> <Icon icon="close" />
</div> </div>
...@@ -342,7 +342,7 @@ class SearchPane extends Component { ...@@ -342,7 +342,7 @@ class SearchPane extends Component {
/> />
</TabPanel> </TabPanel>
</Tabs> </Tabs>
</SidePane>} </div>}
</div> </div>
); );
} }
......
...@@ -66,10 +66,10 @@ class SideControl extends Component { ...@@ -66,10 +66,10 @@ class SideControl extends Component {
}); });
} }
return ( return (
<SidePane className="side-control-pane" {...animationProps}> <div className="side-control-pane" {...animationProps}>
<BizControlPane controls={_bizControls} isActive={this.isActive} onItemClick={this.onBizItemClick} /> <BizControlPane controls={_bizControls} isActive={this.isActive} onItemClick={this.onBizItemClick} />
{/* <InnateControlPane controls={viewController} layerConfig={layerConfig} /> */} {/* <InnateControlPane controls={viewController} layerConfig={layerConfig} /> */}
</SidePane> </div>
); );
} }
} }
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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