Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
oEshield
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 a806727f
authored
Mar 27, 2024
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
5323cfba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
62 deletions
src/pages/monitor/ParCharts.vue
src/pages/monitor/alarmAnalysis.vue
src/pages/monitor/ParCharts.vue
View file @
a806727
...
@@ -125,16 +125,22 @@ export default {
...
@@ -125,16 +125,22 @@ export default {
if
(
!
storedList
.
length
)
{
if
(
!
storedList
.
length
)
{
return
`无警情\n{b|
${
value
}
}`
;
return
`无警情\n{b|
${
value
}
}`
;
}
else
{
}
else
{
return
`
${
storedList
[
0
].
alarmLevel
/
1
}
级
警情\n{b|
${
value
}
}`
;
return
`
{a|
${
storedList
[
0
].
alarmLevel
/
1
}
级}\n
警情\n{b|
${
value
}
}`
;
}
}
},
},
rich
:
{
rich
:
{
a
:
{
fontSize
:
30
,
color
:
'#ffffff'
,
fontweight
:
'bold'
,
},
b
:
{
b
:
{
color
:
pointerData
>
0
?
'#F38906'
:
'#4ED5D7'
color
:
pointerData
>
0
?
'#F38906'
:
'#4ED5D7'
,
fontSize
:
14
,
}
}
},
},
textStyle
:
{
textStyle
:
{
fontSize
:
1
2
,
fontSize
:
1
8
,
color
:
'#ffffff'
,
color
:
'#ffffff'
,
top
:
'80%'
,
top
:
'80%'
,
},
},
...
...
src/pages/monitor/alarmAnalysis.vue
View file @
a806727
<
template
>
<
template
>
<div
class=
"main-container"
>
<div
class=
"main-container"
>
<div
id=
"
m
ap"
class=
"map-container"
></div>
<div
id=
"
alarmM
ap"
class=
"map-container"
></div>
<div
class=
"left-box"
>
<div
class=
"left-box"
v-show=
"boxShow"
>
<!-- 饼图组件 -->
<!-- 饼图组件 -->
<ParCharts
class=
"pie"
ref=
"pieChartsRef"
id=
"pie-chart"
height=
"250px"
:list=
"pieList"
/>
<ParCharts
class=
"pie"
ref=
"pieChartsRef"
id=
"pie-chart"
height=
"250px"
:list=
"pieList"
/>
<!-- 风险分析 -->
<!-- 风险分析 -->
...
@@ -65,7 +65,7 @@
...
@@ -65,7 +65,7 @@
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"right-box"
>
<div
class=
"right-box"
v-show=
"boxShow"
>
<!-- 基本信息 -->
<!-- 基本信息 -->
<div
class=
"detail-box"
>
<div
class=
"detail-box"
>
<div
class=
"title"
>
基本信息
</div>
<div
class=
"title"
>
基本信息
</div>
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
<!-- <div class="detail-msg-desc"> {{ basicData.deviceInformationVOList ?
<!-- <div class="detail-msg-desc"> {{ basicData.deviceInformationVOList ?
basicData.deviceInformationVOList[0].deviceStateStr : '-' }}</div> -->
basicData.deviceInformationVOList[0].deviceStateStr : '-' }}</div> -->
<
template
v-if=
"basicData.deviceInformationVOList.length"
>
<
template
v-if=
"basicData.deviceInformationVOList.length"
>
<div>
<div
class=
"detail-msg-right"
>
<div
class=
"detail-msg-desc"
v-for=
"item in basicData.deviceInformationVOList"
>
<div
class=
"detail-msg-desc"
v-for=
"item in basicData.deviceInformationVOList"
>
<div>
{{
item
.
sourceStr
}}
-
{{
item
.
sn
}}
</div>
<div>
{{
item
.
sourceStr
}}
-
{{
item
.
sn
}}
</div>
<div
v-show=
"item.deviceStateStr"
>
{{
item
.
deviceStateStr
}}
</div>
<div
v-show=
"item.deviceStateStr"
>
{{
item
.
deviceStateStr
}}
</div>
...
@@ -161,24 +161,18 @@ export default {
...
@@ -161,24 +161,18 @@ export default {
xAxisDataList
:
[],
xAxisDataList
:
[],
pieList
:
[],
pieList
:
[],
resultList
:
[],
resultList
:
[],
linetype
:
1
linetype
:
1
,
boxShow
:
false
};
};
},
},
crea
ted
()
{
moun
ted
()
{
let
_this
=
this
;
let
_this
=
this
;
const
_vehicleId
=
_this
.
$route
.
query
.
vehicleId
const
_vehicleId
=
_this
.
$route
.
query
.
vehicleId
this
.
vehicleId
=
_vehicleId
this
.
vehicleId
=
_vehicleId
_this
.
getBasicInformation
(
_vehicleId
)
_this
.
getResidentInformation
(
_vehicleId
)
_this
.
getAlarmInformation
(
_vehicleId
)
_this
.
getUserBehaviorInformation
(
_vehicleId
)
_this
.
$mapInit
({
version
:
'1.4.2'
}).
then
(
AMap
=>
{
_this
.
$mapInit
({
version
:
'1.4.2'
}).
then
(
AMap
=>
{
window
.
AMap
=
AMap
;
window
.
AMap
=
AMap
;
_this
.
initMap
();
_this
.
initMap
();
// setTimeout(() => {
// _this.getStayPointList(_vehicleId)
// })
})
})
},
},
...
@@ -193,9 +187,16 @@ export default {
...
@@ -193,9 +187,16 @@ export default {
!
this
.
mapObj
!
this
.
mapObj
)
{
)
{
window
.
AMap
=
AMap
;
window
.
AMap
=
AMap
;
this
.
mapObj
=
mapService
.
init
(
"
m
ap"
);
this
.
mapObj
=
mapService
.
init
(
"
alarmM
ap"
);
this
.
isInitMap
=
true
;
this
.
isInitMap
=
true
;
this
.
$nextTick
(()
=>
{
this
.
boxShow
=
true
this
.
getStayPointList
(
this
.
vehicleId
)
this
.
getStayPointList
(
this
.
vehicleId
)
this
.
getBasicInformation
(
this
.
vehicleId
)
this
.
getResidentInformation
(
this
.
vehicleId
)
this
.
getAlarmInformation
(
this
.
vehicleId
)
this
.
getUserBehaviorInformation
(
this
.
vehicleId
)
},
500
)
}
else
{
}
else
{
this
.
checkMapLoaded
=
check
();
this
.
checkMapLoaded
=
check
();
}
}
...
@@ -214,51 +215,7 @@ export default {
...
@@ -214,51 +215,7 @@ export default {
})
})
return
return
}
}
// let _data = [
let
_data
=
res
.
data
||
[]
// {
// workOrderNo: "PAGL-2730216-2022ZLTJ100331902-ZL-01-0630143536375",
// ownerName: "岳**",
// sn: "15204130097",
// standno: "L6T7*********1722",
// shopName: "无锡拓炎汽车服务有限公司",
// beginTime: "2024-03-19 10:59:56",
// endTime: "2024-03-19 16:27:53",
// duration: "05 时 27 分 57 秒",
// locationType: "GPS",
// elat: "41.652284",
// elng: "117.066791",
// address: '江苏省无锡市滨湖区蠡湖大道1800号'
// },
// {
// workOrderNo: "PAGL-2730216-2022ZLTJ100331902-ZL-01-0630143536375",
// ownerName: "岳**",
// sn: "15204130097",
// standno: "L6T7*********1722",
// shopName: "无锡拓炎汽车服务有限公司",
// beginTime: "2024-03-19 09:43:51",
// endTime: "2024-03-19 10:32:26",
// duration: "48 分 35 秒",
// locationType: "GPS",
// elat: "41.579062",
// elng: "117.107705",
// address: '江苏省无锡市滨湖区蠡湖大道1800号'
// },
// {
// workOrderNo: "PAGL-2730216-2022ZLTJ100331902-ZL-01-0630143536375",
// ownerName: "岳**",
// sn: "15204130097",
// standno: "L6T7*********1722",
// shopName: "无锡拓炎汽车服务有限公司",
// beginTime: "2024-03-18 09:24:30",
// endTime: "2024-03-18 12:25:22",
// duration: "03 时 00 分 52 秒",
// locationType: "GPS",
// elat: "41.330770",
// elng: "117.731553",
// address: '江苏省无锡市滨湖区蠡湖大道1800号'
// }
// ]
let
_data
=
res
.
data
if
(
!
_data
.
length
)
{
if
(
!
_data
.
length
)
{
this
.
$message
({
this
.
$message
({
type
:
"info"
,
type
:
"info"
,
...
...
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