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();
},
},
};