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 f8db0749
authored
Mar 26, 2024
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
386a12e4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
18 deletions
src/pages/monitor/alarmAnalysis.vue
src/pages/monitor/monitor.vue
src/utils/mapService.js
src/pages/monitor/alarmAnalysis.vue
View file @
f8db074
<
template
>
<
template
>
<div
class=
"main-container"
>
<div
class=
"main-container"
>
<div
id=
"map"
class=
"map-container"
></div>
<div
id=
"map"
class=
"map-container"
></div>
<div
class=
"left-box"
>
<!-- 饼图组件 -->
<!-- 饼图组件 -->
<ParCharts
class=
"pie"
ref=
"pieChartsRef"
id=
"pie-chart"
height=
"250px"
:list=
"pieList"
/>
<ParCharts
class=
"pie"
ref=
"pieChartsRef"
id=
"pie-chart"
height=
"250px"
:list=
"pieList"
/>
<!-- 风险分析 -->
<!-- 风险分析 -->
...
@@ -63,6 +64,8 @@
...
@@ -63,6 +64,8 @@
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div
class=
"right-box"
>
<!-- 基本信息 -->
<!-- 基本信息 -->
<div
class=
"detail-box"
>
<div
class=
"detail-box"
>
<div
class=
"title"
>
基本信息
</div>
<div
class=
"title"
>
基本信息
</div>
...
@@ -122,6 +125,7 @@
...
@@ -122,6 +125,7 @@
<div>
暂无里程数据
</div>
<div>
暂无里程数据
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 热力图 -->
<!-- 热力图 -->
<div
class=
"hot-box"
>
“历史停留”热力图
</div>
<div
class=
"hot-box"
>
“历史停留”热力图
</div>
</div>
</div>
...
@@ -164,6 +168,7 @@ export default {
...
@@ -164,6 +168,7 @@ export default {
created
()
{
created
()
{
let
_this
=
this
;
let
_this
=
this
;
const
_vehicleId
=
_this
.
$route
.
query
.
vehicleId
const
_vehicleId
=
_this
.
$route
.
query
.
vehicleId
this
.
vehicleId
=
_vehicleId
_this
.
getBasicInformation
(
_vehicleId
)
_this
.
getBasicInformation
(
_vehicleId
)
_this
.
getResidentInformation
(
_vehicleId
)
_this
.
getResidentInformation
(
_vehicleId
)
_this
.
getAlarmInformation
(
_vehicleId
)
_this
.
getAlarmInformation
(
_vehicleId
)
...
@@ -171,9 +176,9 @@ export default {
...
@@ -171,9 +176,9 @@ export default {
_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
(()
=>
{
//
setTimeout(() => {
_this
.
getStayPointList
(
_vehicleId
)
//
_this.getStayPointList(_vehicleId)
})
//
})
})
})
},
},
...
@@ -191,6 +196,7 @@ export default {
...
@@ -191,6 +196,7 @@ export default {
this
.
mapObj
=
mapService
.
init
(
"map"
);
this
.
mapObj
=
mapService
.
init
(
"map"
);
//this.bindEvent();
//this.bindEvent();
this
.
isInitMap
=
true
;
this
.
isInitMap
=
true
;
this
.
getStayPointList
(
this
.
vehicleId
)
// this.drawPoi()
// this.drawPoi()
}
else
{
}
else
{
this
.
checkMapLoaded
=
check
();
this
.
checkMapLoaded
=
check
();
...
@@ -385,10 +391,14 @@ export default {
...
@@ -385,10 +391,14 @@ export default {
padding: 0; */
padding: 0; */
}
}
.
pie
{
.
left-box
{
position
:
absolute
;
position
:
absolute
;
top
:
40px
;
top
:
40px
;
left
:
40px
;
left
:
40px
;
z-index
:
9999
;
}
.pie
{
width
:
340px
;
width
:
340px
;
height
:
299px
;
height
:
299px
;
background
:
#181C36
;
background
:
#181C36
;
...
@@ -397,9 +407,7 @@ export default {
...
@@ -397,9 +407,7 @@ export default {
}
}
.analy-box
{
.analy-box
{
position
:
absolute
;
margin-top
:
16px
;
bottom
:
40px
;
left
:
40px
;
width
:
340px
;
width
:
340px
;
background
:
#181C36
;
background
:
#181C36
;
box-shadow
:
0
4px
6px
0
#00000014
;
box-shadow
:
0
4px
6px
0
#00000014
;
...
@@ -549,10 +557,14 @@ export default {
...
@@ -549,10 +557,14 @@ export default {
}
}
.
detail
-box
{
.
right
-box
{
position
:
absolute
;
position
:
absolute
;
top
:
40px
;
top
:
40px
;
right
:
40px
;
right
:
40px
;
z-index
:
9999
;
}
.detail-box
{
width
:
340px
;
width
:
340px
;
background
:
#181C36
;
background
:
#181C36
;
box-shadow
:
0
4px
6px
0
#00000014
;
box-shadow
:
0
4px
6px
0
#00000014
;
...
@@ -580,8 +592,9 @@ export default {
...
@@ -580,8 +592,9 @@ export default {
}
}
&
-right
{
&
-right
{
flex
:
1
;
color
:
#E5E5E8
;
color
:
#E5E5E8
;
text-align
:
righ
t
;
text-align
:
lef
t
;
}
}
&
-desc
{
&
-desc
{
...
@@ -591,9 +604,7 @@ export default {
...
@@ -591,9 +604,7 @@ export default {
}
}
.use-car-box
{
.use-car-box
{
position
:
absolute
;
margin-top
:
16px
;
bottom
:
40px
;
right
:
40px
;
width
:
340px
;
width
:
340px
;
height
:
264px
;
height
:
264px
;
background
:
#181C36
;
background
:
#181C36
;
...
@@ -643,5 +654,4 @@ export default {
...
@@ -643,5 +654,4 @@ export default {
.line-charts
{
.line-charts
{
padding-left
:
10px
;
padding-left
:
10px
;
}
</
style
>
\ No newline at end of file
\ No newline at end of file
}
</
style
>
\ No newline at end of file
\ No newline at end of file
src/pages/monitor/monitor.vue
View file @
f8db074
...
@@ -446,7 +446,8 @@ export default {
...
@@ -446,7 +446,8 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
loadingMore
:
false
,
loadingMore
:
false
,
placeholderText
:
"请输入6位以上车架号"
,
placeholderText
:
"请输入6位以上车架号"
,
vidCode
:
undefined
vidCode
:
undefined
,
sourceType
:
0
};
};
},
},
computed
:
{
computed
:
{
...
@@ -937,6 +938,12 @@ export default {
...
@@ -937,6 +938,12 @@ export default {
if
(
!
list
||
list
.
length
<=
0
)
{
if
(
!
list
||
list
.
length
<=
0
)
{
return
false
;
return
false
;
}
}
// 跳转到风险评估页面获取有线设备还是无线设备还是两者结合
// 有线设备或者有线+无线组合都正常展示按钮sourceType-1,否则就是0
// let sourceType = 0
list
.
forEach
(
item
=>
{
if
(
item
.
source
==
'有线'
)
this
.
sourceType
=
1
})
this
.
vidCode
=
list
[
0
].
vid
;
this
.
vidCode
=
list
[
0
].
vid
;
for
(
var
i
=
0
,
len
=
list
.
length
;
i
<
len
;
i
++
)
{
for
(
var
i
=
0
,
len
=
list
.
length
;
i
<
len
;
i
++
)
{
_this
.
handleSelect
(
list
[
i
]);
_this
.
handleSelect
(
list
[
i
]);
...
@@ -1224,6 +1231,7 @@ export default {
...
@@ -1224,6 +1231,7 @@ export default {
item
=
this
.
filterGpsBase
(
item
);
item
=
this
.
filterGpsBase
(
item
);
item
.
isSource
=
relItem
.
source
;
item
.
isSource
=
relItem
.
source
;
item
.
vidCode
=
this
.
vidCode
item
.
vidCode
=
this
.
vidCode
item
.
sourceType
=
this
.
sourceType
});
});
this
.
monitorList
=
Object
.
assign
({},
this
.
monitorList
);
this
.
monitorList
=
Object
.
assign
({},
this
.
monitorList
);
let
drawData
=
data
.
filter
(
let
drawData
=
data
.
filter
(
...
...
src/utils/mapService.js
View file @
f8db074
...
@@ -528,14 +528,13 @@ MapService.prototype = {
...
@@ -528,14 +528,13 @@ MapService.prototype = {
}
}
}
}
// 跳转到风险评估页面 无线设备不显示按钮
isSource:1有线
,其他无线
// 跳转到风险评估页面 无线设备不显示按钮
sourceType:1有线组合
,其他无线
let
riskBtn
=
infoDiv
.
querySelector
(
'[data-risk]'
);
let
riskBtn
=
infoDiv
.
querySelector
(
'[data-risk]'
);
if
(
riskBtn
)
{
if
(
riskBtn
)
{
if
(
info
.
isSourc
e
!=
1
)
{
if
(
info
.
sourceTyp
e
!=
1
)
{
riskBtn
.
classList
.
add
(
'resident_btn_hidden'
);
riskBtn
.
classList
.
add
(
'resident_btn_hidden'
);
}
}
riskBtn
.
onclick
=
function
()
{
riskBtn
.
onclick
=
function
()
{
console
.
log
(
info
);
let
id
=
info
.
vidCode
||
localStorage
.
getItem
(
'vehicleId'
);
let
id
=
info
.
vidCode
||
localStorage
.
getItem
(
'vehicleId'
);
queryCode
=
`vehicleId=
${
id
}
`
queryCode
=
`vehicleId=
${
id
}
`
mapService
.
openPage
(
`#/monitor/alarmAnalysis?
${
queryCode
}
`
)
mapService
.
openPage
(
`#/monitor/alarmAnalysis?
${
queryCode
}
`
)
...
...
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