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 dc9f6d5b
authored
Mar 21, 2024
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
a8329824
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
src/pages/monitor/alarmAnalysis.vue
src/utils/mapService.js
src/pages/monitor/alarmAnalysis.vue
View file @
dc9f6d5
...
@@ -108,8 +108,10 @@
...
@@ -108,8 +108,10 @@
<!-- 用车行为分析 -->
<!-- 用车行为分析 -->
<div
class=
"use-car-box"
>
<div
class=
"use-car-box"
>
<div
class=
"title"
>
用车行为分析
</div>
<div
class=
"title"
>
用车行为分析
</div>
<LineCharts
class=
"line-charts"
v-if=
"useCarData.length"
id=
"useCarCharts"
ref=
"useCarChartsRef"
height=
"250px"
<div
class=
"line-charts"
v-if=
"xAxisDataList.length"
>
<LineCharts
id=
"useCarCharts"
ref=
"useCarChartsRef"
height=
"250px"
:dataList=
"useCarData"
:xAxisData=
"xAxisDataList"
></LineCharts>
:dataList=
"useCarData"
:xAxisData=
"xAxisDataList"
></LineCharts>
</div>
<div
v-else
class=
"empty-box"
>
<div
v-else
class=
"empty-box"
>
<img
src=
"../../assets/images/empty-status.png"
alt=
""
>
<img
src=
"../../assets/images/empty-status.png"
alt=
""
>
<div>
暂无里程数据
</div>
<div>
暂无里程数据
</div>
...
@@ -334,13 +336,15 @@ export default {
...
@@ -334,13 +336,15 @@ export default {
this
.
useCarData
=
[]
this
.
useCarData
=
[]
return
return
}
}
let
_int
=
res
.
data
.
statisticsType
==
1
?
'weekInt'
:
'dayInt'
let
_type
=
res
.
data
.
statisticsType
==
1
?
'weekNum'
:
'dayNum'
_dataList
.
forEach
(
item
=>
{
_dataList
.
forEach
(
item
=>
{
this
.
xAxisDataList
.
push
(
res
.
data
.
statisticsType
==
1
?
item
.
weekInt
:
item
.
dayInt
)
this
.
xAxisDataList
.
push
(
item
[
_int
]
)
this
.
useCarData
.
push
(
res
.
data
.
statisticsType
==
1
?
item
.
weekNum
:
item
.
dayNum
)
this
.
useCarData
.
push
(
item
[
_type
]
)
})
})
this
.
$nextTick
(()
=>
{
setTimeout
(()
=>
{
this
.
$refs
.
useCarChartsRef
.
drawBarLine
()
this
.
$refs
.
useCarChartsRef
.
drawBarLine
()
})
}
,
1000
)
})
})
}
}
},
},
...
...
src/utils/mapService.js
View file @
dc9f6d5
...
@@ -507,7 +507,8 @@ MapService.prototype = {
...
@@ -507,7 +507,8 @@ MapService.prototype = {
}
}
riskBtn
.
onclick
=
function
()
{
riskBtn
.
onclick
=
function
()
{
console
.
log
(
info
);
console
.
log
(
info
);
queryCode
=
`vehicleId=
${
info
.
vidCode
}
`
let
id
=
info
.
vidCode
||
localStorage
.
getItem
(
'vehicleId'
);
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