报表表格中抽样数是0的,去掉

yangwl
zhaoxiaolin 2 months ago
parent 33ecf626fd
commit b6436a59d5

@ -218,7 +218,8 @@ export default {
}) })
let xData=[] let xData=[]
let yData=[] let yData=[]
this.tableTbody=res //this.tableTbody=res
this.tableTbody=res.filter(item => item.sampleQuality !== '0');
res.map((item,index)=>{ res.map((item,index)=>{
xData.push(item.timeCol), xData.push(item.timeCol),
yData.push(item.noOkRate) yData.push(item.noOkRate)

@ -217,7 +217,7 @@ export default {
}) })
let xData=[] let xData=[]
let yData=[] let yData=[]
this.tableTbody=res this.tableTbody=res.filter(item => item.sampleQuality !== '0');
res.map((item,index)=>{ res.map((item,index)=>{
xData.push(item.timeCol), xData.push(item.timeCol),
yData.push(item.noOkRate) yData.push(item.noOkRate)

@ -215,7 +215,8 @@ export default {
}) })
let xData=[] let xData=[]
let yData=[] let yData=[]
this.tableTbody=res //this.tableTbody=res
this.tableTbody=res.filter(item => item.sampleQuality !== '0');
res.map((item,index)=>{ res.map((item,index)=>{
xData.push(item.timeCol), xData.push(item.timeCol),
yData.push(item.noOkRate) yData.push(item.noOkRate)

Loading…
Cancel
Save