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 0d1f8894
authored
Aug 12, 2026
by
前端
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v1.99' into 'master'
上线合并 See merge request
!55
2 parents
5f4a7c52
4315ff61
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
98 additions
and
16 deletions
src/pages/monitor/alarmAnalysis.vue
src/pages/monitor/detail/index.vue
src/pages/monitor/zoneCar.vue
src/utils/mapBService.js
src/utils/mapService.js
src/pages/monitor/alarmAnalysis.vue
View file @
0d1f889
<!--
<!--
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2024-11-28 16:37:15
* @Date: 2024-11-28 16:37:15
* @LastEditors:
'wangzhihui' '1733904062@qq.com'
* @LastEditors:
limin
* @LastEditTime: 202
4-12-30 15:11:15
* @LastEditTime: 202
6-07-16 15:09:26
* @FilePath: \oEshield\src\pages\monitor\alarmAnalysis.vue
* @FilePath: \oEshield\src\pages\monitor\alarmAnalysis.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -95,10 +95,14 @@
...
@@ -95,10 +95,14 @@
<div
class=
"use-car-box"
>
<div
class=
"use-car-box"
>
<div
class=
"title"
>
<div
class=
"title"
>
用车行为分析
用车行为分析
<div
<
!-- <
div
class="detail-btn"
class="detail-btn"
v-if="pieList && pieList.length"
v-if="pieList && pieList.length"
@click="goDetailPage()"
@click="goDetailPage()"
> -->
<div
class=
"detail-btn"
@
click=
"goDetailPage()"
>
>
风险评估详情
风险评估详情
</div>
</div>
...
...
src/pages/monitor/detail/index.vue
View file @
0d1f889
...
@@ -10,14 +10,26 @@
...
@@ -10,14 +10,26 @@
</div>
</div>
<div
class=
"main pie-main"
>
<div
class=
"main pie-main"
>
<glsx-image
class=
"bg-img"
src=
"detail-bg.png"
/>
<glsx-image
class=
"bg-img"
src=
"detail-bg.png"
/>
<div
class=
"pie-ctnr"
>
<ParCharts
class=
"pie-wrap"
ref=
"pieChartsRef"
:configObj=
"configObj"
id=
"pie-chart"
height=
"220px"
:list=
"pieList"
/>
<ParCharts
class=
"pie-wrap"
ref=
"pieChartsRef"
:configObj=
"configObj"
id=
"pie-chart"
height=
"220px"
:list=
"pieList"
/>
<div
class=
"pie-empty"
v-if=
"!pieList.length"
>
<glsx-image
class=
"img"
src=
"empty-data.png"
/>
<span
class=
"tip"
>
暂无风险评估数据
</span>
</div>
</div>
<div
class=
"analyze-wrap"
>
<div
class=
"analyze-wrap"
>
<div
class=
"analyze-empty"
v-if=
"showAnalyzeEmpty"
>
<glsx-image
class=
"img"
src=
"empty-data.png"
/>
<span
class=
"tip"
>
暂无状态/预警/用量分析建议
</span>
</div>
<template
v-else
>
<div
class=
"info-item"
v-for=
"(item, index) in analyzeInfoList"
:key=
"index"
>
<div
class=
"info-item"
v-for=
"(item, index) in analyzeInfoList"
:key=
"index"
>
<label
class=
"label"
for=
""
>
{{
item
}}
</label>
<label
class=
"label"
for=
""
>
{{
item
}}
</label>
:
:
<span
class=
"value"
v-if=
"item == '用量分析'"
>
{{
dosageInfo
.
tips
}}
</span>
<span
class=
"value"
v-if=
"item == '用量分析'"
>
{{
dosageInfo
&&
dosageInfo
.
tips
?
dosageInfo
.
tips
:
'暂无数据'
}}
</span>
<span
class=
"value"
v-else
>
{{
pieList
.
length
?
pieList
[
0
].
advise
:
'--
'
}}
</span>
<span
class=
"value"
v-else
>
{{
pieList
[
0
]
&&
pieList
[
0
].
advise
?
pieList
[
0
].
advise
:
'暂无数据
'
}}
</span>
</div>
</div>
</
template
>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -258,6 +270,13 @@ export default {
...
@@ -258,6 +270,13 @@ export default {
]
]
}
}
},
},
computed
:
{
showAnalyzeEmpty
()
{
const
hasPieAdvise
=
!!
(
this
.
pieList
&&
this
.
pieList
[
0
]
&&
this
.
pieList
[
0
].
advise
)
const
hasDosageTips
=
!!
(
this
.
dosageInfo
&&
this
.
dosageInfo
.
tips
)
return
!
hasPieAdvise
&&
!
hasDosageTips
}
},
mounted
()
{},
mounted
()
{},
created
()
{
created
()
{
this
.
pageQuery
=
this
.
$route
.
query
this
.
pageQuery
=
this
.
$route
.
query
...
@@ -915,17 +934,61 @@ export default {
...
@@ -915,17 +934,61 @@ export default {
height
:
259px
;
height
:
259px
;
top
:
20px
;
top
:
20px
;
}
}
.pie-ctnr
{
width
:
300px
;
height
:
270px
;
position
:
relative
;
flex-shrink
:
0
;
}
.pie-wrap
{
.pie-wrap
{
width
:
300px
;
width
:
300px
;
height
:
270px
;
height
:
270px
;
background
:
#fff
;
background
:
#fff
;
}
}
.pie-empty
{
position
:
absolute
;
top
:
0
;
left
:
0
;
right
:
0
;
bottom
:
0
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
flex-direction
:
column
;
background
:
rgba
(
255
,
255
,
255
,
0.92
);
/deep/
.img{
width
:
86px
;
height
:
86px
;
}
.tip
{
font-weight
:
400
;
font-size
:
14px
;
color
:
#999999
;
}
}
.analyze-wrap
{
.analyze-wrap
{
margin-left
:
55px
;
margin-left
:
55px
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
left
;
align-items
:
left
;
flex-direction
:
column
;
flex-direction
:
column
;
.analyze-empty
{
width
:
100%
;
min-height
:
176px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
flex-direction
:
column
;
/deep/
.img{
width
:
86px
;
height
:
86px
;
}
.tip
{
font-weight
:
400
;
font-size
:
14px
;
color
:
#999999
;
}
}
}
}
}
}
.base-info-main
{
.base-info-main
{
...
...
src/pages/monitor/zoneCar.vue
View file @
0d1f889
...
@@ -210,6 +210,7 @@ export default {
...
@@ -210,6 +210,7 @@ export default {
{
field
:
"vin"
,
title
:
"车架号"
},
{
field
:
"vin"
,
title
:
"车架号"
},
{
field
:
"sn"
,
title
:
"设备号"
},
{
field
:
"sn"
,
title
:
"设备号"
},
{
field
:
"sourceStr"
,
title
:
"设备类型"
},
{
field
:
"sourceStr"
,
title
:
"设备类型"
},
{
field
:
"deviceStateStr"
,
title
:
"设备状态"
},
{
field
:
"activeDate"
,
title
:
"激活时间"
},
{
field
:
"activeDate"
,
title
:
"激活时间"
},
{
field
:
"finalGpsTime"
,
title
:
"最后GPS定位时间"
},
{
field
:
"finalGpsTime"
,
title
:
"最后GPS定位时间"
},
{
field
:
"finalGpsAddress"
,
title
:
"最后GPS定位地址"
,
width
:
"300px"
},
{
field
:
"finalGpsAddress"
,
title
:
"最后GPS定位地址"
,
width
:
"300px"
},
...
@@ -317,12 +318,22 @@ export default {
...
@@ -317,12 +318,22 @@ export default {
"drawingManagerAddEventListener"
,
"drawingManagerAddEventListener"
,
"rectanglecomplete"
,
"rectanglecomplete"
,
function
(
e
)
{
function
(
e
)
{
console
.
log
(
e
);
_this
.
rectangle
=
e
;
_this
.
rectangle
=
e
;
let
bounds
=
e
.
getBounds
();
let
bounds
=
e
.
getBounds
();
_this
.
calculateWidthHeight
(
bounds
);
_this
.
calculateWidthHeight
(
bounds
);
// 恢复地图拖动/滚轮
mapService
.
mapInstance
.
enableDragging
();
}
);
MAP
.
invoke
(
"drawingManagerAddEventListener"
,
"overlaycancel"
,
function
(
e
)
{
mapService
.
mapInstance
.
enableDragging
();
}
}
);
);
// 绘制期间禁用地图拖动/滚轮,避免冲突
mapService
.
mapInstance
.
disableDragging
();
MAP
.
invoke
(
"setDrawingMode"
,
"rectangle"
);
MAP
.
invoke
(
"setDrawingMode"
,
"rectangle"
);
// if (_this.mouseTool) {
// if (_this.mouseTool) {
// _this.mouseTool.rectangle({
// _this.mouseTool.rectangle({
...
@@ -623,7 +634,7 @@ export default {
...
@@ -623,7 +634,7 @@ export default {
_this
.
goFullPage
();
_this
.
goFullPage
();
return
false
;
return
false
;
}
}
try
{
_this
.
loading
=
true
;
_this
.
loading
=
true
;
delete
params
.
paths
;
delete
params
.
paths
;
let
left
=
await
this
.
convertCoordinate
(
params
.
leftLngLat
);
let
left
=
await
this
.
convertCoordinate
(
params
.
leftLngLat
);
...
@@ -631,7 +642,6 @@ export default {
...
@@ -631,7 +642,6 @@ export default {
params
.
leftLngLat
=
`
${
left
.
lng
}
,
${
left
.
lat
}
`
;
params
.
leftLngLat
=
`
${
left
.
lng
}
,
${
left
.
lat
}
`
;
params
.
rightLngLat
=
`
${
right
.
lng
}
,
${
right
.
lat
}
`
;
params
.
rightLngLat
=
`
${
right
.
lng
}
,
${
right
.
lat
}
`
;
let
res
=
await
GER_REGIONAL_SEARCH
(
params
);
let
res
=
await
GER_REGIONAL_SEARCH
(
params
);
console
.
log
(
res
,
"res"
);
_this
.
loading
=
false
;
_this
.
loading
=
false
;
if
(
res
.
code
!=
200
)
{
if
(
res
.
code
!=
200
)
{
showToast
({
showToast
({
...
@@ -643,6 +653,11 @@ export default {
...
@@ -643,6 +653,11 @@ export default {
_this
.
deviceList
=
list
;
_this
.
deviceList
=
list
;
_this
.
hideFooter
=
false
;
_this
.
hideFooter
=
false
;
_this
.
addMarkers
(
list
,
true
);
_this
.
addMarkers
(
list
,
true
);
}
catch
(
error
)
{
console
.
log
(
error
);
}
finally
{
_this
.
loading
=
false
;
}
},
},
// 在地图上画行政区域
// 在地图上画行政区域
...
...
src/utils/mapBService.js
View file @
0d1f889
/*
/*
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Author: 'wangzhihui' '1733904062@qq.com'
* @Date: 2024-12-06 14:10:32
* @Date: 2024-12-06 14:10:32
* @LastEditors:
'wangzhihui' '1733904062@qq.com'
* @LastEditors:
limin
* @LastEditTime: 202
5-01-16 11:18:23
* @LastEditTime: 202
6-07-17 10:15:15
* @FilePath: \oEshield\src\utils\mapBService.js
* @FilePath: \oEshield\src\utils\mapBService.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
*/
...
@@ -511,9 +511,9 @@ MapService.prototype = {
...
@@ -511,9 +511,9 @@ MapService.prototype = {
// 跳转到风险评估页面 无线设备不显示按钮 info.deviceCompose=010/020/011/012/013/022,需要有风险评估按钮出现
// 跳转到风险评估页面 无线设备不显示按钮 info.deviceCompose=010/020/011/012/013/022,需要有风险评估按钮出现
let
riskBtn
=
infoDiv
.
querySelector
(
'[data-risk]'
);
let
riskBtn
=
infoDiv
.
querySelector
(
'[data-risk]'
);
if
(
riskBtn
)
{
if
(
riskBtn
)
{
if
(
info
.
deviceCompose
!=
'010'
&&
info
.
deviceCompose
!=
'020'
&&
info
.
deviceCompose
!=
'011'
&&
info
.
deviceCompose
!=
'012'
&&
info
.
deviceCompose
!=
'013'
&&
info
.
deviceCompose
!=
'022'
)
{
//
if (info.deviceCompose != '010' && info.deviceCompose != '020' && info.deviceCompose != '011' && info.deviceCompose != '012' && info.deviceCompose != '013' && info.deviceCompose != '022') {
riskBtn
.
classList
.
add
(
'resident_btn_hidden'
);
//
riskBtn.classList.add('resident_btn_hidden');
}
//
}
riskBtn
.
onclick
=
function
()
{
riskBtn
.
onclick
=
function
()
{
let
id
=
localStorage
.
getItem
(
'vehicleId'
);
let
id
=
localStorage
.
getItem
(
'vehicleId'
);
queryCode
=
`vehicleId=
${
id
}
`
queryCode
=
`vehicleId=
${
id
}
`
...
...
src/utils/mapService.js
View file @
0d1f889
...
@@ -531,9 +531,9 @@ MapService.prototype = {
...
@@ -531,9 +531,9 @@ MapService.prototype = {
// 跳转到风险评估页面 无线设备不显示按钮 info.deviceCompose=010/020/011/012/013/022,需要有风险评估按钮出现
// 跳转到风险评估页面 无线设备不显示按钮 info.deviceCompose=010/020/011/012/013/022,需要有风险评估按钮出现
let
riskBtn
=
infoDiv
.
querySelector
(
'[data-risk]'
);
let
riskBtn
=
infoDiv
.
querySelector
(
'[data-risk]'
);
if
(
riskBtn
)
{
if
(
riskBtn
)
{
if
(
info
.
deviceCompose
!=
'010'
&&
info
.
deviceCompose
!=
'020'
&&
info
.
deviceCompose
!=
'011'
&&
info
.
deviceCompose
!=
'012'
&&
info
.
deviceCompose
!=
'013'
&&
info
.
deviceCompose
!=
'022'
)
{
//
if (info.deviceCompose != '010' && info.deviceCompose != '020' && info.deviceCompose != '011' && info.deviceCompose != '012' && info.deviceCompose != '013' && info.deviceCompose != '022') {
riskBtn
.
classList
.
add
(
'resident_btn_hidden'
);
//
riskBtn.classList.add('resident_btn_hidden');
}
//
}
riskBtn
.
onclick
=
function
()
{
riskBtn
.
onclick
=
function
()
{
let
id
=
localStorage
.
getItem
(
'vehicleId'
);
let
id
=
localStorage
.
getItem
(
'vehicleId'
);
queryCode
=
`vehicleId=
${
id
}
`
queryCode
=
`vehicleId=
${
id
}
`
...
...
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