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
d4c4410c
Commit
d4c4410c
authored
May 21, 2020
by
单奇雲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
actionBars
parent
2ceb61fd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
67 additions
and
8 deletions
+67
-8
urlConsts.js
mods/components/3dviewConvertor/consts/urlConsts.js
+2
-0
3dService.js
mods/components/3dviewConvertor/services/3dService.js
+9
-0
actionbar.scss
mods/components/3dviewConvertor/styles/actionbar.scss
+1
-0
MaskContent.js
mods/components/3dviewConvertor/view/MaskContent.js
+24
-4
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+28
-1
index.js
mods/components/3dviewConvertor/view/actionbar/index.js
+1
-1
conf.js
mods/components/3dviewConvertor/view/conf.js
+2
-2
No files found.
mods/components/3dviewConvertor/consts/urlConsts.js
View file @
d4c4410c
...
...
@@ -110,4 +110,5 @@ export const FasSerUrl = {
importExcelDataUrl
:
completePrefix
(
convertorURI
,
'api/excel/import/data/excel/{type}'
),
//导入excel数据type=['fireResource','water']
importExcelFireEquipmentPointUrl
:
completePrefix
(
convertorURI
,
'api/excel/import/fireEquipmentPoint'
),
exportExcelFireEquipmentPointUrl
:
completePrefix
(
convertorURI
,
'api/excel/export?exportType={exportType}&modelName={modelName}'
),
pointModelistUrl
:
completePrefix
(
convertorURI
,
'api/view3d/point/list?model={model}'
),
};
\ No newline at end of file
mods/components/3dviewConvertor/services/3dService.js
View file @
d4c4410c
...
...
@@ -163,3 +163,11 @@ export const query3DStatistics = (markerType) => {
export
const
queryContingencyWater
=
()
=>
{
return
commonGet
(
formatUrl
(
FasSerUrl
.
contingencyWaterUrl
));
}
/**
* 颗粒/重点设备 模式点查询
* @param {模式} model
*/
export
const
pointModelistAction
=
(
model
)
=>
{
return
commonGet
(
formatUrl
(
FasSerUrl
.
pointModelistUrl
,
{
model
}));
};
\ No newline at end of file
mods/components/3dviewConvertor/styles/actionbar.scss
View file @
d4c4410c
...
...
@@ -16,6 +16,7 @@
width
:
40px
;
height
:
38px
;
text-align
:
center
;
cursor
:
pointer
;
border
:
1px
solid
rgba
(
146
,
149
,
151
,
1
);
.action-item-title
{
...
...
mods/components/3dviewConvertor/view/MaskContent.js
View file @
d4c4410c
...
...
@@ -18,6 +18,13 @@ const eventConnect = Connect.eventConnect;
@
eventConnect
class
MaskContent
extends
Component
{
constructor
(
props
)
{
super
(
props
);
this
.
state
=
{
sideControlShow
:
true
};
}
componentWillMount
()
{
this
.
setState
({
planStarted
:
this
.
props
.
planStarted
});
}
...
...
@@ -41,8 +48,21 @@ class MaskContent extends Component {
this
.
props
.
trigger
(
topic
,
content
);
};
actionBarClick
=
(
type
)
=>
{
this
.
changeSideControlShow
(
type
);
this
.
props
.
onActionItemClick
&&
this
.
props
.
onActionItemClick
(
type
);
}
changeSideControlShow
=
(
type
)
=>
{
let
sideControlShow
=
false
;
if
(
type
===
"panoramicMode"
){
sideControlShow
=
true
;
}
this
.
setState
({
sideControlShow
});
}
render
()
{
const
{
planStarted
}
=
this
.
state
;
const
{
planStarted
,
sideControlShow
}
=
this
.
state
;
const
{
multiple
,
onItemClick
,
layerConfig
,
showExplain
,
onExplainClose
,
alarmStarted
,
alarmStart
,
planStart
,
planQuit
}
=
this
.
props
;
const
{
onActionItemClick
}
=
this
.
props
;
const
wsURL
=
completeToken
(
SysWsURL
.
convertorRulews
);
...
...
@@ -75,10 +95,10 @@ class MaskContent extends Component {
return
(
<
div
className
=
"mask-content"
>
<
AmosWebSocket
ref
=
{
node
=>
this
.
aws
=
node
}
url
=
{
wsURL
}
onMessage
=
{
this
.
handleData
}
reconnect
debug
/>
<
SideControl
multiple
=
{
multiple
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/
>
<
DataPane
animationProps
=
{
datapaneAnim
}
/
>
{
sideControlShow
&&
<
SideControl
multiple
=
{
multiple
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/>
}
{
sideControlShow
&&
<
DataPane
animationProps
=
{
datapaneAnim
}
/>
}
<
TopMsg
alarmStart
=
{
alarmStart
}
/
>
<
ActionBar
onActionItemClick
=
{
onActionItemClick
}
animationProps
=
{
controlAnimation
}
/
>
<
ActionBar
onActionItemClick
=
{
(
e
)
=>
this
.
actionBarClick
(
e
)
}
animationProps
=
{
controlAnimation
}
/
>
{
/* <RulesLayer />
{alarmStarted && <LayerPool animationProps={layerPoolAnimation} planStart={planStart} planQuit={planQuit} planStarted={planStarted} />}
<Explain visible={showExplain} onExplainClose={onExplainClose} />*/
}
...
...
mods/components/3dviewConvertor/view/View3D.js
View file @
d4c4410c
...
...
@@ -10,7 +10,7 @@ import * as endConf from 'amos-processor/lib/config/endconf';
import
{
LensJumpFactory
}
from
'base-r3d/lib/factory'
;
import
{
CONSTS
}
from
'./../consts/storageConsts'
;
import
MaskContent
from
'./MaskContent'
;
import
{
getObjFromNet
,
initView3DAction
,
query3DStatistics
}
from
'./../services/3dService'
;
import
{
getObjFromNet
,
initView3DAction
,
query3DStatistics
,
pointModelistAction
}
from
'./../services/3dService'
;
import
{
desigerConf
,
desigerHelperConfig
}
from
'./conf'
;
import
PointsPool
from
'./PointsPool'
;
import
{
eventTopics
,
isControllerEvent
,
isManualOperate
}
from
'./consts'
;
...
...
@@ -645,6 +645,33 @@ class View3D extends Component {
onActionItemClick
=
(
actionType
)
=>
{
console
.
log
(
'onActionItemClick'
);
this
.
clearMarkers
();
this
.
asyncLoadImpEquipment
(
actionType
);
}
asyncLoadImpEquipment
=
(
actionType
)
=>
{
pointModelistAction
(
actionType
).
then
(
d
=>
{
if
(
markerType
===
'fireResource'
)
{
markers
[
'hydrant'
]
=
d
[
'hydrant'
];
markers
[
'monitorEquipment'
]
=
d
[
'monitorEquipment'
];
markers
[
'fireCar'
]
=
d
[
'fireCar'
];
markers
[
'impEquipment'
]
=
d
[
'impEquipment'
];
markers
[
'fireChamber'
]
=
d
[
'fireChamber'
];
markers
[
'pool'
]
=
d
[
'pool'
];
markers
[
markerType
]
=
d
;
this
.
setState
({
markers
});
return
;
}
markers
[
markerType
]
=
d
;
this
.
setState
({
markers
,
markerType
});
});
}
render
()
{
...
...
mods/components/3dviewConvertor/view/actionbar/index.js
View file @
d4c4410c
...
...
@@ -26,7 +26,7 @@ class ActionBar extends Component {
if
(
!
item
.
singleClick
){
this
.
setState
({
activeAction
:
item
.
type
});
}
this
.
props
.
onActionItemClick
&&
this
.
props
.
onActionItemClick
();
this
.
props
.
onActionItemClick
&&
this
.
props
.
onActionItemClick
(
item
.
type
);
this
.
props
.
trigger
(
eventTopics
.
innate_operater
,
{
key
:
item
.
type
,
...
...
mods/components/3dviewConvertor/view/conf.js
View file @
d4c4410c
...
...
@@ -79,8 +79,8 @@ export const viewController = [
* 视图控制
*/
export
const
actionBars
=
[
{
key
:
'impEquipment-action'
,
icon
:
'impEquipment'
,
type
:
'impEquipment
Mode
'
,
singleClick
:
false
,
label
:
'重点设备'
},
{
key
:
'panoramic-action'
,
icon
:
'panoramic'
,
type
:
'panoramic
Mode
'
,
singleClick
:
false
,
label
:
'全景'
},
{
key
:
'impEquipment-action'
,
icon
:
'impEquipment'
,
type
:
'impEquipment'
,
singleClick
:
false
,
label
:
'重点设备'
},
{
key
:
'panoramic-action'
,
icon
:
'panoramic'
,
type
:
'panoramic'
,
singleClick
:
false
,
label
:
'全景'
},
{
key
:
'burst-action'
,
icon
:
'burst'
,
type
:
'burst'
,
singleClick
:
true
,
label
:
'分解'
},
{
key
:
'fitview-action'
,
icon
:
'fitview'
,
type
:
'fitview'
,
singleClick
:
true
,
label
:
'初始视图'
},
{
key
:
'edit-action'
,
icon
:
'editMode'
,
type
:
'editMode'
,
singleClick
:
false
,
label
:
'编辑'
}
...
...
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