From 66ddb6dda84b3c329dde54bb3e693d0983856717 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 9 Apr 2025 13:27:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=94=9F=E4=BA=A7=E6=A3=80=E9=AA=8C?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/product_check.vue | 46 ++++++++++++++++---------- 1 file changed, 28 insertions(+), 18 deletions(-) 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.合格数;