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
1eccb877
Commit
1eccb877
authored
May 27, 2020
by
taabe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改预案交互区样式
parent
bf0991b4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
33 additions
and
33 deletions
+33
-33
urlConsts.js
mods/components/3dviewConvertor/consts/urlConsts.js
+0
-0
index.scss
mods/components/3dviewConvertor/styles/index.scss
+1
-5
preControl.scss
mods/components/3dviewConvertor/styles/preControl.scss
+13
-12
LayerPool.js
mods/components/3dviewConvertor/view/LayerPool.js
+1
-1
MaskContent.js
mods/components/3dviewConvertor/view/MaskContent.js
+6
-5
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+10
-8
ModelHeader.js
mods/components/3dviewConvertor/view/common/ModelHeader.js
+2
-2
No files found.
mods/components/3dviewConvertor/consts/urlConsts.js
View file @
1eccb877
This diff is collapsed.
Click to expand it.
mods/components/3dviewConvertor/styles/index.scss
View file @
1eccb877
...
@@ -13,13 +13,11 @@
...
@@ -13,13 +13,11 @@
@import
'./actionbar.scss'
;
@import
'./actionbar.scss'
;
@import
'./moduleEdit.scss'
;
@import
'./moduleEdit.scss'
;
@import
'./searchpane.scss'
;
@import
'./searchpane.scss'
;
@import
'./reservePlan.scss'
;
@import
'./../assets/bizFont/iconfont.css'
;
@import
'./../assets/bizFont/iconfont.css'
;
@import
'./../assets/amosFont/iconfont.css'
;
@import
'./../assets/amosFont/iconfont.css'
;
.obj-loading-coms
{
.obj-loading-coms
{
position
:
absolute
;
position
:
absolute
;
top
:
50%
;
top
:
50%
;
...
@@ -133,5 +131,3 @@
...
@@ -133,5 +131,3 @@
border-image-slice
:
50
50
50
50
;
border-image-slice
:
50
50
50
50
;
border-image-repeat
:
stretch
;
border-image-repeat
:
stretch
;
}
}
mods/components/3dviewConvertor/styles/preControl.scss
View file @
1eccb877
...
@@ -365,53 +365,54 @@
...
@@ -365,53 +365,54 @@
}
}
}
}
.reserve-plan-root
{
.reserve-plan-root
{
height
:
80px
;
height
:
80px
;
.operate-button-root
+
.operate-button-root
{
.operate-button-root
+
.operate-button-root
{
padding-left
:
35px
;
padding-left
:
35px
;
margin-left
:
20px
;
margin-left
:
20px
;
}
}
%operate-button-root-common
{
%operate-button-root-common
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
width
:
250px
;
width
:
250px
;
}
}
.operate-button-display-root
{
.operate-button-display-root
{
justify-content
:
center
;
justify-content
:
center
;
}
}
.operate-button-root
{
.operate-button-root
{
width
:
250px
;
width
:
250px
;
justify-content
:
center
;
justify-content
:
center
;
.operate-button-left
{
.operate-button-left
{
img
{
img
{
// width: 20px !important;
// width: 20px !important;
// height: 20px !important
// height: 20px !important
}
}
.operate-button-content
{
.operate-button-content
{
margin-left
:
5px
;
margin-left
:
5px
;
font-weight
:
500
;
font-weight
:
500
;
line-height
:
15px
;
line-height
:
15px
;
width
:
170px
;
width
:
170px
;
.button-name
{
.button-name
{
font-size
:
14px
!
important
font-size
:
14px
!
important
}
}
.button-desc
{
.button-desc
{
font-size
:
8px
!
important
font-size
:
8px
!
important
}
}
}
}
}
}
.operate-button-right
{
.operate-button-right
{
width
:
77px
;
width
:
77px
;
.operate-button-button
{
.operate-button-button
{
margin-left
:
10px
;
margin-left
:
10px
;
width
:
70px
;
width
:
70px
;
height
:
31px
;
height
:
31px
;
...
@@ -434,7 +435,7 @@
...
@@ -434,7 +435,7 @@
.quit-btn
{
.quit-btn
{
margin-top
:
10px
;
margin-top
:
10px
;
img
{
img
{
width
:
17px
width
:
17px
}
}
}
}
...
...
mods/components/3dviewConvertor/view/LayerPool.js
View file @
1eccb877
...
@@ -98,7 +98,7 @@ class LayerPool extends Component {
...
@@ -98,7 +98,7 @@ class LayerPool extends Component {
let
wsURL
=
AmosConfig
.
wsURI
.
securityBaseURI
+
'plan'
;
let
wsURL
=
AmosConfig
.
wsURI
.
securityBaseURI
+
'plan'
;
return
(
return
(
<
div
className
=
"layer-pool"
>
<
div
className
=
"layer-pool"
>
<
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
/>
<
SidePane
<
SidePane
className
=
{
displayDetail
?
'precontrol-sidePlan-detail-display'
:
'precontrol-sidePlan-detail'
}
className
=
{
displayDetail
?
'precontrol-sidePlan-detail-display'
:
'precontrol-sidePlan-detail'
}
left
=
{
false
}
left
=
{
false
}
...
...
mods/components/3dviewConvertor/view/MaskContent.js
View file @
1eccb877
...
@@ -51,7 +51,7 @@ class MaskContent extends Component {
...
@@ -51,7 +51,7 @@ class MaskContent extends Component {
};
};
actionBarClick
=
({
singleClick
,
type
,
label
,
showLabel
})
=>
{
actionBarClick
=
({
singleClick
,
type
,
label
,
showLabel
})
=>
{
if
(
!
singleClick
){
//设置选中状态
if
(
!
singleClick
){
//设置选中状态
this
.
setState
({
activeAction
:
type
});
this
.
setState
({
activeAction
:
type
});
}
}
...
@@ -91,6 +91,7 @@ class MaskContent extends Component {
...
@@ -91,6 +91,7 @@ class MaskContent extends Component {
headerName
,
headerName
,
errorAreaId
errorAreaId
}
=
this
.
props
;
}
=
this
.
props
;
alarmStarted
&&
this
.
props
.
editModelChange
(
true
);
const
wsURL
=
completeToken
(
SysWsURL
.
rulews
);
const
wsURL
=
completeToken
(
SysWsURL
.
rulews
);
const
controlAnimation
=
{
const
controlAnimation
=
{
animateName
:
'zoom-comb-left'
,
animateName
:
'zoom-comb-left'
,
...
@@ -121,12 +122,12 @@ class MaskContent extends Component {
...
@@ -121,12 +122,12 @@ 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
}
errorAreaId
=
{
errorAreaId
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/>
}
{
!
alarmStarted
&&
sideControlShow
&&
<
SideControl
multiple
=
{
multiple
}
errorAreaId
=
{
errorAreaId
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/>
}
{
sideControlShow
&&
<
DataPane
animationProps
=
{
datapaneAnim
}
/>
}
{
!
alarmStarted
&&
sideControlShow
&&
<
DataPane
animationProps
=
{
datapaneAnim
}
/>
}
<
SearchPane
visible
=
{
searchPaneVisible
}
changeSearchPaneVisible
=
{()
=>
this
.
changeSearchPaneVisible
}
/
>
<
SearchPane
visible
=
{
searchPaneVisible
}
changeSearchPaneVisible
=
{()
=>
this
.
changeSearchPaneVisible
}
/
>
<
TopMsg
alarmStart
=
{
alarmStart
}
/
>
<
TopMsg
alarmStart
=
{
alarmStart
}
/
>
{
!
isShowActionBar
&&
<
ModelHeader
headerName
=
{
headerName
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
{
!
alarmStarted
&&
!
isShowActionBar
&&
<
ModelHeader
animationProps
=
{
controlAnimation
}
headerName
=
{
headerName
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
{
isShowActionBar
&&
<
ActionBar
activeAction
=
{
activeAction
}
onActionItemClick
=
{(
e
)
=>
this
.
actionBarClick
(
e
)}
animationProps
=
{
controlAnimation
}
/>
}
{
!
alarmStarted
&&
isShowActionBar
&&
<
ActionBar
activeAction
=
{
activeAction
}
onActionItemClick
=
{(
e
)
=>
this
.
actionBarClick
(
e
)}
animationProps
=
{
controlAnimation
}
/>
}
{
alarmStarted
&&
<
LayerPool
animationProps
=
{
layerPoolAnimation
}
planStart
=
{
planStart
}
planQuit
=
{
planQuit
}
planStarted
=
{
planStarted
}
/>
}
{
alarmStarted
&&
<
LayerPool
animationProps
=
{
layerPoolAnimation
}
planStart
=
{
planStart
}
planQuit
=
{
planQuit
}
planStarted
=
{
planStarted
}
/>
}
<
/div
>
<
/div
>
);
);
...
...
mods/components/3dviewConvertor/view/View3D.js
View file @
1eccb877
...
@@ -200,6 +200,7 @@ class View3D extends Component {
...
@@ -200,6 +200,7 @@ class View3D extends Component {
tirggerTransTopic
(
CONSTS
.
forward
,
{
details
:
{
type
:
'prePlan'
,
show
:
false
},
dateTime
:
Date
.
now
()
});
tirggerTransTopic
(
CONSTS
.
forward
,
{
details
:
{
type
:
'prePlan'
,
show
:
false
},
dateTime
:
Date
.
now
()
});
removeFireAlarm2
(
this
);
removeFireAlarm2
(
this
);
this
.
cameraFactory
.
fitView
(
desigerHelperConfig
.
cameraEffect
);
this
.
cameraFactory
.
fitView
(
desigerHelperConfig
.
cameraEffect
);
this
.
quitEditMode
();
};
};
alarmStart
=
()
=>
{
alarmStart
=
()
=>
{
...
@@ -1203,13 +1204,13 @@ class View3D extends Component {
...
@@ -1203,13 +1204,13 @@ class View3D extends Component {
const
{
markers
}
=
this
.
state
;
const
{
markers
}
=
this
.
state
;
pointModelistAction
(
actionType
).
then
(
d
=>
{
pointModelistAction
(
actionType
).
then
(
d
=>
{
// if (markerType === 'fireResource') {
// if (markerType === 'fireResource') {
markers
[
'impEquipmentMode'
]
=
d
.
filter
(
item
=>
item
.
position
!
=
null
);
markers
[
'impEquipmentMode'
]
=
d
.
dataList
.
filter
(
item
=>
item
.
position
!=
=
null
);
// markers[markerType] = d;
// markers[markerType] = d;
this
.
setState
({
this
.
setState
({
markers
,
markers
,
markerType
:
"impEquipmentMode"
markerType
:
"impEquipmentMode"
});
});
return
;
return
;
});
});
}
}
...
@@ -1305,7 +1306,7 @@ class View3D extends Component {
...
@@ -1305,7 +1306,7 @@ class View3D extends Component {
headerName
,
headerName
,
errorAreaId
errorAreaId
}
=
this
.
state
;
}
=
this
.
state
;
const
{
dimension
,
hiddenScreenSaver
}
=
this
.
props
;
const
{
dimension
,
hiddenScreenSaver
,
editModelChange
}
=
this
.
props
;
const
graphicProps
=
{
const
graphicProps
=
{
...
dimension
,
...
dimension
,
...
desigerConf
,
...
desigerConf
,
...
@@ -1373,6 +1374,7 @@ class View3D extends Component {
...
@@ -1373,6 +1374,7 @@ class View3D extends Component {
onActionItemClick
=
{
this
.
onActionItemClick
}
onActionItemClick
=
{
this
.
onActionItemClick
}
errorAreaId
=
{
errorAreaId
}
errorAreaId
=
{
errorAreaId
}
handleExceptModel
=
{
this
.
handleExceptModel
}
handleExceptModel
=
{
this
.
handleExceptModel
}
editModelChange
=
{
editModelChange
}
/
>
/
>
}
}
modelContentProps
=
{
modelContentProps
}
modelContentProps
=
{
modelContentProps
}
...
...
mods/components/3dviewConvertor/view/common/ModelHeader.js
View file @
1eccb877
...
@@ -12,9 +12,9 @@ export default class ModelHeader extends Component {
...
@@ -12,9 +12,9 @@ export default class ModelHeader extends Component {
}
}
render
()
{
render
()
{
const
{
headerName
}
=
this
.
props
;
const
{
animationProps
,
headerName
}
=
this
.
props
;
return
(
return
(
<
div
className
=
'ModuleEditPage'
>
<
div
className
=
'ModuleEditPage'
{...
animationProps
}
>
<
div
className
=
'topBox'
>
<
div
className
=
'topBox'
>
<
span
className
=
'editTitle'
>
<
span
className
=
'editTitle'
>
<
span
className
=
'titleText'
>
{
headerName
}
<
/span
>
<
span
className
=
'titleText'
>
{
headerName
}
<
/span
>
...
...
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