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
ba5761c4
Commit
ba5761c4
authored
Mar 29, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
4d95d96f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
4 deletions
+84
-4
index.vue
src/views/MLargeScreen/components/dataAnalysis/index.vue
+84
-4
No files found.
src/views/MLargeScreen/components/dataAnalysis/index.vue
View file @
ba5761c4
...
@@ -72,7 +72,6 @@
...
@@ -72,7 +72,6 @@
import
{
Tools
,
HttpReq
,
Dates
}
from
'
@/assets/js/common.js
'
;
import
{
Tools
,
HttpReq
,
Dates
}
from
'
@/assets/js/common.js
'
;
import
*
as
echarts
from
'
echarts
'
;
import
*
as
echarts
from
'
echarts
'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
...
@@ -101,7 +100,11 @@ export default {
...
@@ -101,7 +100,11 @@ export default {
wanchengRate
:[
20
,
50
,
60
,
80
],
wanchengRate
:[
20
,
50
,
60
,
80
],
},
},
//月生产完成效率
//月生产完成效率
echarts3Data
:{},
echarts3Data
:{
caiquName
:[
'
采区一
'
,
'
采区二
'
,
'
采区三
'
,
'
采区四
'
],
wanchengNum
:[
200
,
250
,
485
,
632
],
jihuaNum
:[
300
,
500
,
600
,
700
],
},
}
}
...
@@ -125,6 +128,8 @@ export default {
...
@@ -125,6 +128,8 @@ export default {
})
})
//各采区当月完成率
//各采区当月完成率
this
.
echarts2Fn
();
this
.
echarts2Fn
();
//月生产完成效率
this
.
echarts3Fn
();
})
})
...
@@ -305,7 +310,80 @@ export default {
...
@@ -305,7 +310,80 @@ export default {
//月生产完成效率
//月生产完成效率
echarts3Fn
(){
echarts3Fn
(){
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'
echarts3View
'
));
var
myChart
=
echarts
.
init
(
document
.
getElementById
(
'
echarts3View
'
));
var
option
=
{
tooltip
:
{
trigger
:
'
axis
'
},
legend
:
{
data
:
[
'
目标完成
'
,
'
计划完成
'
],
textStyle
:{
color
:
'
white
'
,
fontSize
:
15
,
}
},
grid
:
{
left
:
'
3%
'
,
right
:
'
4%
'
,
bottom
:
'
3%
'
,
containLabel
:
true
},
xAxis
:
{
type
:
'
category
'
,
data
:
this
.
echarts3Data
.
caiquName
,
axisLabel
:
{
show
:
true
,
textStyle
:
{
color
:
'
white
'
}
},
axisLine
:
{
lineStyle
:
{
color
:
'
white
'
,
width
:
0
}
}
},
yAxis
:
{
type
:
'
value
'
,
name
:
'
完成率(%)
'
,
nameTextStyle
:
{
fontSize
:
16
},
axisLabel
:
{
show
:
true
,
textStyle
:
{
color
:
'
white
'
}
},
axisLine
:
{
lineStyle
:
{
color
:
'
white
'
,
width
:
0
}
}
},
series
:
[
{
name
:
'
目标完成
'
,
type
:
'
line
'
,
data
:
this
.
echarts3Data
.
wanchengNum
,
itemStyle
:
{
normal
:
{
lineStyle
:
{
color
:
'
#FFC200
'
}
//设置线条颜色
}
}
},
{
name
:
'
计划完成
'
,
type
:
'
line
'
,
data
:
this
.
echarts3Data
.
jihuaNum
,
itemStyle
:
{
normal
:
{
lineStyle
:
{
color
:
'
#21DDF3
'
}
//设置线条颜色
}
}
}
]
};
option
&&
myChart
.
setOption
(
option
);
},
},
...
@@ -480,6 +558,8 @@ dd>div{
...
@@ -480,6 +558,8 @@ dd>div{
height
:
23vh
;
height
:
23vh
;
}
}
#echarts3View
{
#echarts3View
{
position
:
absolute
;
left
:
0vh
;
width
:
100%
;
width
:
100%
;
height
:
23vh
;
height
:
23vh
;
}
}
...
...
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