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 a8329824
authored
Mar 21, 2024
by
匡雅琴
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
589e6eb3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
src/pages/monitor/LineCharts.vue
src/pages/monitor/alarmAnalysis.vue
src/utils/historyLocation.js
src/pages/monitor/LineCharts.vue
View file @
a832982
...
...
@@ -35,6 +35,7 @@ export default {
},
methods
:
{
drawBarLine
()
{
console
.
log
(
this
.
dataList
);
this
.
barLineOptions
=
{
xAxis
:
{
type
:
'category'
,
...
...
src/pages/monitor/alarmAnalysis.vue
View file @
a832982
...
...
@@ -93,8 +93,15 @@
</div>
<div
class=
"detail-msg"
>
<div
class=
"detail-msg-left"
>
设备状态:
</div>
<div
class=
"detail-msg-desc"
>
{{ basicData.deviceInformationVOList ?
basicData.deviceInformationVOList[0].deviceStateStr : '-' }}
</div>
<!-- <div class="detail-msg-desc"> {{ basicData.deviceInformationVOList ?
basicData.deviceInformationVOList[0].deviceStateStr : '-' }}</div> -->
<
template
v-if=
"basicData.deviceInformationVOList.length"
>
<div
class=
"detail-msg-desc"
v-for=
"item in basicData.deviceInformationVOList"
>
<div>
{{
item
.
sourceStr
}}
-
{{
item
.
sn
}}
</div>
<div>
定位-
{{
item
.
address
}}
</div>
</div>
</
template
>
<
template
v-else
><div
class=
"detail-msg-desc"
>
--
</div></
template
>
</div>
</div>
</div>
...
...
@@ -258,7 +265,9 @@ export default {
item
.
transferAddress
=
item
.
address
||
"--"
;
// 取后端返回address
});
console
.
log
(
_data
);
EventBus
.
$emit
(
"uiMap.historyLocation.draw"
,
_data
);
this
.
$nextTick
(()
=>
{
EventBus
.
$emit
(
"uiMap.historyLocation.draw"
,
_data
);
})
})
},
// 获取车辆基本信息
...
...
@@ -326,8 +335,8 @@ export default {
return
}
_dataList
.
forEach
(
item
=>
{
this
.
xAxisDataList
.
push
(
item
.
weekInt
||
item
.
dayInt
)
this
.
useCarData
.
push
(
item
.
weekNum
||
item
.
dayNum
)
this
.
xAxisDataList
.
push
(
res
.
data
.
statisticsType
==
1
?
item
.
weekInt
:
item
.
dayInt
)
this
.
useCarData
.
push
(
res
.
data
.
statisticsType
==
1
?
item
.
weekNum
:
item
.
dayNum
)
})
this
.
$nextTick
(()
=>
{
this
.
$refs
.
useCarChartsRef
.
drawBarLine
()
...
...
src/utils/historyLocation.js
View file @
a832982
...
...
@@ -9,6 +9,7 @@ const historyLocation = {
infowins
:
{},
bindEvent
(){
EventBus
.
$on
(
'uiMap.historyLocation.draw'
,
(
data
)
=>
{
console
.
log
(
data
,
'--------'
);
this
.
destroy
();
const
MAP
=
mapService
.
map
;
this
.
data
=
data
;
...
...
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