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
801a2c12
Commit
801a2c12
authored
May 27, 2020
by
单奇雲
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' of
http://172.16.10.76/station/amos-station-module-view
into developer
parents
6b53e693
6a7e1c61
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
644 additions
and
387 deletions
+644
-387
amos.config.js
amos.config.js
+2
-2
right3dIcon.png
...viewConvertor/assets/convertor/moduleEdit/right3dIcon.png
+0
-0
rightBaseMsgIcon.png
...onvertor/assets/convertor/moduleEdit/rightBaseMsgIcon.png
+0
-0
rightModalBG.png
...iewConvertor/assets/convertor/moduleEdit/rightModalBG.png
+0
-0
rightModalTitleIcon.png
...ertor/assets/convertor/moduleEdit/rightModalTitleIcon.png
+0
-0
urlConsts.js
mods/components/3dviewConvertor/consts/urlConsts.js
+64
-65
moduleEditServices.js
...components/3dviewConvertor/services/moduleEditServices.js
+12
-8
index.scss
mods/components/3dviewConvertor/styles/index.scss
+1
-5
moduleEdit.scss
mods/components/3dviewConvertor/styles/moduleEdit.scss
+38
-7
preControl.scss
mods/components/3dviewConvertor/styles/preControl.scss
+13
-12
reservePlan.scss
mods/components/3dviewConvertor/styles/reservePlan.scss
+190
-0
statistical.scss
...ts/3dviewConvertor/styles/view/panoramic/statistical.scss
+86
-73
LayerPool.js
mods/components/3dviewConvertor/view/LayerPool.js
+1
-1
MaskContent.js
mods/components/3dviewConvertor/view/MaskContent.js
+7
-6
View3D.js
mods/components/3dviewConvertor/view/View3D.js
+45
-47
ModelHeader.js
mods/components/3dviewConvertor/view/common/ModelHeader.js
+2
-2
ExceptionArea.js
...nents/3dviewConvertor/view/exceptionArea/ExceptionArea.js
+1
-2
RightEditPointPanel.js
...Convertor/view/moduleEditComponent/RightEditPointPanel.js
+55
-43
RightEditRegionPanel.js
...onvertor/view/moduleEditComponent/RightEditRegionPanel.js
+35
-29
ModelContent.js
...dviewConvertor/view/panoramic/statistical/ModelContent.js
+16
-12
SafetyExecuteList.js
...Convertor/view/panoramic/statistical/SafetyExecuteList.js
+2
-1
SafetyIndex.js
...3dviewConvertor/view/panoramic/statistical/SafetyIndex.js
+73
-71
conf.js
...onents/3dviewConvertor/view/panoramic/statistical/conf.js
+1
-1
No files found.
amos.config.js
View file @
801a2c12
...
...
@@ -11,9 +11,9 @@
objModelURI
:
'/a3dres'
,
// 根url
// baseURI: 'http://172.16.11.30:9008/',
baseURI
:
'http://172.16.3.
63
:8083/'
,
baseURI
:
'http://172.16.3.
122
:8083/'
,
// convertorURI: 'http://172.16.3.122:8083/',
convertorURI
:
'http://172.16.3.
63
:8083/'
,
convertorURI
:
'http://172.16.3.
122
:8083/'
,
patrolURI
:
'http://172.16.3.122:8082/'
,
rulesConfigURI
:
'http://172.16.10.91:8080/'
,
// plugin URI
...
...
mods/components/3dviewConvertor/assets/convertor/moduleEdit/right3dIcon.png
0 → 100644
View file @
801a2c12
420 Bytes
mods/components/3dviewConvertor/assets/convertor/moduleEdit/rightBaseMsgIcon.png
0 → 100644
View file @
801a2c12
343 Bytes
mods/components/3dviewConvertor/assets/convertor/moduleEdit/rightModalBG.png
0 → 100644
View file @
801a2c12
9.13 KB
mods/components/3dviewConvertor/assets/convertor/moduleEdit/rightModalTitleIcon.png
0 → 100644
View file @
801a2c12
664 Bytes
mods/components/3dviewConvertor/consts/urlConsts.js
View file @
801a2c12
...
...
@@ -2,7 +2,6 @@ import * as endConf from 'amos-processor/lib/config/endconf';
const
completePrefix
=
endConf
.
completePrefix
;
const
AmosConfig
=
endConf
.
AmosConfig
;
const
pluginURI
=
AmosConfig
.
httpURI
.
pluginURI
;
const
convertorURI
=
AmosConfig
.
httpURI
.
convertorURI
;
// 三维视图
const
view3dURI
=
AmosConfig
.
httpURI
.
convertorURI
;
...
...
@@ -11,7 +10,6 @@ const baseURI = AmosConfig.httpURI.convertorURI;
//规则
const
ruleURI
=
AmosConfig
.
httpURI
.
rulesConfigURI
;
const
baseURI2
=
AmosConfig
.
httpURI
.
baseURI
;
export
const
ConvertorURI
=
convertorURI
;
export
const
FscSerUrl
=
{
...
...
@@ -68,72 +66,73 @@ export const FscSerUrl = {
export
const
FasSerUrl
=
{
selectedOrgInfoUrl
:
completePrefix
(
convertorURI
,
'api/region/current'
),
//获取选择的公司
selectedOrgInfoUrl
:
completePrefix
(
convertorURI
,
'api/region/current'
),
//获取选择的公司
//*******************************************************************************
// 换流站视图
//*******************************************************************************
fireTruckListUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/fire-car/list?pageNumber={page}&pageSize={size}'
),
//获取消防车列表
fireTruckDetailUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/fire-car/det/{id}'
),
//获取消防车相信信息
fireEquipmentClassifyAllListUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/listByType?equipClassify={equipClassify}'
),
//获取消防装备列表
fireEquipmentListUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/info/page?name={name}&code={code}&equipClassify={equipClassify}&pageNumber={page}&pageSize={size}'
),
//获取消防装备列表
monitorPointListUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/page?pageNumber={page}&pageSize={size}&type={type}&searchValue={searchValue}'
),
//获取消防装备已配置监测点位列表
monitorPointEditUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point'
),
//新增/更新消防装备监测点位
monitorPointDeleteUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/batch/delete?pointIds={ids}'
),
//删除消防装备监测点位
monitorPointQryEditUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/{id}'
),
//获取消防装备监测点位
monitorPointQryUpdateUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/update'
),
//获取消防装备监测点位
matchEquipmentListUrl
:
completePrefix
(
convertorURI
,
'api/impEquip/{equipmentId}/fireeqmt/page?pageNumber={page}&pageSize={size}'
),
//获取重点设备的配套装备列表
equipNoPageListUrl
:
completePrefix
(
convertorURI
,
'api/impEquip/all-list'
),
//保护对象查询
deptByOrgCodeUrl
:
completePrefix
(
convertorURI
,
'api/common/deptment/list'
),
//部门查询,
fireStationPageUrl
:
completePrefix
(
convertorURI
,
'api/firestation/page?pageNumber={page}&pageSize={size}'
),
//消防小室
fireStationDetailUrl
:
completePrefix
(
convertorURI
,
'api/firestation/{id}'
),
// 消防小室
fireStationDeleteUrl
:
completePrefix
(
convertorURI
,
'api/firestation/{ids}'
),
// 消防小室删除
fireWaterPageUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/page?pageNumber={page}&pageSize={size}'
),
//消防水资源
fireWaterDetailUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/{id}'
),
// 消防水资源
fireWaterDeleteUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/{ids}'
),
// 消防水资源
fireWaterNewUrl
:
completePrefix
(
convertorURI
,
'api/waterresource'
),
// 消防水资源
fireWaterEditUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/{id}'
),
//消防水资源
fireWaterMatchesAddUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/fireEquipmenet'
),
//水资源添加配套消防装备
fireWaterMatchesListUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/{waterResourceId}/fireEquipmenet/page?pageNumber={page}&pageSize={size}'
),
//获取水资源的配套装备列表
fireWaterMatchesDeleteUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/fireEquipmenet'
),
//删除水资源绑定的消防装备
fireEquipmentDeleteUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/{ids}'
),
//删除消防设备
fireEquipmentGetUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/{id}'
),
//获取消防设备信息
fireEquipmentAddUrl
:
completePrefix
(
convertorURI
,
'api/fireSource'
),
//添加消防设备
fireTruckDeleteUrl
:
completePrefix
(
convertorURI
,
'api/firecar/{ids}'
),
//删除消防车
fireTruckAddUrl
:
completePrefix
(
convertorURI
,
'api/firecar/uploadCarImg'
),
//添加消防车
fireStrengthPageUrl
:
completePrefix
(
convertorURI
,
'api/firestrength/page?pageNumber={page}&pageSize={size}'
),
//消防力量
fireStrengthDetailUrl
:
completePrefix
(
convertorURI
,
'api/firestrength/{id}'
),
//消防力量
fireStrengthDeleteUrl
:
completePrefix
(
convertorURI
,
'api/firestrength/{ids}'
),
//消防力量
fireStrengthNewUrl
:
completePrefix
(
convertorURI
,
'api/firestrength'
),
//消防力量
fireStrengthEditUrl
:
completePrefix
(
convertorURI
,
'api/firestrength/{id}'
),
//消防力量
fireStationMatchesAddUrl
:
completePrefix
(
convertorURI
,
'api/firestation/fireequipmenet'
),
//消防小室添加配套消防装备
fireStationMatchesListUrl
:
completePrefix
(
convertorURI
,
'api/firestation/{fireStationId}/fireequipmenet/page?pageNumber={page}&pageSize={size}'
),
//获取消防站的配套装备列表
fireStationMatchesDeleteUrl
:
completePrefix
(
convertorURI
,
'api/firestation/fireequipmenet'
),
//删除消防站绑定的消防装备
dialogPointDetailUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/info/detail?id={dialogId}&type={type}'
),
riskSoureWarningUrl
:
completePrefix
(
convertorURI
,
'api/risksource/warning/detail?riskSourceId={riskSourceId}'
),
//风险预警详情
screenSaverDataUrl
:
completePrefix
(
convertorURI
,
'api/risksource/collection3d'
),
//3d屏保数据
getFireStationInfoUrl
:
completePrefix
(
convertorURI
,
'api/firestation/createAndSaveImg'
),
// 维护消防小室/消防泡沫间信息
getImpEquipDetailUrl
:
completePrefix
(
convertorURI
,
'api/impEquip/detail/{id}'
),
//预案获取重点设备信息
startTestPrecontrolUrl
:
completePrefix
(
convertorURI
,
'api/risksource/data/fireqeuiment/soe'
),
//*******************************************************************************
// 换流站视图
//*******************************************************************************
fireTruckListUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/fire-car/list?pageNumber={page}&pageSize={size}'
),
//获取消防车列表
fireTruckDetailUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/fire-car/det/{id}'
),
//获取消防车相信信息
fireEquipmentClassifyAllListUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/listByType?equipClassify={equipClassify}'
),
//获取消防装备列表
fireEquipmentListUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/info/page?name={name}&code={code}&equipClassify={equipClassify}&pageNumber={page}&pageSize={size}'
),
//获取消防装备列表
monitorPointListUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/page?pageNumber={page}&pageSize={size}&type={type}&searchValue={searchValue}'
),
//获取消防装备已配置监测点位列表
monitorPointEditUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point'
),
//新增/更新消防装备监测点位
monitorPointDeleteUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/batch/delete?pointIds={ids}'
),
//删除消防装备监测点位
monitorPointQryEditUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/{id}'
),
//获取消防装备监测点位
monitorPointQryUpdateUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/update'
),
//获取消防装备监测点位
matchEquipmentListUrl
:
completePrefix
(
convertorURI
,
'api/impEquip/{equipmentId}/fireeqmt/page?pageNumber={page}&pageSize={size}'
),
//获取重点设备的配套装备列表
equipNoPageListUrl
:
completePrefix
(
convertorURI
,
'api/impEquip/all-list'
),
//保护对象查询
deptByOrgCodeUrl
:
completePrefix
(
convertorURI
,
'api/common/deptment/list'
),
//部门查询,
fireStationPageUrl
:
completePrefix
(
convertorURI
,
'api/firestation/page?pageNumber={page}&pageSize={size}'
),
//消防小室
fireStationDetailUrl
:
completePrefix
(
convertorURI
,
'api/firestation/{id}'
),
// 消防小室
fireStationDeleteUrl
:
completePrefix
(
convertorURI
,
'api/firestation/{ids}'
),
// 消防小室删除
fireWaterPageUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/page?pageNumber={page}&pageSize={size}'
),
//消防水资源
fireWaterDetailUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/{id}'
),
// 消防水资源
fireWaterDeleteUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/{ids}'
),
// 消防水资源
fireWaterNewUrl
:
completePrefix
(
convertorURI
,
'api/waterresource'
),
// 消防水资源
fireWaterEditUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/{id}'
),
//消防水资源
fireWaterMatchesAddUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/fireEquipmenet'
),
//水资源添加配套消防装备
fireWaterMatchesListUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/{waterResourceId}/fireEquipmenet/page?pageNumber={page}&pageSize={size}'
),
//获取水资源的配套装备列表
fireWaterMatchesDeleteUrl
:
completePrefix
(
convertorURI
,
'api/waterresource/fireEquipmenet'
),
//删除水资源绑定的消防装备
fireEquipmentDeleteUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/{ids}'
),
//删除消防设备
fireEquipmentGetUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/{id}'
),
//获取消防设备信息
fireEquipmentAddUrl
:
completePrefix
(
convertorURI
,
'api/fireSource'
),
//添加消防设备
fireTruckDeleteUrl
:
completePrefix
(
convertorURI
,
'api/firecar/{ids}'
),
//删除消防车
fireTruckAddUrl
:
completePrefix
(
convertorURI
,
'api/firecar/uploadCarImg'
),
//添加消防车
fireStrengthPageUrl
:
completePrefix
(
convertorURI
,
'api/firestrength/page?pageNumber={page}&pageSize={size}'
),
//消防力量
fireStrengthDetailUrl
:
completePrefix
(
convertorURI
,
'api/firestrength/{id}'
),
//消防力量
fireStrengthDeleteUrl
:
completePrefix
(
convertorURI
,
'api/firestrength/{ids}'
),
//消防力量
fireStrengthNewUrl
:
completePrefix
(
convertorURI
,
'api/firestrength'
),
//消防力量
fireStrengthEditUrl
:
completePrefix
(
convertorURI
,
'api/firestrength/{id}'
),
//消防力量
fireStationMatchesAddUrl
:
completePrefix
(
convertorURI
,
'api/firestation/fireequipmenet'
),
//消防小室添加配套消防装备
fireStationMatchesListUrl
:
completePrefix
(
convertorURI
,
'api/firestation/{fireStationId}/fireequipmenet/page?pageNumber={page}&pageSize={size}'
),
//获取消防站的配套装备列表
fireStationMatchesDeleteUrl
:
completePrefix
(
convertorURI
,
'api/firestation/fireequipmenet'
),
//删除消防站绑定的消防装备
dialogPointDetailUrl
:
completePrefix
(
convertorURI
,
'api/fireSource/info/detail?id={dialogId}&type={type}'
),
riskSoureWarningUrl
:
completePrefix
(
convertorURI
,
'api/risksource/warning/detail?riskSourceId={riskSourceId}'
),
//风险预警详情
screenSaverDataUrl
:
completePrefix
(
convertorURI
,
'api/risksource/collection3d'
),
//3d屏保数据
getFireStationInfoUrl
:
completePrefix
(
convertorURI
,
'api/firestation/createAndSaveImg'
),
// 维护消防小室/消防泡沫间信息
getImpEquipDetailUrl
:
completePrefix
(
convertorURI
,
'api/impEquip/detail/{id}'
),
//预案获取重点设备信息
startTestPrecontrolUrl
:
completePrefix
(
convertorURI
,
'api/risksource/data/fireqeuiment/soe'
),
xiaofangxiaoshiUrl
:
completePrefix
(
convertorURI
,
'api/firestation/fireEquipments/{id}'
),
dictListUrl
:
completePrefix
(
convertorURI
,
'api/dict/list?dictCode={code}'
),
riskSourceSecondLevelUrl
:
completePrefix
(
convertorURI
,
'api/risksource/riskSourceSecondLevel'
),
view3DStatisticsUrl
:
completePrefix
(
convertorURI
,
'api/risksource/query3DStatistics/{markerType}'
),
contingencyWaterUrl
:
completePrefix
(
convertorURI
,
'api/risksource/contingency/water'
),
configPointEquipmentUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/batch/bindToEquipment?deviceId={deviceId}&pointIds={pointIds}'
),
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}'
),
xiaofangxiaoshiUrl
:
completePrefix
(
convertorURI
,
'api/firestation/fireEquipments/{id}'
),
dictListUrl
:
completePrefix
(
convertorURI
,
'api/dict/list?dictCode={code}'
),
riskSourceSecondLevelUrl
:
completePrefix
(
convertorURI
,
'api/risksource/riskSourceSecondLevel'
),
view3DStatisticsUrl
:
completePrefix
(
convertorURI
,
'api/risksource/query3DStatistics/{markerType}'
),
contingencyWaterUrl
:
completePrefix
(
convertorURI
,
'api/risksource/contingency/water'
),
configPointEquipmentUrl
:
completePrefix
(
convertorURI
,
'api/firequment/point/batch/bindToEquipment?deviceId={deviceId}&pointIds={pointIds}'
),
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}'
)
};
export
const
ModuleEditUrl
=
{
getAreaTreeUrl
:
completePrefix
(
convertorURI
,
'api/view3d/region/tree'
),
//
getPointTreeUrl
:
completePrefix
(
convertorURI
,
'api/view3d/point/tree'
),
saveAreaDataUrl
:
completePrefix
(
convertorURI
,
'api/view3d/region/bind'
),
//
getPointTypeUrl
:
completePrefix
(
convertorURI
,
'api/view3d/point/type'
),
getPointListUrl
:
completePrefix
(
convertorURI
,
'api/view3d/init3dViewNode'
),
//获取初始三维点 type=impEquipment&riskSourceId=1
savePointListUrl
:
completePrefix
(
convertorURI
,
'api/view3d/point/bind'
),
//批量保存点绑定关系
getAreaTreeUrl
:
completePrefix
(
convertorURI
,
'api/view3d/region/tree'
),
//
getAreaTreeDetailUrl
:
completePrefix
(
convertorURI
,
'api/view3d/region/detail'
),
//
getPointTreeDetailUrl
:
completePrefix
(
convertorURI
,
'api/view3d/point/detail?type={type}&pointId={pointId}'
),
//
getPointTreeUrl
:
completePrefix
(
convertorURI
,
'api/view3d/point/tree'
),
saveAreaDataUrl
:
completePrefix
(
convertorURI
,
'api/view3d/region/bind'
),
//
getPointTypeUrl
:
completePrefix
(
convertorURI
,
'api/view3d/point/type'
),
getPointListUrl
:
completePrefix
(
convertorURI
,
'api/view3d/init3dViewNode'
),
//获取初始三维点 type=impEquipment&riskSourceId=1
savePointListUrl
:
completePrefix
(
convertorURI
,
'api/view3d/point/bind'
)
//批量保存点绑定关系
}
mods/components/3dviewConvertor/services/moduleEditServices.js
View file @
801a2c12
...
...
@@ -34,14 +34,19 @@ export const saveDesignAction = object => {
export
const
getAreaTreeAction
=
()
=>
{
return
commonGet
(
ModuleEditUrl
.
getAreaTreeUrl
);
}
export
const
getAreaTreeDetailAction
=
(
id
)
=>
{
return
commonGet
(
`
${
ModuleEditUrl
.
getPointTreeDetailUrl
}
/
${
id
}
`
);
}
export
const
getPointTreeDetailAction
=
(
pointId
,
type
)
=>
{
return
commonGet
(
formatUrl
(
ModuleEditUrl
.
getPointTreeDetailUrl
,{
pointId
,
type
}));
}
export
const
getPointTreeAction
=
(
type
)
=>
{
return
commonGet
(
`
${
ModuleEditUrl
.
getPointTreeUrl
}
/
${
type
}
`
);
}
/**
* 保存区域
* @param {*} routePathParams
* @param {*} routePathParams
*/
export
const
saveAreaDataAction
=
(
routePathParams
)
=>
{
return
commonPost
(
ModuleEditUrl
.
saveAreaDataUrl
,
routePathParams
);
...
...
@@ -52,8 +57,8 @@ export const getPointTypeAction = () => {
}
/**
* 获取风险点
* @param {点类型} type
* @param {区域id} riskSourceId
* @param {点类型} type
* @param {区域id} riskSourceId
*/
export
const
getPointListAction
=
(
type
,
riskSourceId
)
=>
{
if
(
type
)
{
...
...
@@ -61,13 +66,13 @@ export const getPointListAction = (type,riskSourceId) => {
}
else
{
return
commonGet
(
`
${
ModuleEditUrl
.
getPointListUrl
}
`
);
}
}
/**
* 保存风险点
* @param {*} bindParams
* @param {*} bindParams
*/
export
const
savePointListAction
=
(
bindParams
)
=>
{
return
commonPost
(
ModuleEditUrl
.
savePointListUrl
,
bindParams
);
}
\ No newline at end of file
}
mods/components/3dviewConvertor/styles/index.scss
View file @
801a2c12
...
...
@@ -13,13 +13,11 @@
@import
'./actionbar.scss'
;
@import
'./moduleEdit.scss'
;
@import
'./searchpane.scss'
;
@import
'./reservePlan.scss'
;
@import
'./../assets/bizFont/iconfont.css'
;
@import
'./../assets/amosFont/iconfont.css'
;
.obj-loading-coms
{
position
:
absolute
;
top
:
50%
;
...
...
@@ -133,5 +131,3 @@
border-image-slice
:
50
50
50
50
;
border-image-repeat
:
stretch
;
}
mods/components/3dviewConvertor/styles/moduleEdit.scss
View file @
801a2c12
...
...
@@ -27,13 +27,15 @@
// border-image:linear-gradient(90deg,rgba(50,217,239,0) 2%,rgba(50,217,239,0.49) 29%,rgba(50,217,239,0.73) 73%,rgba(50,217,239,0) 100%);
}
}
.quipBtn
{
width
:
169px
;
height
:
44px
;
background
:
url('/mods/components/3dviewConvertor/assets/convertor/moduleEdit/quip.png')
no-repeat
100%
100%
;
margin-top
:
10px
;
margin-left
:
70px
;
}
.quipBtn
{
width
:
169px
;
height
:
44px
;
margin-top
:
10px
;
margin-left
:
70px
;
cursor
:
pointer
;
background
:
url('/mods/components/3dviewConvertor/assets/convertor/moduleEdit/quip.png')
no-repeat
100%
100%
;
}
}
.bottomBox
{
position
:
absolute
;
...
...
@@ -164,17 +166,46 @@
border
:
1px
solid
rgba
(
46
,
217
,
239
,
0
.59
);
padding
:
12px
;
color
:
#fff
;
.basic-demo
{
height
:
calc
(
100%
-
48px
);
}
.amos-form-item-label
{
color
:
#fff
;
}
.topForm
{
.rightTitle
{
margin-left
:
-15px
;
.titleText
{
margin-left
:
5px
;
}
}
.amos-input
{
background-color
:
rgba
(
4
,
30
,
36
,
0
.4
);
border-radius
:
1px
;
border
:
solid
1px
rgba
(
46
,
217
,
239
,
0
.59
);
font-size
:
14px
;
color
:
#fff
;
}
.moduleTitle
{
height
:
50px
;
display
:
flex
;
align-items
:
center
;
.titleText
{
margin-left
:
5px
;
}
}
height
:
calc
(
100%
-
48px
);
padding-left
:
20px
;
.amos-input
{
width
:
100%
;
}
.amos-select
{
width
:
100%
;
}
.radio-text
{
color
:
#fff
}
}
}
.bottomBtns
{
...
...
mods/components/3dviewConvertor/styles/preControl.scss
View file @
801a2c12
...
...
@@ -365,53 +365,54 @@
}
}
.reserve-plan-root
{
.reserve-plan-root
{
height
:
80px
;
.operate-button-root
+
.operate-button-root
{
padding-left
:
35px
;
margin-left
:
20px
;
}
}
%operate-button-root-common
{
display
:
flex
;
align-items
:
center
;
width
:
250px
;
}
.operate-button-display-root
{
.operate-button-display-root
{
justify-content
:
center
;
}
.operate-button-root
{
.operate-button-root
{
width
:
250px
;
justify-content
:
center
;
.operate-button-left
{
.operate-button-left
{
img
{
img
{
// width: 20px !important;
// height: 20px !important
}
.operate-button-content
{
.operate-button-content
{
margin-left
:
5px
;
font-weight
:
500
;
line-height
:
15px
;
width
:
170px
;
.button-name
{
.button-name
{
font-size
:
14px
!
important
}
.button-desc
{
.button-desc
{
font-size
:
8px
!
important
}
}
}
.operate-button-right
{
.operate-button-right
{
width
:
77px
;
.operate-button-button
{
.operate-button-button
{
margin-left
:
10px
;
width
:
70px
;
height
:
31px
;
...
...
@@ -434,7 +435,7 @@
.quit-btn
{
margin-top
:
10px
;
img
{
img
{
width
:
17px
}
}
...
...
mods/components/3dviewConvertor/styles/reservePlan.scss
0 → 100644
View file @
801a2c12
.step-cxt-root
{
z-index
:
9
;
.drawer-content
{
width
:
$content-width
;
height
:
100%
;
// background: $content-bg;
// border-radius: 1rem 1rem 0 0;
background-image
:
url('../assets/convertor/3dview/prePlan/zhixingtanchuang.png')
;
background-repeat
:
no-repeat
;
-moz-background-size
:
100%
100%
;
background-size
:
100%
100%
;
.drawer-content-header
{
display
:
flex
;
height
:
$content-header-height
;
font-size
:
1
.25rem
;
line-height
:
1
.8
;
align-items
:
center
;
justify-content
:
space-between
;
text-align
:
center
;
.drawer-content-header-title
{
display
:
inline-block
;
// height: $content-header-height;
width
:
87px
;
margin
:
0
auto
;
font-family
:
'PingFangSC-Semibold'
;
font-size
:
15px
;
font-weight
:
600
;
line-height
:
26px
;
color
:
white
;
span
{
margin-left
:
0
.5rem
;
}
}
.drawer-content-header-close
{
width
:
$content-header-height
;
height
:
$content-header-height
;
text-align
:
center
;
cursor
:
pointer
;
i
{
font-size
:
1
.7rem
;
line-height
:
1
.5
;
color
:
red
;
}
}
}
.drawer-content-body
{
height
:
calc
(
100%
-
4
.5rem
);
min-height
:
3rem
;
overflow
:
auto
;
color
:
white
;
}
::-webkit-scrollbar
{
/* 隐藏滚轮 */
display
:
none
;
}
}
}
%operate-button-root-common
{
display
:
flex
;
align-items
:
center
;
width
:
400px
;
height
:
65px
;
justify-content
:
space-between
;
.operate-button-left
{
display
:
flex
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
img
{
width
:
30px
;
height
:
30px
;
}
.operate-button-content
{
margin-left
:
15px
;
font-family
:
'PingFangSC-Semibold'
;
font-weight
:
600
;
line-height
:
26px
;
color
:
white
;
.button-name
{
font-size
:
15px
;
}
.button-desc
{
font-size
:
10px
;
}
}
}
.operate-button-right
{
width
:
91px
;
.operate-button-button
{
width
:
91px
;
height
:
35px
;
padding
:
0
1rem
;
color
:
white
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
border-radius
:
4px
;
opacity
:
1
;
}
.amos-btn
+
.amos-btn
{
margin-left
:
0
;
}
:nth-child
(
2
)
{
margin-top
:
2px
;
}
}
}
.operate-button-root
{
@extend
%operate-button-root-common
;
}
.operate-button-root
+
.operate-button-root
{
padding-left
:
19px
;
margin-left
:
19px
;
border-left
:
2px
solid
#13b1d4
;
}
.step-cxt-line-root
{
display
:
flex
;
align-items
:
center
;
height
:
63px
;
margin
:
10px
15px
0
;
margin-top
:
10px
;
justify-content
:
space-between
;
background
:
linear-gradient
(
180deg
,
rgba
(
9
,
65
,
124
,
1
)
0%
,
rgba
(
0
,
0
,
0
,
0
)
100%
);
border
:
1px
solid
rgba
(
255
,
195
,
0
,
1
);
.step-cxt-line-left
{
display
:
flex
;
padding-left
:
20px
;
align-items
:
center
;
flex
:
0
0
40%
;
}
.step-cxt-line-content
{
margin-left
:
15px
;
font-size
:
15px
;
}
.step-cxt-line-right
{
padding-right
:
20px
;
.operate-button-button
{
width
:
91px
;
height
:
35px
;
padding
:
0
8px
;
color
:
white
;
background-repeat
:
no-repeat
;
background-size
:
100%
100%
;
opacity
:
1
;
}
}
}
.reserve-plan-root
{
@extend
%plan-border-img
;
display
:
flex
;
height
:
100px
;
align-items
:
center
;
justify-content
:
center
;
border-image
:
url('../assets/convertor/3dview/prePlan/jiaohuqu-duan.png')
;
}
.operate-button-display-root
{
@extend
%operate-button-root-common
;
.render-spinner-stick
{
width
:
21px
;
background
:
#ffc000
;
}
}
mods/components/3dviewConvertor/styles/view/panoramic/statistical.scss
View file @
801a2c12
...
...
@@ -3,34 +3,41 @@
// height: 100%;
// width: 100%;
.statistical-left
{
position
:
absolute
;
height
:
100%
;
width
:
350px
;
float
:
left
;
z-index
:
1
;
color
:
white
;
display
:
flex
;
flex-direction
:
column
;
.statistical-left
{
position
:
absolute
;
height
:
100%
;
width
:
350px
;
float
:
left
;
z-index
:
1
;
color
:
white
;
display
:
flex
;
flex-direction
:
column
;
.equipStatusList
{
padding-left
:
97px
;
padding-top
:
10px
;
flex-grow
:
1
;
overflow-y
:
auto
;
.title-child
{
width
:
100%
;
height
:
55px
;
//margin-top: 5px;
}
.title-date
{
height
:
20px
;
font-size
:
13px
;
}
.title-text
{
font-size
:
15px
;
}
}
.equipStatusList
{
padding-left
:
97px
;
padding-top
:
10px
;
flex-grow
:
1
;
.title-child
{
width
:
100%
;
height
:
55px
;
//margin-top: 5px;
}
.title-date
{
height
:
20px
;
font-size
:
13px
;
}
.title-text
{
font-size
:
15px
;
}
}
::-webkit-scrollbar
{
/* 隐藏滚轮 */
display
:
none
;
}
.safetyExecuteList
{
flex
:
2
;
...
...
@@ -114,7 +121,6 @@
width
:
90%
;
span
{
position
:
absolute
;
margin-top
:
3px
;
font-size
:
14px
;
color
:
rgba
(
255
,
255
,
255
,
1
);
...
...
@@ -156,9 +162,7 @@
height
:
100%
;
margin-left
:
30px
;
margin-right
:
20px
;
&
:hover
{
background-color
:
rgba
(
199
,
223
,
245
,
0
.3
);
}
cursor
:
pointer
;
.content-item
{
margin
:
5px
;
...
...
@@ -473,56 +477,65 @@
text-align
:
right
;
margin-top
:
5px
;
margin-right
:
3px
;
float
:
right
;
// margin-top: 5px;
// margin-right: 3px;
img
{
cursor
:
pointer
;
}
}
.model-line
{
float
:
left
;
display
:
inline
;
width
:
32%
;
height
:
88%
;
text-align
:
center
;
padding-left
:
35px
;
margin-top
:
5px
;
margin-left
:
10px
;
overflow
:
auto
;
.model-title
{
height
:
30px
;
font-size
:
16px
;
color
:rgba
(
240
,
223
,
45
,
1
)
;
padding-top
:
10px
;
}
.model-content
{
.content-div
{
min-width
:
80px
;
min-height
:
120px
;
text-align
:
left
;
padding-top
:
20px
;
&
-body
{
display
:
flex
;
height
:
calc
(
100%
-
50px
);
.title
{
height
:
30px
;
font-size
:
16px
;
color
:rgba
(
240
,
223
,
45
,
1
)
;
}
.next-title
{
padding-left
:
5px
;
}
.rows
{
padding-left
:
15px
;
font-size
:
14px
;
color
:rgba
(
255
,
255
,
255
,
1
)
;
.row
{
display
:
inline-block
;
height
:
28px
;
.model-line
{
height
:
88%
;
margin-top
:
5px
;
text-align
:
center
;
flex
:
1
;
&
-img
{
height
:
30px
;
}
.model-title
{
height
:
30px
;
font-size
:
16px
;
color
:rgba
(
240
,
223
,
45
,
1
)
;
}
.model-content
{
height
:
calc
(
100%
-
60px
);
padding-left
:
10px
;
overflow
:
auto
;
.content-div
{
min-width
:
80px
;
min-height
:
120px
;
padding-top
:
20px
;
text-align
:
left
;
.title
{
height
:
30px
;
font-size
:
16px
;
color
:rgba
(
240
,
223
,
45
,
1
)
;
}
.date
{
padding-left
:
25px
;
.next-title
{
padding-left
:
5px
;
}
.rows
{
padding-left
:
15px
;
font-size
:
14px
;
color
:rgba
(
255
,
255
,
255
,
1
)
;
.row
{
display
:
inline-block
;
height
:
28px
;
}
.date
{
padding-left
:
25px
;
}
}
}
}
...
...
mods/components/3dviewConvertor/view/LayerPool.js
View file @
801a2c12
...
...
@@ -98,7 +98,7 @@ class LayerPool extends Component {
let
wsURL
=
AmosConfig
.
wsURI
.
securityBaseURI
+
'plan'
;
return
(
<
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
className
=
{
displayDetail
?
'precontrol-sidePlan-detail-display'
:
'precontrol-sidePlan-detail'
}
left
=
{
false
}
...
...
mods/components/3dviewConvertor/view/MaskContent.js
View file @
801a2c12
...
...
@@ -51,7 +51,7 @@ class MaskContent extends Component {
};
actionBarClick
=
({
singleClick
,
type
,
label
,
showLabel
})
=>
{
if
(
!
singleClick
){
//设置选中状态
this
.
setState
({
activeAction
:
type
});
}
...
...
@@ -91,6 +91,7 @@ class MaskContent extends Component {
headerName
,
errorAreaId
}
=
this
.
props
;
alarmStarted
&&
this
.
props
.
editModelChange
(
true
);
const
wsURL
=
completeToken
(
SysWsURL
.
rulews
);
const
controlAnimation
=
{
animateName
:
'zoom-comb-left'
,
...
...
@@ -121,12 +122,12 @@ class MaskContent extends Component {
return
(
<
div
className
=
"mask-content"
>
<
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
}
/>
}
{
sideControlShow
&&
<
DataPane
animationProps
=
{
datapaneAnim
}
/>
}
<
SearchPane
visible
=
{
searchPaneVisible
}
changeSearchPaneVisible
=
{()
=>
this
.
changeSearchPaneVisible
}
/
>
{
!
alarmStarted
&&
sideControlShow
&&
<
SideControl
multiple
=
{
multiple
}
errorAreaId
=
{
errorAreaId
}
onItemClick
=
{
onItemClick
}
layerConfig
=
{
layerConfig
}
animationProps
=
{
controlAnimation
}
/>
}
{
!
alarmStarted
&&
sideControlShow
&&
<
DataPane
animationProps
=
{
datapaneAnim
}
/>
}
{
!
alarmStarted
&&
<
SearchPane
visible
=
{
searchPaneVisible
}
changeSearchPaneVisible
=
{()
=>
this
.
changeSearchPaneVisible
}
/>
}
<
TopMsg
alarmStart
=
{
alarmStart
}
/
>
{
!
isShowActionBar
&&
<
ModelHeader
headerName
=
{
headerName
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
{
isShowActionBar
&&
<
ActionBar
activeAction
=
{
activeAction
}
onActionItemClick
=
{(
e
)
=>
this
.
actionBarClick
(
e
)}
animationProps
=
{
controlAnimation
}
/>
}
{
!
alarmStarted
&&
!
isShowActionBar
&&
<
ModelHeader
animationProps
=
{
controlAnimation
}
headerName
=
{
headerName
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
{
!
alarmStarted
&&
isShowActionBar
&&
<
ActionBar
activeAction
=
{
activeAction
}
onActionItemClick
=
{(
e
)
=>
this
.
actionBarClick
(
e
)}
animationProps
=
{
controlAnimation
}
/>
}
{
alarmStarted
&&
<
LayerPool
animationProps
=
{
layerPoolAnimation
}
planStart
=
{
planStart
}
planQuit
=
{
planQuit
}
planStarted
=
{
planStarted
}
/>
}
<
/div
>
);
...
...
mods/components/3dviewConvertor/view/View3D.js
View file @
801a2c12
...
...
@@ -200,6 +200,7 @@ class View3D extends Component {
tirggerTransTopic
(
CONSTS
.
forward
,
{
details
:
{
type
:
'prePlan'
,
show
:
false
},
dateTime
:
Date
.
now
()
});
removeFireAlarm2
(
this
);
this
.
cameraFactory
.
fitView
(
desigerHelperConfig
.
cameraEffect
);
this
.
quitEditMode
();
};
alarmStart
=
()
=>
{
...
...
@@ -728,57 +729,55 @@ class View3D extends Component {
}
//选中区域变化
selectItemChange
=
(
selectArea
)
=>
{
console
.
log
(
selectArea
);
this
.
state
.
selectArea
=
selectArea
this
.
setState
({
selectArea
:
selectArea
,
selectArea
,
showRightPanel
:
true
})
})
;
}
//选中点变化
selectPointChange
=
(
selectPoints
)
=>
{
this
.
setState
({
selectPoints
:
selectPoints
,
selectPoints
,
showRightPanel
:
true
})
})
;
}
getAreas
=
(
treeData
)
=>
{
let
{
dragItem
}
=
this
.
state
;
// console.log(treeData)
// let areas = [];
if
(
treeData
&&
treeData
.
length
>
0
)
{
if
(
treeData
&&
treeData
.
length
>
0
)
{
treeData
.
map
((
item
)
=>
{
if
(
item
.
isRegion
&&
item
.
isBind
)
{
if
(
item
.
children
&&
item
.
children
.
length
>
0
)
{
if
(
item
.
children
&&
item
.
children
.
length
>
0
)
{
if
(
dragItem
)
{
if
(
dragItem
.
parentId
&&
dragItem
.
parentId
==
item
.
id
)
{
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
normal
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
normal
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
;
}
else
{
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
noDrop
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
noDrop
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
;
}
{
this
.
getAreas
(
item
.
children
)}
}
else
{
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
normal
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
normal
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
;
{
this
.
getAreas
(
item
.
children
)}
}
}
else
{
}
else
{
if
(
dragItem
)
{
if
(
dragItem
&&
dragItem
.
parentId
&&
dragItem
.
parentId
==
item
.
id
)
{
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
normal
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
if
(
dragItem
&&
dragItem
.
parentId
&&
dragItem
.
parentId
=
==
item
.
id
)
{
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
normal
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
;
}
else
{
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
noDrop
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
noDrop
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
;
}
}
else
{
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
normal
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
this
.
areas
.
push
(
<
PolygonRegion
{...
this
.
areaStyles
.
normal
}
points
=
{
item
.
routePath
?
JSON
.
parse
(
item
.
routePath
).
routePath
:
''
}
onCreated
=
{(
e
)
=>
{
this
.
onRegionCreated
(
e
,
item
)}}
/>
)
;
}
}
}
else
{
if
(
item
.
children
&&
item
.
children
.
length
>
0
)
{
{
this
.
getAreas
(
item
.
children
)}
if
(
item
.
children
&&
item
.
children
.
length
>
0
)
{
this
.
getAreas
(
item
.
children
);
}
}
});
...
...
@@ -789,29 +788,28 @@ class View3D extends Component {
this
.
getAreas
(
this
.
state
.
treeData
);
return
this
.
areas
;
}
onRegionCreated
=
(
polygonRegion
,
item
)
=>
{
console
.
log
(
polygonRegion
)
// console.log(polygonRegion.pointInPolygon)
this
.
polygonRegion
[
item
.
id
]
=
polygonRegion
;
console
.
log
(
this
.
polygonRegion
)
}
//保存区域绑定
saveAreaData
=
()
=>
{
let
{
treeData
,
routePathData
,
pageType
}
=
this
.
state
;
let
routePathParams
=
[];
console
.
log
(
routePathData
)
let
{
routePathData
}
=
this
.
state
;
saveAreaDataAction
(
routePathData
).
then
(
d
=>
{
message
.
success
(
'保存成功!'
);
getAreaTreeAction
().
then
(
data
=>
{
console
.
log
(
data
);
this
.
setState
({
treeData
:
data
||
[]
})
treeData
:
data
||
[]
})
;
});
},
eer
=>
{
message
.
error
(
'保存失败!'
);
});
}
//保存点绑定
savePointData
=
()
=>
{
let
{
markers
}
=
this
.
state
;
...
...
@@ -823,14 +821,12 @@ class View3D extends Component {
pointId
:
item
[
i
].
id
,
pointType
:
item
[
i
].
type
,
position3d
:
`
${
item
[
i
].
position
.
x
}
,
${
item
[
i
].
position
.
y
}
,
${
item
[
i
].
position
.
z
}
`
})
})
;
}
}
savePointListAction
(
paramsArr
).
then
(
data
=>
{
console
.
log
(
data
);
})
});
}
// 删除点绑定
deletePointBind
=
()
=>
{
...
...
@@ -841,28 +837,28 @@ class View3D extends Component {
pointId
:
selectPoints
.
id
,
pointType
:
selectPoints
.
type
,
position3d
:
`
${
selectPoints
.
position
.
x
}
,
${
selectPoints
.
position
.
y
}
,
${
selectPoints
.
position
.
z
}
`
})
})
;
savePointListAction
(
pointParams
).
then
(
data
=>
{
console
.
log
(
data
);
})
})
;
}
}
//删除区域
deleteAreaBind
=
()
=>
{
let
{
selectArea
,
routePathData
}
=
this
.
state
;
let
{
selectArea
}
=
this
.
state
;
if
(
selectArea
)
{
let
areaParams
=
[];
areaParams
.
push
({
riskSourceId
:
selectArea
.
id
,
riskSourceId
:
selectArea
.
id
,
routePath
:
''
})
})
;
saveAreaDataAction
(
areaParams
).
then
(
d
=>
{
message
.
success
(
'删除成功!'
);
getAreaTreeAction
().
then
(
data
=>
{
console
.
log
(
data
);
this
.
setState
({
treeData
:
data
||
[]
})
treeData
:
data
||
[]
})
;
});
},
eer
=>
{
message
.
error
(
'删除失败!'
);
...
...
@@ -1000,6 +996,7 @@ class View3D extends Component {
this
.
getPointList
();
}
}
simpleTipOk
=
()
=>
{
this
.
setState
({
simpleTipVisible
:
false
...
...
@@ -1203,13 +1200,13 @@ class View3D extends Component {
const
{
markers
}
=
this
.
state
;
pointModelistAction
(
actionType
).
then
(
d
=>
{
// if (markerType === 'fireResource') {
markers
[
'impEquipmentMode'
]
=
d
.
filter
(
item
=>
item
.
position
!
=
null
);
// markers[markerType] = d;
this
.
setState
({
markers
,
markerType
:
"impEquipmentMode"
});
return
;
markers
[
'impEquipmentMode'
]
=
d
.
dataList
.
filter
(
item
=>
item
.
position
!=
=
null
);
// markers[markerType] = d;
this
.
setState
({
markers
,
markerType
:
"impEquipmentMode"
});
return
;
});
}
...
...
@@ -1254,7 +1251,7 @@ class View3D extends Component {
};
return
exceptionAreas
.
map
((
area
,
index
)
=>
{
const
{
routePath
:
points
=
[]
}
=
area
.
routePath
;
return
<
PolygonRegion
key
=
{
area
.
id
}
{...
regionConf
}
points
=
{
points
}
onCreated
=
{
e
=>
this
.
onRectCreated
(
e
,
area
,
index
)}
/>
;
return
points
.
length
>
0
&&
<
PolygonRegion
key
=
{
area
.
id
}
{...
regionConf
}
points
=
{
points
}
onCreated
=
{
e
=>
this
.
onRectCreated
(
e
,
area
,
index
)}
/>
;
});
}
...
...
@@ -1305,7 +1302,7 @@ class View3D extends Component {
headerName
,
errorAreaId
}
=
this
.
state
;
const
{
dimension
,
hiddenScreenSaver
}
=
this
.
props
;
const
{
dimension
,
hiddenScreenSaver
,
editModelChange
}
=
this
.
props
;
const
graphicProps
=
{
...
dimension
,
...
desigerConf
,
...
...
@@ -1373,6 +1370,7 @@ class View3D extends Component {
onActionItemClick
=
{
this
.
onActionItemClick
}
errorAreaId
=
{
errorAreaId
}
handleExceptModel
=
{
this
.
handleExceptModel
}
editModelChange
=
{
editModelChange
}
/
>
}
modelContentProps
=
{
modelContentProps
}
...
...
@@ -1387,7 +1385,7 @@ class View3D extends Component {
{
editFlag
&&
pageType
===
'region'
?
''
:
<
PointsPool
markers
=
{
markers
}
updateMarker
=
{
this
.
updateMarker
}
planStarted
=
{
alarmStarted
}
stagePilot
=
{
this
.
stagePilot
}
/>
}
{
fireTruckRoute
&&
<
FatLine
{...
lineData
.
fatLineConf
}
linePath
=
{
JSON
.
parse
(
fireTruckRoute
)}
visible
=
{
showFireTruckRoute
}
/>
}
<
FlameFire
position
=
{
firePosition
}
width
=
{
10
}
height
=
{
20
}
depth
=
{
8
}
sliceSpacing
=
{
1
}
visible
=
{
planStarted
}
/
>
{
this
.
renderAreas
()}
{
editFlag
&&
this
.
renderAreas
()}
{
this
.
renderPolygonRegion
(
exceptionAreas
)}
{
startLoadExceptionArea
&&
<
ExceptionArea
markers
=
{
exceptionMarkers
}
handleExceptModel
=
{
this
.
handleExceptModel
}
/>
}
<
/A3DDesigner
>
...
...
mods/components/3dviewConvertor/view/common/ModelHeader.js
View file @
801a2c12
...
...
@@ -12,9 +12,9 @@ export default class ModelHeader extends Component {
}
render
()
{
const
{
headerName
}
=
this
.
props
;
const
{
animationProps
,
headerName
}
=
this
.
props
;
return
(
<
div
className
=
'ModuleEditPage'
>
<
div
className
=
'ModuleEditPage'
{...
animationProps
}
>
<
div
className
=
'topBox'
>
<
span
className
=
'editTitle'
>
<
span
className
=
'titleText'
>
{
headerName
}
<
/span
>
...
...
mods/components/3dviewConvertor/view/exceptionArea/ExceptionArea.js
View file @
801a2c12
import
React
,
{
Component
}
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
{
utils
,
Store
}
from
'amos-tool'
;
import
{
utils
}
from
'amos-tool'
;
import
{
Markers
}
from
'amos-3d/lib/designer'
;
import
{
connect3D
}
from
'amos-3d/lib/designer'
;
import
{
BaseObjHelper
}
from
'base-r3d/lib/factory'
;
import
{
safetyIndexIconMapper
}
from
'./../../consts/imgStatic'
;
const
lsTool
=
Store
.
lsTool
;
const
getIcon
=
(
exceptionType
)
=>
{
return
safetyIndexIconMapper
[
exceptionType
];
};
...
...
mods/components/3dviewConvertor/view/moduleEditComponent/RightEditPointPanel.js
View file @
801a2c12
...
...
@@ -2,7 +2,7 @@ import React, { Component } from 'react';
import
PropTypes
from
'prop-types'
;
import
{
Connect
,
Modal
,
Tree
,
Select
,
Search
,
Button
,
Input
,
InputNumber
,
Form
,
Radio
}
from
'amos-framework'
;
import
*
as
endConf
from
'amos-processor/lib/config/endconf'
;
import
{
getAreaTreeAction
,
saveAreaDataAction
}
from
'../../services/moduleEditServices'
import
{
getAreaTreeAction
,
saveAreaDataAction
,
getPointTreeDetailAction
}
from
'../../services/moduleEditServices'
const
eventConnect
=
Connect
.
eventConnect
;
const
TreeNode
=
Tree
.
TreeNode
;
...
...
@@ -20,30 +20,38 @@ class RightEditPointPanel extends Component {
form
:
{
},
rules
:{}
rules
:{},
detailData
:[]
};
}
componentDidMount
()
{
// getAreaTreeAction().then(data => {
// console.log(data);
// this.setState({
// treeData:data || []
// })
// this.props.getAreaData(data || [])
// })
let
{
detailData
}
=
this
.
props
getPointTreeDetailAction
(
detailData
.
id
,
detailData
.
type
).
then
(
data
=>
{
console
.
log
(
data
);
this
.
setState
({
detailData
:
data
||
[],
},
err
=>
{
console
.
log
(
err
)
});
});
}
componentWillUnmount
()
{
}
componentWillReceiveProps
(
nextProps
)
{
console
.
log
(
nextProps
)
let
{
treeData
,
pointTypeArr
}
=
nextProps
;
// this.setState({
// })
let
{
detailData
}
=
this
.
props
getPointTreeDetailAction
(
detailData
.
id
,
detailData
.
type
).
then
(
data
=>
{
console
.
log
(
data
);
this
.
setState
({
detailData
:
data
||
[],
},
err
=>
{
console
.
log
(
err
)
});
});
}
onChange
=
(
key
,
e
)
=>
{
const
value
=
e
.
target
.
value
;
...
...
@@ -67,10 +75,10 @@ class RightEditPointPanel extends Component {
handleSubmit
=
(
e
)
=>
{
// e.preventDefault();
this
.
form
.
validate
((
valid
,
dataValues
,
errors
)
=>
{
...
...
@@ -85,8 +93,9 @@ class RightEditPointPanel extends Component {
}
render
()
{
let
{
rules
,
form
,
pointTypeArr
,
pointType
}
=
this
.
state
;
let
{
rules
,
form
,
pointTypeArr
,
pointType
,
detailData
}
=
this
.
state
;
let
{
pageType
}
=
this
.
props
;
const
formItemLayout
=
{
labelCol
:
{
xs
:
{
span
:
28
},
...
...
@@ -96,49 +105,51 @@ class RightEditPointPanel extends Component {
}
return
(
<
div
className
=
"rightEditPanel"
>
<
div
className
=
'rightContainer'
>
<
Form
className
=
"basic-demo"
ref
=
{
component
=>
this
.
form
=
component
}
model
=
{
form
}
rules
=
{
rules
}
>
<
div
className
=
'rightContainer'
>
<
div
className
=
'topForm'
>
<
div
className
=
'rightTitle'
>
<
span
className
=
'titleIcon'
><
/span
>
<
div
className
=
'rightTitle'
>
<
img
src
=
'/mods/components/3dviewConvertor/assets/convertor/moduleEdit/rightModalTitleIcon.png'
/
>
<
span
className
=
'titleText'
>
风险点信息
<
/span
>
<
/div
>
<
div
className
=
'baseMsg'
>
<
div
className
=
'moduleTitle'
>
<
span
className
=
'titleIcon'
><
/span
>
<
span
className
=
'titleText'
>
基本信息
<
/span
>
<
img
src
=
'/mods/components/3dviewConvertor/assets/convertor/moduleEdit/rightBaseMsgIcon.png'
/
>
<
span
className
=
'titleText'
>
基本信息
<
/span
>
<
/div
>
<
div
className
=
'moduleContent'
>
<
div
className
=
'msgItem'
>
<
div
className
=
'msgItem'
>
<
div
className
=
'itemLabel'
>
风险名称
<
/div
>
<
FormItem
field
=
"name"
>
<
Input
/>
<
Input
value
=
{
detailData
.
name
}
disabled
/>
<
/FormItem
>
<
/div
>
<
div
className
=
'msgItem'
>
<
div
className
=
'itemLabel'
>
参考编号
<
/div
>
<
div
className
=
'itemLabel'
>
参考编号
<
/div
>
<
FormItem
field
=
"code"
>
<
Input
onChange
=
{(
e
)
=>
this
.
onChange
(
'name'
,
e
)}
value
=
{
detailData
.
code
}
disabled
/>
<
/FormItem
>
<
/div
>
<
div
className
=
'msgItem'
>
<
div
className
=
'itemLabel'
>
风险等级
<
/div
>
<
FormItem
field
=
"level"
>
<
Select
value
=
{
form
.
level
}
onChange
=
{
this
.
onHobbyChange
}
>
{
/*
<Select value={form.level} onChange={this.onHobbyChange}>
<Option value="1">一级</Option>
<Option value="2">二级</Option>
<Option value="3">三级</Option>
<Option value="4">四级</Option>
<Option value="5">五级</Option>
<
/Select
>
</Select> */
}
<
Input
value
=
{
detailData
.
level
}
disabled
/>
<
/FormItem
>
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -153,17 +164,17 @@ class RightEditPointPanel extends Component {
<
div
className
=
'position'
>
<
div
className
=
'positionItem'
>
<
FormItem
label
=
"X"
field
=
"positionX"
{...
formItemLayout
}
>
<
InputNumber
/>
<
Input
value
=
{
detailData
.
ue4Location
&&
detailData
.
ue4Location
[
0
]}
/
>
<
/FormItem
>
<
/div
>
<
div
className
=
'positionItem'
>
<
FormItem
label
=
"Y"
field
=
"positionY"
{...
formItemLayout
}
>
<
InputNumber
/>
<
Input
value
=
{
detailData
.
ue4Location
&&
detailData
.
ue4Location
[
1
]}
/
>
<
/FormItem
>
<
/div
>
<
div
className
=
'positionItem'
>
<
FormItem
label
=
"Z"
field
=
"positionZ"
{...
formItemLayout
}
>
<
InputNumber
/>
<
Input
value
=
{
detailData
.
ue4Location
&&
detailData
.
ue4Location
[
2
]}
/
>
<
/FormItem
>
<
/div
>
<
/div
>
...
...
@@ -171,16 +182,16 @@ class RightEditPointPanel extends Component {
<
div
className
=
'msgItem'
>
<
div
className
=
'itemLabel'
>
楼层位置
<
/div
>
<
FormItem
field
=
"floorNum"
>
<
Input
/>
<
Input
value
=
{
detailData
.
floor3d
}
disabled
/>
<
/FormItem
>
<
/div
>
<
div
className
=
'msgItem'
>
<
div
className
=
'itemLabel'
>
是否位于室内
<
/div
>
<
FormItem
field
=
"isIndoor"
>
<
RadioGroup
defaultValue
=
"prop2"
onChange
=
{
value
=>
{
this
.
onRadioChange
(
value
)}}
>
<
Radio
value
=
"prop1"
>
是
<
/Radio
>
<
Radio
value
=
"prop2"
>
否
<
/Radio
>
<
Radio
className
=
'radio-text'
value
=
"prop1"
>
是
<
/Radio
>
<
Radio
className
=
'radio-text'
value
=
"prop2"
>
否
<
/Radio
>
<
/RadioGroup
>
<
/FormItem
>
<
/div
>
...
...
@@ -188,19 +199,20 @@ class RightEditPointPanel extends Component {
<
/div
>
<
/div
>
<
div
className
=
'bottomBtns'
>
<
Button
<
Button
className
=
'sureBtn'
onClick
=
{()
=>
{
this
.
handleSubmit
()
}}
><
/Button
>
<
Button
<
Button
className
=
'cancelBtn'
onClick
=
{()
=>
{
// this.props.save()
}}
><
/Button
>
<
/div
>
<
/div
>
<
/Form
>
<
/div
>
<
/div
>
);
}
...
...
mods/components/3dviewConvertor/view/moduleEditComponent/RightEditRegionPanel.js
View file @
801a2c12
...
...
@@ -20,29 +20,31 @@ class RightEditRegionPanel extends Component {
form
:
{
},
rules
:{}
rules
:{},
treeDetailData
:[]
};
}
componentDidMount
()
{
// getAreaTreeAction().then(data => {
console
.
log
(
JSON
.
stringify
(
this
.
props
.
detailData
))
// getAreaTreeDetailAction().then(data => {
// console.log(data);
// this.setState({
//
tree
Data:data || []
//
treeDetail
Data:data || []
// })
// this.props.getAreaData(data || [])
// })
}
componentWillUnmount
()
{
}
componentWillReceiveProps
(
nextProps
)
{
console
.
log
(
nextProps
)
let
{
treeData
,
pointTypeArr
}
=
nextProps
;
// this.setState({
// })
}
onChange
=
(
key
,
e
)
=>
{
...
...
@@ -67,16 +69,17 @@ class RightEditRegionPanel extends Component {
handleSubmit
=
(
e
)
=>
{
// e.preventDefault();
this
.
form
.
validate
((
valid
,
dataValues
,
errors
)
=>
{
console
.
log
(
'返回内容:'
,
dataValues
,
valid
,
errors
);
if
(
valid
)
{
//
AmosAlert.success('结果', JSON.stringify(dataValues));
//AmosAlert.success('结果', JSON.stringify(dataValues));
}
else
{
console
.
log
(
'error submit!!'
);
return
false
;
...
...
@@ -85,8 +88,8 @@ class RightEditRegionPanel extends Component {
}
render
()
{
let
{
rules
,
form
,
pointTypeArr
,
pointType
}
=
this
.
state
;
let
{
pageType
}
=
this
.
props
;
let
{
rules
,
form
,
pointTypeArr
,
pointType
,
}
=
this
.
state
;
let
{
pageType
,
detailData
}
=
this
.
props
;
const
formItemLayout
=
{
labelCol
:
{
xs
:
{
span
:
28
},
...
...
@@ -96,55 +99,57 @@ class RightEditRegionPanel extends Component {
}
return
(
<
div
className
=
"rightEditPanel"
>
<
div
className
=
'rightContainer'
>
<
Form
className
=
"basic-demo"
ref
=
{
component
=>
this
.
form
=
component
}
model
=
{
form
}
rules
=
{
rules
}
>
<
div
className
=
'rightContainer'
>
<
div
className
=
'topForm'
>
<
div
className
=
'rightTitle'
>
<
span
className
=
'titleIcon'
><
/span
>
<
img
src
=
'/mods/components/3dviewConvertor/assets/convertor/moduleEdit/rightModalTitleIcon.png'
/
>
<
span
className
=
'titleText'
>
风险区域信息
<
/span
>
<
/div
>
<
div
className
=
'baseMsg'
>
<
div
className
=
'moduleTitle'
>
<
span
className
=
'titleIcon'
><
/span
>
<
span
className
=
'titleText'
>
基本信息
<
/span
>
<
img
src
=
'/mods/components/3dviewConvertor/assets/convertor/moduleEdit/rightBaseMsgIcon.png'
/
>
<
span
className
=
'titleText'
>
基本信息
<
/span
>
<
/div
>
<
div
className
=
'moduleContent'
>
<
div
className
=
'msgItem'
>
<
div
className
=
'itemLabel'
>
风险名称
<
/div
>
<
FormItem
field
=
"name"
>
<
Input
/>
<
Input
value
=
{
detailData
.
name
}
disabled
/>
<
/FormItem
>
<
/div
>
<
div
className
=
'msgItem'
>
<
div
className
=
'itemLabel'
>
参考编号
<
/div
>
<
FormItem
field
=
"code"
>
<
Input
onChange
=
{(
e
)
=>
this
.
onChange
(
'name'
,
e
)}
value
=
{
detailData
.
code
}
disabled
/>
<
/FormItem
>
<
/div
>
<
div
className
=
'msgItem'
>
<
div
className
=
'itemLabel'
>
风险等级
<
/div
>
<
FormItem
field
=
"level"
>
<
Select
value
=
{
form
.
level
}
onChange
=
{
this
.
onHobbyChange
}
>
{
/*
<Select value={form.level} onChange={this.onHobbyChange}>
<Option value="1">一级</Option>
<Option value="2">二级</Option>
<Option value="3">三级</Option>
<Option value="4">四级</Option>
<Option value="5">五级</Option>
<
/Select
>
</Select> */
}
<
Input
value
=
{
detailData
.
level
}
disabled
/>
<
/FormItem
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
'3dMsg'
>
<
div
className
=
'moduleTitle'
>
<
span
className
=
'titleIcon'
><
/span
>
<
img
src
=
'/mods/components/3dviewConvertor/assets/convertor/moduleEdit/right3dIcon.png'
/
>
<
span
className
=
'titleText'
>
三维信息
<
/span
>
<
/div
>
<
div
className
=
'moduleContent'
>
...
...
@@ -153,17 +158,17 @@ class RightEditRegionPanel extends Component {
<
div
className
=
'position'
>
<
div
className
=
'positionItem'
>
<
FormItem
label
=
"长"
field
=
"positionX"
{...
formItemLayout
}
>
<
Input
Number
/>
<
Input
value
=
{
detailData
.
ue4Location
&&
detailData
.
ue4Location
[
0
]}
/
>
<
/FormItem
>
<
/div
>
<
div
className
=
'positionItem'
>
<
FormItem
label
=
"宽"
field
=
"positionY"
{...
formItemLayout
}
>
<
Input
Number
/>
<
Input
value
=
{
detailData
.
ue4Location
&&
detailData
.
ue4Location
[
1
]}
/
>
<
/FormItem
>
<
/div
>
<
div
className
=
'positionItem'
>
<
FormItem
label
=
"高"
field
=
"positionZ"
{...
formItemLayout
}
>
<
Input
Number
/>
<
Input
value
=
{
detailData
.
ue4Location
&&
detailData
.
ue4Location
[
2
]}
/
>
<
/FormItem
>
<
/div
>
<
/div
>
...
...
@@ -172,19 +177,20 @@ class RightEditRegionPanel extends Component {
<
/div
>
<
/div
>
<
div
className
=
'bottomBtns'
>
<
Button
<
Button
className
=
'sureBtn'
onClick
=
{()
=>
{
this
.
handleSubmit
()
}}
><
/Button
>
<
Button
<
Button
className
=
'cancelBtn'
onClick
=
{()
=>
{
// this.props.save()
}}
><
/Button
>
<
/div
>
<
/div
>
<
/Form
>
<
/div
>
<
/div
>
);
}
...
...
mods/components/3dviewConvertor/view/panoramic/statistical/ModelContent.js
View file @
801a2c12
import
React
,
{
Component
}
from
'react'
;
import
PropTypes
from
'prop-types'
;
import
{
safetyIndexDetailAction
}
from
'./../../../services/panoramicService'
;
import
moment
from
'moment'
;
const
format
=
'YYYY-MM-dd'
;
export
default
class
ModelContent
extends
Component
{
...
...
@@ -14,18 +14,10 @@ export default class ModelContent extends Component {
}
componentDidMount
(){
le
t
{
type
}
=
this
.
props
;
cons
t
{
type
}
=
this
.
props
;
this
.
safetyIndexDetail
(
type
);
}
safetyIndexDetail
=
(
type
)
=>
{
safetyIndexDetailAction
(
type
).
then
(
data
=>
{
this
.
setState
({
alarmData
:
data
});
});
}
/**
* 获取标题
*
...
...
@@ -41,6 +33,14 @@ export default class ModelContent extends Component {
return
titleParams
[
v
];
}
safetyIndexDetail
=
(
type
)
=>
{
safetyIndexDetailAction
(
type
).
then
(
data
=>
{
this
.
setState
({
alarmData
:
data
});
});
}
formatData
=
(
str
)
=>
{
let
date
=
str
.
split
(
' '
)[
0
];
return
date
;
...
...
@@ -63,12 +63,12 @@ export default class ModelContent extends Component {
render
()
{
let
{
alarmData
}
=
this
.
state
;
le
t
{
type
}
=
this
.
props
;
cons
t
{
type
}
=
this
.
props
;
return
(
<
div
className
=
'model-content'
>
{(
alarmData
||
[]).
map
(
item
=>
{
return
(
<
div
className
=
'content-div'
>
<
div
key
=
{
item
.
typeCode
}
className
=
'content-div'
>
<
div
className
=
'title'
>
<
span
>|<
/span
>
<
span
className
=
'next-title'
>
{
type
===
'risk'
?
this
.
getTitle
(
item
.
typeCode
)
:
item
.
typeName
}
<
/span
>
...
...
@@ -81,3 +81,7 @@ export default class ModelContent extends Component {
);
}
}
ModelContent
.
propTypes
=
{
type
:
PropTypes
.
string
};
mods/components/3dviewConvertor/view/panoramic/statistical/SafetyExecuteList.js
View file @
801a2c12
...
...
@@ -81,7 +81,8 @@ export default class SafetyExecuteList extends Component {
datas
.
map
((
item
,
index
)
=>
{
return
(
<
div
key
=
{
item
.
id
}
className
=
"title-child"
>
<
span
className
=
"title-text"
>
{
item
.
label
}
<
/span
>
<
span
className
=
"title-text"
>
{
item
.
label
}
<
/span>  
;
<
span
className
=
"title-text"
>
{
item
.
changeDate
}
<
/span
>
<
/div
>
);
})
...
...
mods/components/3dviewConvertor/view/panoramic/statistical/SafetyIndex.js
View file @
801a2c12
...
...
@@ -35,59 +35,59 @@ export default class SafetyIndex extends Component {
const
{
safetyIndexData
}
=
this
.
state
;
return
{
tooltip
:
{
show
:
false
show
:
false
},
toolbox
:
{
show
:
false
,
feature
:
{
mark
:
{
show
:
false
},
restore
:
{
show
:
false
},
saveAsImage
:
{
show
:
false
}
}
show
:
false
,
feature
:
{
mark
:
{
show
:
false
},
restore
:
{
show
:
false
},
saveAsImage
:
{
show
:
false
}
}
},
series
:
[
{
name
:
'今日安全指数'
,
type
:
'gauge'
,
center
:
[
'10%'
,
'48%'
],
// 默认全局居中
radius
:
'60%'
,
min
:
0
,
max
:
100
,
endAngle
:
90
,
startAngle
:
-
90
,
splitNumber
:
3
,
axisLine
:
{
// 坐标轴线
show
:
false
,
lineStyle
:
{
// 属性lineStyle控制线条样式
color
:
[
[
0.5
,
'red'
],
[
0.9
,
'Orange'
],
[
0.95
,
'Gold'
],
[
1
,
'#00C3FF'
]
],
width
:
0
,
opacity
:
0
}
},
axisLabel
:
{
// 坐标轴小标记
show
:
false
},
axisTick
:
{
// 坐标轴小标记
show
:
false
},
splitLine
:
{
// 分隔线
show
:
false
},
pointer
:
{
width
:
5
},
title
:
{
show
:
false
},
detail
:
{
show
:
false
},
data
:
[{
value
:
safetyIndexData
.
safetyIndex
,
name
:
'今日安全指数'
}]
{
name
:
'今日安全指数'
,
type
:
'gauge'
,
center
:
[
'10%'
,
'48%'
],
// 默认全局居中
radius
:
'60%'
,
min
:
0
,
max
:
100
,
endAngle
:
90
,
startAngle
:
-
90
,
splitNumber
:
3
,
axisLine
:
{
// 坐标轴线
show
:
false
,
lineStyle
:
{
// 属性lineStyle控制线条样式
color
:
[
[
0.5
,
'red'
],
[
0.9
,
'Orange'
],
[
0.95
,
'Gold'
],
[
1
,
'#00C3FF'
]
],
width
:
0
,
opacity
:
0
}
},
axisLabel
:
{
// 坐标轴小标记
show
:
false
},
axisTick
:
{
// 坐标轴小标记
show
:
false
},
splitLine
:
{
// 分隔线
show
:
false
},
pointer
:
{
width
:
5
},
title
:
{
show
:
false
},
detail
:
{
show
:
false
},
data
:
[{
value
:
safetyIndexData
.
safetyIndex
,
name
:
'今日安全指数'
}]
}
]
}
...
...
@@ -103,19 +103,21 @@ export default class SafetyIndex extends Component {
return
(
<
div
className
=
'warnModal'
>
<
div
className
=
'close'
>
<
img
src
=
{
panoramicIcon
.
model_close
}
onClick
=
{()
=>
this
.
modelOpen
(
false
)}
><
/img
>
<
img
src
=
{
panoramicIcon
.
model_close
}
alt
=
''
onClick
=
{()
=>
this
.
modelOpen
(
false
)}
/
>
<
/div
>
{
warnController
.
map
(
item
=>
{
return
(
<
div
className
=
'model-line'
>
<
div
>
<
img
src
=
{
getIcon
(
item
.
icon
)}
><
/img
>
<
div
className
=
'warnModal-body'
>
{
warnController
.
map
(
item
=>
{
return
(
<
div
key
=
{
item
.
key
}
className
=
'model-line'
>
<
div
className
=
'model-line-img'
>
<
img
src
=
{
getIcon
(
item
.
icon
)}
alt
=
''
/>
<
/div
>
<
div
className
=
'model-title'
>
{
item
.
label
}
<
/div
>
<
ModelContent
type
=
{
item
.
type
}
/
>
<
/div
>
<
div
className
=
'model-title'
>
{
item
.
label
}
<
/div
>
<
ModelContent
type
=
{
item
.
type
}
/
>
<
/div
>
);
})}
);
})}
<
/div
>
<
/div
>
);
}
...
...
@@ -130,21 +132,21 @@ export default class SafetyIndex extends Component {
<
div
className
=
'safetyIndex-content'
onClick
=
{()
=>
this
.
modelOpen
(
true
)}
>
<
div
>
今日安全指数
<
/div
>
<
div
className
=
'safetyIndex-content-row'
>
<
div
className
=
'number-large'
>
{
safetyIndexData
.
safetyIndex
}
<
/div
>
<
span
className
=
'number-unit'
>&
nbsp
;
分
&
nbsp
;
<
img
src
=
{
panoramicIcon
.
safetyup
}
className
=
"row-up"
alt
=
"up"
/>
<
/span
>
<
div
className
=
'number-large'
>
{
safetyIndexData
.
safetyIndex
}
<
/div
>
<
span
className
=
'number-unit'
>&
nbsp
;
分
&
nbsp
;
<
img
src
=
{
panoramicIcon
.
safetyup
}
className
=
"row-up"
alt
=
"up"
/>
<
/span
>
<
/div
>
{
[{
name
:
'风险值上升'
,
num
:
safetyIndexData
.
riskExceptionNum
},
{
name
:
'巡检不合格'
,
num
:
safetyIndexData
.
checkExceptionNum
},
{
name
:
'火灾报警'
,
num
:
safetyIndexData
.
fireExceptionNum
}].
map
((
item
,
index
)
=>
<
div
className
=
"content-item"
>
{
item
.
name
}
{
item
.
num
}
<
/div
>
[{
name
:
'风险异常'
,
num
:
safetyIndexData
.
riskExceptionNum
},
{
name
:
'巡检异常'
,
num
:
safetyIndexData
.
checkExceptionNum
},
{
name
:
'故障告警'
,
num
:
safetyIndexData
.
fireExceptionNum
}].
map
((
item
,
index
)
=>
<
div
key
=
{
item
.
name
}
className
=
"content-item"
>
{
item
.
name
}
{
item
.
num
}
<
/div
>
)
}
<
/div
>
<
ReactEcharts
className
=
'safetyIndex-content-chart'
option
=
{
this
.
getOption
()}
/
>
{
modelVisable
&&
this
.
renderWarnContent
()}
<
/div
>
<
ReactEcharts
className
=
'safetyIndex-content-chart'
option
=
{
this
.
getOption
()}
/
>
{
modelVisable
&&
this
.
renderWarnContent
()}
<
/div
>
);
}
...
...
mods/components/3dviewConvertor/view/panoramic/statistical/conf.js
View file @
801a2c12
...
...
@@ -2,7 +2,7 @@
* 告警控制
*/
export
const
warnController
=
[
{
key
:
'
fire'
,
icon
:
'model_fire'
,
type
:
'fire'
,
label
:
'火灾
告警'
},
{
key
:
'
equip'
,
icon
:
'model_fire'
,
type
:
'equip'
,
label
:
'故障
告警'
},
{
key
:
'risk'
,
icon
:
'model_risk'
,
type
:
'risk'
,
label
:
'风险异常'
},
{
key
:
'check'
,
icon
:
'model_patrol'
,
type
:
'check'
,
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