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 820d663d
authored
Apr 15, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
13d5ac05
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
9 deletions
src/pages/monitor/LineCharts.vue
src/pages/monitor/alarmAnalysis.vue
src/pages/monitor/monitor.vue
src/utils/mapService.js
src/pages/monitor/LineCharts.vue
View file @
820d663
...
@@ -42,18 +42,18 @@ export default {
...
@@ -42,18 +42,18 @@ export default {
drawBarLine
()
{
drawBarLine
()
{
this
.
barLineOptions
=
{
this
.
barLineOptions
=
{
grid
:
{
grid
:
{
right
:
'
19
%'
,
right
:
'
5
%'
,
left
:
'15%'
left
:
`
${
this
.
linetype
==
1
?
'13%'
:
'5%'
}
`
},
},
xAxis
:
{
xAxis
:
{
type
:
'category'
,
type
:
'category'
,
name
:
(
this
.
linetype
==
1
?
'周'
:
'天'
)
+
(
this
.
lineChartsYear
&&
'\n('
+
this
.
lineChartsYear
+
'年'
+
')'
),
//
name: (this.linetype == 1 ? '周' : '天')+(this.lineChartsYear && '\n('+this.lineChartsYear + '年'+')'),
// nameLocation: 'center',
// nameLocation: 'center',
// nameGap: 20,
// nameGap: 20,
nameTextStyle
:
{
//
nameTextStyle: {
fontSize
:
10
,
//
fontSize: 10,
lineHeight
:
16
//
lineHeight: 16
},
//
},
boundaryGap
:
false
,
//坐标轴两边留白
boundaryGap
:
false
,
//坐标轴两边留白
data
:
this
.
xAxisData
,
data
:
this
.
xAxisData
,
axisLabel
:
{
//坐标轴刻度标签的相关设置。
axisLabel
:
{
//坐标轴刻度标签的相关设置。
...
...
src/pages/monitor/alarmAnalysis.vue
View file @
820d663
...
@@ -70,6 +70,7 @@
...
@@ -70,6 +70,7 @@
<!-- 用车行为分析 -->
<!-- 用车行为分析 -->
<div
class=
"use-car-box"
>
<div
class=
"use-car-box"
>
<div
class=
"title"
>
用车行为分析
</div>
<div
class=
"title"
>
用车行为分析
</div>
<div
class=
"x-name"
><span>
{{ linetype== 1 ? '周' : '天' }}
</span><span
v-if=
"lineChartsYear"
>
-{{ lineChartsYear }}年
</span></div>
<div
class=
"line-charts"
v-if=
"xAxisDataList.length"
>
<div
class=
"line-charts"
v-if=
"xAxisDataList.length"
>
<LineCharts
id=
"useCarCharts"
ref=
"useCarChartsRef"
height=
"250px"
:linetype=
"linetype"
:dataList=
"useCarData"
<LineCharts
id=
"useCarCharts"
ref=
"useCarChartsRef"
height=
"250px"
:linetype=
"linetype"
:dataList=
"useCarData"
:xAxisData=
"xAxisDataList"
:lineChartsYear=
"lineChartsYear"
></LineCharts>
:xAxisData=
"xAxisDataList"
:lineChartsYear=
"lineChartsYear"
></LineCharts>
...
@@ -353,6 +354,27 @@ export default {
...
@@ -353,6 +354,27 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.analy-box
,
.detail-box
{
/* 修改垂直滚动条 */
&::-webkit-scrollbar
{
width
:
2px
;
/* 修改宽度 */
}
/* 修改滚动条轨道背景色 */
&
::-webkit-scrollbar-track
{
background-color
:
#fff
;
}
/* 修改滚动条滑块颜色 */
&
::-webkit-scrollbar-thumb
{
background-color
:
#181c36
e6
;
}
/* 修改滚动条滑块悬停时的颜色 */
&
::-webkit-scrollbar-thumb:hover
{
background-color
:
#181c36
e6
;
}
}
.main-container
{
.main-container
{
position
:
fixed
;
position
:
fixed
;
width
:
calc
(
100%
-
200px
);
width
:
calc
(
100%
-
200px
);
...
@@ -642,7 +664,13 @@ export default {
...
@@ -642,7 +664,13 @@ export default {
padding
:
16px
;
padding
:
16px
;
box-shadow
:
0
4px
6px
0
#00000014
;
box-shadow
:
0
4px
6px
0
#00000014
;
z-index
:
9999
;
z-index
:
9999
;
position
:
relative
;
.x-name{
color
:
#6e7079
;
position
:
absolute
;
right
:
20px
;
top
:
30px
;
}
.title
{
.title
{
font-weight
:
500
;
font-weight
:
500
;
font-size
:
14px
;
font-size
:
14px
;
...
...
src/pages/monitor/monitor.vue
View file @
820d663
...
@@ -779,6 +779,7 @@ export default {
...
@@ -779,6 +779,7 @@ export default {
return
false
;
return
false
;
}
}
this
.
vidCode
=
list
[
0
].
vid
;
this
.
vidCode
=
list
[
0
].
vid
;
localStorage
.
setItem
(
'vehicleId'
,
list
&&
list
[
0
]
?
list
[
0
].
vid
:
null
)
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
]);
}
}
...
@@ -821,6 +822,7 @@ export default {
...
@@ -821,6 +822,7 @@ export default {
id
:
item
.
id
,
id
:
item
.
id
,
source
:
item
.
source
===
"有线"
?
"1"
:
"0"
,
source
:
item
.
source
===
"有线"
?
"1"
:
"0"
,
sourceType
:
item
.
source
,
sourceType
:
item
.
source
,
vid
:
item
.
vid
});
});
}
else
{
}
else
{
console
.
log
(
"展开节点"
,
item
);
console
.
log
(
"展开节点"
,
item
);
...
...
src/utils/mapService.js
View file @
820d663
...
@@ -534,7 +534,7 @@ MapService.prototype = {
...
@@ -534,7 +534,7 @@ MapService.prototype = {
riskBtn
.
classList
.
add
(
'resident_btn_hidden'
);
riskBtn
.
classList
.
add
(
'resident_btn_hidden'
);
}
}
riskBtn
.
onclick
=
function
()
{
riskBtn
.
onclick
=
function
()
{
let
id
=
info
.
vidCode
||
localStorage
.
getItem
(
'vehicleId'
);
let
id
=
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