From 909ba81ad4a2488218e3255b396d6f6eef2d3a7d Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 7 Aug 2024 08:51:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=BB=BC=E5=90=88=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=9A=84=E6=A3=80=E9=AA=8C=E5=90=88=E6=A0=BC=E6=95=B0=E6=94=B9?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/statistics/total_statistics.vue | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/views/statistics/total_statistics.vue b/src/views/statistics/total_statistics.vue index 4e458145..4c90a7a6 100644 --- a/src/views/statistics/total_statistics.vue +++ b/src/views/statistics/total_statistics.vue @@ -70,7 +70,7 @@ @@ -123,7 +123,7 @@ @@ -162,8 +162,6 @@ export default { day = day < 10 ? "0" + day : day; this.day = day; this.query.date = this.currentDate = `${year}-${month}-${day}`; - - console.log(this.query.date); this.getSourceData(); this.bangHeight = document.getElementById("bangTable").offsetHeight - 20; @@ -186,9 +184,9 @@ export default { that.$API.bi.dataset.exec .req("count_ok_day", params) .then((res) => { - console.log(res); let datas = res.data2.ds0; - datas.forEach((item) => { + if(datas.length>0){ + datas.forEach((item) => { let bang_model = "", guan_model = ""; if (item.型号.indexOf("+") > -1) { @@ -208,6 +206,8 @@ export default { } }); }); + } + }); }, //获取表格原始数据 @@ -450,8 +450,8 @@ export default { that.day = new Date().getDate(); that.query.date = that.currentDate; } - that.getSourceData(); } + that.getSourceData(); }, }, };