Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
Nei_Meng_An_Jian_4
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
Kimber
Nei_Meng_An_Jian_4
Commits
1f655da3
Commit
1f655da3
authored
Dec 08, 2021
by
liuyuping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'2021-12-8'
parent
04c53770
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
546 additions
and
402 deletions
+546
-402
index.html
public/index.html
+1
-1
operatePortrait.js
src/api/operatePortrait.js
+78
-0
bigdataLeft.vue
src/components/bigdata/bigdataLeft.vue
+224
-218
bigdataRight.vue
src/components/bigdata/bigdataRight.vue
+221
-166
potrait.vue
src/components/potrait/potrait.vue
+22
-17
No files found.
public/index.html
View file @
1f655da3
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<script
src=
"https://webapi.amap.com/maps?v=1.4.15&key=bfa930cbec820fc1c16f8f54348f98e3&plugin=Map3D,AMap.DistrictSearch,AMap.Geocoder,AMap.MouseTool,AMap.Autocomplete,AMap.PlaceSearch"
></script>
<script
src=
"https://webapi.amap.com/maps?v=1.4.15&key=bfa930cbec820fc1c16f8f54348f98e3&plugin=Map3D,AMap.DistrictSearch,AMap.Geocoder,AMap.MouseTool,AMap.Autocomplete,AMap.PlaceSearch"
></script>
<link
rel=
"stylesheet"
href=
"https://cdn
js.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min
.css"
/>
<link
rel=
"stylesheet"
href=
"https://cdn
.bootcdn.net/ajax/libs/animate.css/4.1.1/animate
.css"
/>
<script
src=
"https://cdn.bootcss.com/echarts/4.6.0/echarts.min.js"
></script>
<script
src=
"https://cdn.bootcss.com/echarts/4.6.0/echarts.min.js"
></script>
<script
src=
"https://www.thingjs.com/static/historyVersion/thing.min.js"
></script>
<script
src=
"https://www.thingjs.com/static/historyVersion/thing.min.js"
></script>
<script
src=
"https://www.thingjs.com/static/release/thing.widget.min.js"
></script>
<script
src=
"https://www.thingjs.com/static/release/thing.widget.min.js"
></script>
...
...
src/api/operatePortrait.js
View file @
1f655da3
...
@@ -29,3 +29,81 @@ export function analyzeAlarmNum(companycode) {
...
@@ -29,3 +29,81 @@ export function analyzeAlarmNum(companycode) {
}
}
})
})
}
}
export
function
analyzeHDNum
(
deptId
)
{
return
request5
({
url
:
'
/api/hiddenDanger/analyzeNum
'
,
method
:
'
get
'
,
params
:
{
deptId
}
})
}
export
function
sensorAlarmNum
(
deptId
)
{
return
request5
({
url
:
'
/api/sensor/analyzeAlarmNum
'
,
method
:
'
get
'
,
params
:
{
deptId
}
})
}
export
function
createInfoCard
(
deptId
)
{
return
request5
({
url
:
'
/api/alarm/createInfoCard
'
,
method
:
'
get
'
,
params
:
{
deptId
}
})
}
// 隐患趋势
export
function
analyzeOutputTrend
()
{
return
request5
({
url
:
'
/api/output/analyzeOutputTrend
'
,
method
:
'
get
'
})
}
// 重大安全隐患统计
export
function
analyzeEachMonthNum
(
level
)
{
return
request5
({
url
:
'
/api/hiddenDanger/analyzeEachMonthNum
'
,
method
:
'
get
'
,
params
:
{
level
}
})
}
// 企业- 分析各等级风险数量
export
function
analyzeEnterRiskNum
(
deptId
)
{
return
request5
({
url
:
'
/api/dept/analyzeEachRiskLevelNum
'
,
method
:
'
get
'
,
params
:
{
deptId
}
})
}
// 行业- 分析各等级风险数量
export
function
analyzeIndusRiskNum
(
detailId
)
{
return
request5
({
url
:
'
/api/dictDetail/analyzeEachRiskLevelNum
'
,
method
:
'
get
'
,
params
:
{
detailId
}
})
}
// 区域- 分析各等级风险数量
export
function
analyzeRegionRiskNum
()
{
return
request5
({
url
:
'
/api/areaRiskLevel/analyzeEachRiskLevelNum
'
,
method
:
'
get
'
})
}
src/components/bigdata/bigdataLeft.vue
View file @
1f655da3
This diff is collapsed.
Click to expand it.
src/components/bigdata/bigdataRight.vue
View file @
1f655da3
This diff is collapsed.
Click to expand it.
src/components/potrait/potrait.vue
View file @
1f655da3
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
monitorDevice
,
monitorData
,
analyzeAlarmNum
}
from
'
@/api/operatePortrait.js
'
import
{
monitorDevice
,
monitorData
,
analyzeAlarmNum
,
analyzeHDNum
}
from
'
@/api/operatePortrait.js
'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -99,22 +99,27 @@ export default {
...
@@ -99,22 +99,27 @@ export default {
},
},
async
mounted
()
{
async
mounted
()
{
console
.
log
(
this
.
$store
.
state
.
compony_info
.
companycode
,
'
this.$store.state.compony_info.companycode
'
)
console
.
log
(
this
.
$store
.
state
.
compony_info
.
companycode
,
'
this.$store.state.compony_info.companycode
'
)
// await monitorDevice(this.$store.state.compony_info.id).then(res => {
await
monitorDevice
(
this
.
$store
.
state
.
compony_info
.
id
).
then
(
res
=>
{
// this.offline = res.offlineNum + ''
this
.
offline
=
res
.
offlineNum
+
''
// this.online = res.onlineNum + ''
this
.
online
=
res
.
onlineNum
+
''
// this.deviceSum = res.totalNum + ''
this
.
deviceSum
=
res
.
totalNum
+
''
// })
})
// await monitorData(this.$store.state.compony_info.companycode).then(res => {
await
monitorData
(
this
.
$store
.
state
.
compony_info
.
companycode
).
then
(
res
=>
{
// this.monitorSum = (res.monitorStationNum? res.monitorStationNum: '0') + ''
this
.
monitorSum
=
(
res
.
monitorStationNum
?
res
.
monitorStationNum
:
'
0
'
)
+
''
// this.monitorData = (res.monitorDataNum? res.monitorDataNum : '0') + ''
this
.
monitorData
=
(
res
.
monitorDataNum
?
res
.
monitorDataNum
:
'
0
'
)
+
''
// this.alarmSum = (res.alarmNum? res.alarmNum : '0') + ''
this
.
alarmSum
=
(
res
.
alarmNum
?
res
.
alarmNum
:
'
0
'
)
+
''
// this.timeSum = (res.monitorDays? res.monitorDays : '0') + ''
this
.
timeSum
=
(
res
.
monitorDays
?
res
.
monitorDays
:
'
0
'
)
+
''
// })
})
// await analyzeAlarmNum(this.$store.state.compony_info.companycode).then(res => {
await
analyzeAlarmNum
(
this
.
$store
.
state
.
compony_info
.
companycode
).
then
(
res
=>
{
// this.lowRisk = (res.yellowNum? res.yellowNum : '0') + ''
this
.
lowRisk
=
(
res
.
yellowNum
?
res
.
yellowNum
:
'
0
'
)
+
''
// this.generalRisk = (res.orangeNum? res.orangeNum : '0') + ''
this
.
generalRisk
=
(
res
.
orangeNum
?
res
.
orangeNum
:
'
0
'
)
+
''
// this.greaterRisk = (res.redNum? res.redNum : '0') + ''
this
.
greaterRisk
=
(
res
.
redNum
?
res
.
redNum
:
'
0
'
)
+
''
// })
})
await
analyzeHDNum
(
this
.
$store
.
state
.
compony_info
.
id
).
then
(
res
=>
{
console
.
log
(
res
,
'
analyzeHDNum analyzeHDNum
'
)
this
.
noCloseLoop
=
res
.
seriousNotRectifiedNum
this
.
closeLoop
=
res
.
seriousRectifiedNum
})
this
.
mineMethod
=
this
.
$store
.
state
.
compony_info
.
mine
this
.
mineMethod
=
this
.
$store
.
state
.
compony_info
.
mine
this
.
area
=
this
.
$store
.
state
.
compony_info
.
area
this
.
area
=
this
.
$store
.
state
.
compony_info
.
area
this
.
yields
=
this
.
$store
.
state
.
compony_info
.
capacity
this
.
yields
=
this
.
$store
.
state
.
compony_info
.
capacity
...
...
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