Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-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-convertor-view
Commits
e08a4859
Commit
e08a4859
authored
May 12, 2020
by
shanqiyun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全景监控统计界面
parent
600ff617
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
246 additions
and
5 deletions
+246
-5
urlConsts.js
src/consts/urlConsts.js
+12
-0
view.js
src/routes/view.js
+2
-2
panoramicService.js
src/services/panoramicService.js
+54
-0
index.scss
src/styles/view/index.scss
+1
-0
index.scss
src/styles/view/panoramic/index.scss
+9
-0
statistical.scss
src/styles/view/panoramic/statistical.scss
+43
-0
index.js
src/view/panoramic/index.js
+17
-0
EquipStatusList.js
src/view/panoramic/statistical/EquipStatusList.js
+18
-0
SafetyExecuteList.js
src/view/panoramic/statistical/SafetyExecuteList.js
+6
-3
SafetyIndex.js
src/view/panoramic/statistical/SafetyIndex.js
+13
-0
SafetyIndexWeek.js
src/view/panoramic/statistical/SafetyIndexWeek.js
+13
-0
StatisticsCheck.js
src/view/panoramic/statistical/StatisticsCheck.js
+13
-0
StatisticsDuty.js
src/view/panoramic/statistical/StatisticsDuty.js
+13
-0
index.js
src/view/panoramic/statistical/index.js
+32
-0
No files found.
src/consts/urlConsts.js
View file @
e08a4859
...
...
@@ -77,6 +77,18 @@ export const FscSerUrl = {
pointInfoUrl
:
completePrefix
(
patrolURI
,
'api/spc/queryPointById/{pointId}'
),
// 获取巡检点详情
//*******************************************************************************
// 全景监控
//*******************************************************************************
safetyIndexUrl
:
completePrefix
(
patrolURI
,
'api/view3d/statistics/safetyIndex'
),
//今日安全指数
safetyIndexDetailUrl
:
completePrefix
(
patrolURI
,
'api/view3d/safetyIndex/detail/{type}'
),
//今日安全指数详情
safetyExecuteListUrl
:
completePrefix
(
patrolURI
,
'api/view3d/safetyExecute/list/{type}'
),
//告警列表最新5条
equipStatusListUrl
:
completePrefix
(
patrolURI
,
'api/view3d/equipStatus/list'
),
//设备状态消息最新5条
safetyIndexWeekUrl
:
completePrefix
(
patrolURI
,
'api/view3d/safetyIndex/week'
),
//一周安全指数趋势查询
statisticsCheckUrl
:
completePrefix
(
patrolURI
,
'api/view3d/statistics/check'
),
//今日巡检统计接口
statisticsDutyUrl
:
completePrefix
(
patrolURI
,
'api/view3d/statistics/duty'
),
//今日值班统计
//*******************************************************************************
// 巡检业务
//*******************************************************************************
fetchCheckDetailById
:
completePrefix
(
patrolURI
,
'api/spc/check-detail'
),
//根据ID查询巡检记录详情
...
...
src/routes/view.js
View file @
e08a4859
...
...
@@ -58,7 +58,7 @@ import ModuleEdit from './../view/3dview/ModuleEdit'
import
PanoramicMonitor
from
'./../view/panoramicMonitor'
;
import
LeaderStruct
from
'./../view/planMgmt/view/leaderStruct'
;
import
Graph3DModel
from
'amos-iot-3dgraph/lib/view/modelMgmt'
;
import
Panoram
a
from
'./../view/Panorama
'
;
import
Panoram
ic
from
'./../view/panoramic
'
;
const
Routes
=
{
...
...
@@ -112,7 +112,7 @@ const Routes = {
// planDrill: PublishView,
modelManage
:
Graph3DModel
,
leaderStruct
:
LeaderStruct
,
panoram
a
:
Panorama
,
panoram
ic
:
Panoramic
,
};
const
pageCompontent
=
key
=>
{
...
...
src/services/panoramicService.js
0 → 100644
View file @
e08a4859
import
formatUrl
from
'amos-processor/lib/utils/urlFormat'
;
import
*
as
helper
from
'base-r3d/lib/utils/helper'
;
import
{
FscSerUrl
}
from
'./../consts/urlConsts'
;
import
{
commonGet
,
commonPost
}
from
'./../utils/request'
;
/**
* 今日安全指数
*/
export
const
safetyIndexAction
=
()
=>
{
return
commonGet
(
FscSerUrl
.
safetyIndexUrl
);
}
/**
* 今日安全指数详情
*/
export
const
safetyIndexDetailAction
=
(
type
)
=>
{
return
commonGet
(
formatUrl
(
FscSerUrl
.
safetyIndexDetailUrl
,{
type
}));
}
/**
* 告警列表最新5条
*/
export
const
safetyExecuteListAction
=
(
type
)
=>
{
return
commonGet
(
formatUrl
(
FscSerUrl
.
safetyExecuteListUrl
,{
type
}));
}
/**
* 设备状态消息最新5条
*/
export
const
equipStatusListAction
=
()
=>
{
return
commonGet
(
FscSerUrl
.
equipStatusListUrl
);
}
/**
* 一周安全指数趋势查询
*/
export
const
safetyIndexWeekAction
=
()
=>
{
return
commonGet
(
FscSerUrl
.
safetyIndexWeekUrl
);
}
/**
* 今日巡检统计接口
*/
export
const
statisticsCheckAction
=
()
=>
{
return
commonGet
(
FscSerUrl
.
statisticsCheckUrl
);
}
/**
* 今日值班统计
*/
export
const
statisticsDutyAction
=
()
=>
{
return
commonGet
(
FscSerUrl
.
statisticsDutyUrl
);
}
\ No newline at end of file
src/styles/view/index.scss
View file @
e08a4859
...
...
@@ -4,3 +4,4 @@
@import
'./region/index.scss'
;
@import
'./common/index.scss'
;
@import
'./planMgmt/index.scss'
;
@import
'./panoramic/index.scss'
;
src/styles/view/panoramic/index.scss
0 → 100644
View file @
e08a4859
@import
'./statistical.scss'
;
.sys-view-panoramic
{
position
:
absolute
;
top
:
42px
;
height
:
calc
(
100%
-
42px
);
width
:
100%
;
}
\ No newline at end of file
src/styles/view/panoramic/statistical.scss
0 → 100644
View file @
e08a4859
.statistical
{
position
:
absolute
;
height
:
100%
;
width
:
100%
;
.statistical-left
{
height
:
100%
;
width
:
350px
;
float
:
left
;
.equipStatusList
{
}
.safetyExecuteList
{
}
.safetyIndex
{
}
}
.statistical-right
{
height
:
100%
;
width
:
350px
;
float
:
right
;
.safetyIndexWeek
{
}
.statisticsCheck
{
}
.statisticsDuty
{
}
}
}
\ No newline at end of file
src/view/panoramic/index.js
0 → 100644
View file @
e08a4859
import
React
,
{
Component
}
from
'react'
;
import
Statistical
from
'./statistical'
/**
* 全景监控
*/
export
default
class
Panoramic
extends
Component
{
render
()
{
debugger
;
return
(
<
div
className
=
"sys-view-panoramic"
>
<
Statistical
/>
<
/div
>
);
}
}
src/view/panoramic/statistical/EquipStatusList.js
0 → 100644
View file @
e08a4859
import
React
,
{
Component
}
from
'react'
;
/**
* 设备状态消息
*/
export
default
class
EquipStatusList
extends
Component
{
render
()
{
console
.
log
(
'EquipStatusList'
)
return
(
<
div
className
=
"equipStatusList"
>
EquipStatusList
<
/div
>
);
}
}
src/view/
Panorama/index
.js
→
src/view/
panoramic/statistical/SafetyExecuteList
.js
View file @
e08a4859
import
React
,
{
Component
}
from
'react'
;
/**
*
全景监控
*
告警列表
*/
export
default
class
Panorama
extends
Component
{
export
default
class
SafetyExecuteList
extends
Component
{
render
()
{
return
<
div
>
111
<
/div>
;
console
.
log
(
'SafetyExecuteList'
)
return
<
div
className
=
"SafetyExecuteList"
>
SafetyExecuteList
<
/div>
;
}
}
src/view/panoramic/statistical/SafetyIndex.js
0 → 100644
View file @
e08a4859
import
React
,
{
Component
}
from
'react'
;
/**
* 今日安全指数
*/
export
default
class
SafetyIndex
extends
Component
{
render
()
{
console
.
log
(
'SafetyIndex'
)
return
<
div
className
=
"safetyIndex"
>
SafetyIndex
<
/div>
;
}
}
src/view/panoramic/statistical/SafetyIndexWeek.js
0 → 100644
View file @
e08a4859
import
React
,
{
Component
}
from
'react'
;
/**
* 一周安全指数
*/
export
default
class
SafetyIndexWeek
extends
Component
{
render
()
{
console
.
log
(
'SafetyIndexWeek'
)
return
<
div
className
=
"safetyIndexWeek"
>
SafetyIndexWeek
<
/div>
;
}
}
src/view/panoramic/statistical/StatisticsCheck.js
0 → 100644
View file @
e08a4859
import
React
,
{
Component
}
from
'react'
;
/**
* 今日巡检统计
*/
export
default
class
StatisticsCheck
extends
Component
{
render
()
{
console
.
log
(
'StatisticsCheck'
)
return
<
div
className
=
"statisticsCheck"
>
StatisticsCheck
<
/div>
;
}
}
src/view/panoramic/statistical/StatisticsDuty.js
0 → 100644
View file @
e08a4859
import
React
,
{
Component
}
from
'react'
;
/**
* 今日值班统计
*/
export
default
class
StatisticsDuty
extends
Component
{
render
()
{
console
.
log
(
'StatisticsDuty'
)
return
<
div
className
=
"statisticsDuty"
>
StatisticsDuty
<
/div>
;
}
}
src/view/panoramic/statistical/index.js
0 → 100644
View file @
e08a4859
import
React
,
{
Component
}
from
'react'
;
import
EquipStatusList
from
'./EquipStatusList'
;
import
SafetyExecuteList
from
'./SafetyExecuteList'
;
import
SafetyIndex
from
'./SafetyIndex'
;
import
SafetyIndexWeek
from
'./SafetyIndexWeek'
;
import
StatisticsCheck
from
'./StatisticsCheck'
;
import
StatisticsDuty
from
'./StatisticsDuty'
;
/**
* 全景监控统计
*/
export
default
class
Statistical
extends
Component
{
render
()
{
return
(
<
div
className
=
"statistical"
>
<
div
className
=
"statistical-left"
>
<
SafetyIndex
/>
<
SafetyExecuteList
/>
<
EquipStatusList
/>
<
/div
>
<
div
className
=
"statistical-right"
>
<
SafetyIndexWeek
/>
<
StatisticsCheck
/>
<
StatisticsDuty
/>
<
/div
>
<
/div
>
);
}
}
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