diff --git a/src/views/statistics/product_check.vue b/src/views/statistics/product_check.vue index 0180af56..9a5e00f5 100644 --- a/src/views/statistics/product_check.vue +++ b/src/views/statistics/product_check.vue @@ -72,17 +72,13 @@ - + - + - + @@ -442,6 +430,15 @@ export default { that.$API.bi.dataset.exec.req(exec, obj2).then((res2) => { console.log("退火车间统计:", res2); if (res2.data2.ds0) { + that.option3.series.data[0].value=0; + that.option3.series.data[1].value=0; + that.option3.series.data[2].value=0; + that.option3.series.data[3].value=0; + that.option3.series.data[4].value=0; + that.option3.series.data[5].value=0; + that.option3.series.data[6].value=0; + that.option3.series.data[7].value=0; + that.option3.series.data[8].value=0; let data = res2.data2.ds0; if (data.length > 0) { data.forEach((item) => { @@ -493,6 +490,12 @@ export default { that.$API.bi.dataset.exec.req(exec, obj2).then((res2) => { console.log("7生产车间统计:", res2); if (res2.data2.ds0) { + that.option1.series.data[0].value=0; + that.option1.series.data[1].value=0; + that.option1.series.data[2].value=0; + that.option1.series.data[3].value=0; + that.option1.series.data[4].value=0; + that.option1.series.data[5].value=0; let data = res2.data2.ds0; if (data.length > 0) { data.forEach((item) => { @@ -542,6 +545,13 @@ export default { console.log("10生产车间统计:", res2); if (res2.data2.ds0) { let data = res2.data2.ds0; + that.option2.series.data[0].value=0; + that.option2.series.data[1].value=0; + that.option2.series.data[2].value=0; + that.option2.series.data[3].value=0; + that.option2.series.data[4].value=0; + that.option2.series.data[5].value=0; + that.option2.series.data[6].value=0; if (data.length > 0) { data.forEach((item) => { that.option2.series.data[0].value += item.合格数;