Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
卡
卡车调度系统
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caicaicai
卡车调度系统
Commits
902656b3
Commit
902656b3
authored
Jul 08, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
23e89ebd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
9 deletions
+25
-9
index.vue
src/views/MLargeScreen/components/dataScreening/index.vue
+25
-9
No files found.
src/views/MLargeScreen/components/dataScreening/index.vue
View file @
902656b3
...
@@ -333,6 +333,8 @@ import overcastPic from '../../../../assets/images/cutGraph/overcast.png'
...
@@ -333,6 +333,8 @@ import overcastPic from '../../../../assets/images/cutGraph/overcast.png'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
//定时器
dataScreeningTimer
:
null
,
whetherShow
:
false
,
whetherShow
:
false
,
//天气图片
//天气图片
weatherPic
:{
weatherPic
:{
...
@@ -378,8 +380,8 @@ export default {
...
@@ -378,8 +380,8 @@ export default {
//中间模块选择
//中间模块选择
centerViewData
:{
centerViewData
:{
moduleText
:
'
centerModule1
'
,
moduleText
:
'
centerModule1
'
,
detailedDataDay
:{}
,
xAxisData
:[
'
7:00
'
,
'
8:00
'
,
'
9:00
'
,
'
10:00
'
,
'
11:00
'
,
'
12:00
'
,
'
13:00
'
,
'
14:00
'
,
'
15:00
'
,
'
16:00
'
,
'
17:00
'
,
'
18:00
'
,
'
19:00
'
]
,
detailedDataMonth
:{}
,
seriesData
:[
10
,
52
,
200
,
334
,
390
,
330
,
220
,
10
,
52
,
200
,
334
,
390
,
330
]
,
},
},
//天气数据
//天气数据
weatherData
:{
weatherData
:{
...
@@ -432,7 +434,6 @@ export default {
...
@@ -432,7 +434,6 @@ export default {
}
}
}
}
},
},
mounted
()
{
},
methods
:
{
methods
:
{
loadData
(
text
){
loadData
(
text
){
if
(
text
==
true
){
if
(
text
==
true
){
...
@@ -588,8 +589,16 @@ export default {
...
@@ -588,8 +589,16 @@ export default {
}
}
})
})
//定时刷新数据
this
.
dataScreeningTimer
=
setInterval
(()
=>
{
},
10000
)
})
})
}
else
{
}
else
{
if
(
this
.
dataScreeningTimer
)
{
clearInterval
(
this
.
dataScreeningTimer
);
}
this
.
whetherShow
=
false
;
this
.
whetherShow
=
false
;
}
}
...
@@ -658,6 +667,7 @@ export default {
...
@@ -658,6 +667,7 @@ export default {
},
},
//中间模块Echarts
//中间模块Echarts
centerEcharts
(){
centerEcharts
(){
echarts
.
init
(
document
.
getElementById
(
'
centerEchartsView
'
)).
dispose
();
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'
centerEchartsView
'
));
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'
centerEchartsView
'
));
var
option
=
{
var
option
=
{
tooltip
:
{
tooltip
:
{
...
@@ -667,15 +677,16 @@ export default {
...
@@ -667,15 +677,16 @@ export default {
}
}
},
},
grid
:
{
grid
:
{
left
:
'
3%
'
,
top
:
'
35%
'
,
right
:
'
4%
'
,
left
:
'
1%
'
,
bottom
:
'
3%
'
,
right
:
'
1%
'
,
bottom
:
'
2%
'
,
containLabel
:
true
containLabel
:
true
},
},
xAxis
:
[
xAxis
:
[
{
{
type
:
'
category
'
,
type
:
'
category
'
,
data
:
[
'
7:00
'
,
'
8:00
'
,
'
9:00
'
,
'
10:00
'
,
'
11:00
'
,
'
12:00
'
,
'
13:00
'
,
'
14:00
'
,
'
15:00
'
,
'
16:00
'
,
'
17:00
'
,
'
18:00
'
,
'
19:00
'
]
,
data
:
this
.
centerViewData
.
xAxisData
,
axisTick
:
{
axisTick
:
{
alignWithLabel
:
true
alignWithLabel
:
true
},
},
...
@@ -715,10 +726,10 @@ export default {
...
@@ -715,10 +726,10 @@ export default {
],
],
series
:
[
series
:
[
{
{
name
:
'
数据
(吨)
'
,
name
:
'
重量
(吨)
'
,
type
:
'
bar
'
,
type
:
'
bar
'
,
barWidth
:
20
,
barWidth
:
20
,
data
:
[
10
,
52
,
200
,
334
,
390
,
330
,
220
,
10
,
52
,
200
,
334
,
390
,
330
]
,
data
:
this
.
centerViewData
.
seriesData
,
itemStyle
:
{
itemStyle
:
{
color
:
'
#01CBF6
'
color
:
'
#01CBF6
'
},
},
...
@@ -789,6 +800,11 @@ export default {
...
@@ -789,6 +800,11 @@ export default {
this
.
currentTime
.
year
=
currentFormatDate
;
this
.
currentTime
.
year
=
currentFormatDate
;
},
},
},
},
beforeDestroy
()
{
if
(
this
.
dataScreeningTimer
)
{
clearInterval
(
this
.
dataScreeningTimer
);
}
},
}
}
</
script
>
</
script
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment