Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NLT-e-cigarette
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
张伯涛
NLT-e-cigarette
Commits
effa7f1b
Commit
effa7f1b
authored
Aug 23, 2022
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
维修统计echarts图不要生产完成数量了,添加累计占比
parent
5e88d0ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
repairStatistics.vue
src/views/productionStatis/repairStatistics.vue
+14
-14
No files found.
src/views/productionStatis/repairStatistics.vue
View file @
effa7f1b
...
@@ -351,11 +351,11 @@ export default {
...
@@ -351,11 +351,11 @@ export default {
getProLineMonitor
()
{
getProLineMonitor
()
{
const
myChartAge
=
echarts
.
init
(
document
.
getElementById
(
'dataCharts_proLineMonitor'
))
const
myChartAge
=
echarts
.
init
(
document
.
getElementById
(
'dataCharts_proLineMonitor'
))
const
_this
=
this
const
_this
=
this
const
colors
=
[
'#209DFF'
,
'#BC2C29'
,
'#FF8919'
]
const
colors
=
[
'#209DFF'
,
'#BC2C29'
]
const
xData
=
[]
// x轴显示
const
xData
=
[]
// x轴显示
const
defectQtyData
=
[]
// y不良数量
const
defectQtyData
=
[]
// y不良数量
const
inputData
=
[]
// y计划生产数量
const
inputData
=
[]
// y计划生产数量
const
failureProportionData
=
[]
// y
不良占比 || 误测次数
const
failureProportionData
=
[]
// y
累计占比
let
dataTemp
=
[]
let
dataTemp
=
[]
let
maxNum1
=
0
let
maxNum1
=
0
this
.
dataList
.
forEach
(
item
=>
{
this
.
dataList
.
forEach
(
item
=>
{
...
@@ -365,11 +365,11 @@ export default {
...
@@ -365,11 +365,11 @@ export default {
xData
.
push
(
item
.
typeSimple
)
xData
.
push
(
item
.
typeSimple
)
}
}
defectQtyData
.
push
(
item
.
defectQty
)
defectQtyData
.
push
(
item
.
defectQty
)
if
(
_this
.
choseType
===
'day'
||
_this
.
choseType
===
'week'
||
_this
.
choseType
===
'month'
)
{
//
if (_this.choseType === 'day' || _this.choseType === 'week' || _this.choseType === 'month') {
inputData
.
push
(
item
.
inPut
)
//
inputData.push(item.inPut)
}
//
}
// if (this.choseType === 'day' || this.choseType === 'week' || this.choseType === 'month') {
// if (this.choseType === 'day' || this.choseType === 'week' || this.choseType === 'month') {
failureProportionData
.
push
(
item
.
failur
eProportion
)
failureProportionData
.
push
(
item
.
cumulativ
eProportion
)
// } else {
// } else {
// failureProportionData.push(item.errorNum)
// failureProportionData.push(item.errorNum)
// }
// }
...
@@ -454,15 +454,15 @@ export default {
...
@@ -454,15 +454,15 @@ export default {
barGap
:
0
,
barGap
:
0
,
data
:
defectQtyData
data
:
defectQtyData
},
},
// {
// name: '生产完成数量',
// type: 'bar',
// barWidth: 18,
// barGap: 0,
// data: inputData
// },
{
{
name
:
'生产完成数量'
,
name
:
'累计占比'
,
type
:
'bar'
,
barWidth
:
18
,
barGap
:
0
,
data
:
inputData
},
{
name
:
'不良占比'
,
type
:
'line'
,
type
:
'line'
,
yAxisIndex
:
1
,
yAxisIndex
:
1
,
data
:
failureProportionData
,
data
:
failureProportionData
,
...
...
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