Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 54918f9b
authored
Dec 29, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.28.1' into 'master'
V1.28.1 See merge request
!59
2 parents
0735ef43
7f1d22ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
5 deletions
src/services/home.js
src/views/home/index.vue
src/services/home.js
View file @
54918f9
...
...
@@ -23,4 +23,9 @@ export const GET_HOME_AUTHUSERORG = (params) => {
// 首页-数据看板-总绑定数图表
export
const
GET_HOME_NEWBINDDEVICEINFO
=
(
params
)
=>
{
return
request
(
params
,
"/trialdrive/home/getnewbinddeviceinfo"
);
};
\ No newline at end of file
};
// 首页-数据看板-获取围栏报警数量
export
const
GET_FENCE_ALARM
=
(
params
)
=>
{
return
request
(
params
,
"/alarmcenternew/fencealarm/getFenceAlarmCount"
);
};
src/views/home/index.vue
View file @
54918f9
...
...
@@ -173,12 +173,22 @@
<div
class=
"alarm_list"
>
<!-- 防拆报警 开始 -->
<div
class=
"cell"
@
click=
"linkToPage('/trialRun#/alarmCenter/fence')"
>
<div
class=
"title"
>
<img
src=
"@/assets/images/enclosureicon.png"
/>
<span>
围栏报警
</span>
</div>
<div
class=
"num"
>
{{
fenceAlarmCount
||
0
}}
</div>
</div>
<!-- 防拆报警 end -->
<!-- 防拆报警 开始 -->
<div
class=
"cell"
@
click=
"linkToPage('/trialRun#/alarmCenter/tamper')"
>
<div
class=
"title"
>
<img
src=
"@/assets/images/stopicon.png"
/>
<span>
防拆报警
</span>
</div>
<div
class=
"num"
>
{{
alarmInfo
.
tearDownAlarmCount
}}
</div>
<div
class=
"num"
>
{{
alarmInfo
.
tearDownAlarmCount
||
0
}}
</div>
</div>
<!-- 防拆报警 end -->
...
...
@@ -188,7 +198,7 @@
<img
src=
"@/assets/images/off-lineicon.png"
/>
<span>
离线预警
</span>
</div>
<div
class=
"num"
>
{{
alarmInfo
.
offLineAlarmCount
}}
</div>
<div
class=
"num"
>
{{
alarmInfo
.
offLineAlarmCount
||
0
}}
</div>
</div>
<!-- 离线预警 end -->
...
...
@@ -198,7 +208,7 @@
<img
src=
"@/assets/images/equipmenticon.png"
/>
<span>
大数据研判警情
</span>
</div>
<div
class=
"num"
>
{{
alarmInfo
.
stuJudgeAlarmCount
}}
</div>
<div
class=
"num"
>
{{
alarmInfo
.
stuJudgeAlarmCount
||
0
}}
</div>
</div>
<!-- 大数据研判警情 end -->
...
...
@@ -232,6 +242,7 @@ import {
GET_HOME_ACTIVEDEVICEINFO
,
GET_HOME_AUTHUSERORG
,
GET_HOME_NEWBINDDEVICEINFO
,
GET_FENCE_ALARM
}
from
"@/services/home"
;
//import chartConfig from "@/chart/chartConfig.js";
import
*
as
echarts
from
"echarts/core"
;
...
...
@@ -269,11 +280,13 @@ export default {
staticInfo
:
{},
alarmInfo
:
{},
isZhongli
:
false
,
maskFlag
:
true
maskFlag
:
true
,
fenceAlarmCount
:
0
};
},
mounted
()
{
this
.
getAlarm
();
this
.
getFenceAlarm
()
this
.
getActived
(
this
.
createActivedLineChart
);
this
.
getActived
(
this
.
createAllActivedLineChart
,
11
);
this
.
getBindEchart
();
...
...
@@ -626,6 +639,15 @@ export default {
openAreaCar
(){
let
_path
=
'oEshield#/monitor/zoneCar?type=full'
window
.
open
(
_path
)
},
// 获取围栏报警数量
getFenceAlarm
(){
GET_FENCE_ALARM
().
then
(
res
=>
{
console
.
log
(
res
)
let
_obj
=
res
.
data
||
{};
this
.
fenceAlarmCount
=
_obj
.
fenceAlarmCount
||
0
})
}
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment