fix:综合查询的检验合格数改正

This commit is contained in:
shijing 2024-08-07 08:51:19 +08:00
parent d2ed2d84f6
commit 909ba81ad4
1 changed files with 7 additions and 7 deletions

View File

@ -70,7 +70,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="检验合格数" label="检验合格数"
prop="合格数" prop="检验合格数"
> >
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -123,7 +123,7 @@
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="检验合格数" label="检验合格数"
prop="合格数" prop="检验合格数"
> >
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -162,8 +162,6 @@ export default {
day = day < 10 ? "0" + day : day; day = day < 10 ? "0" + day : day;
this.day = day; this.day = day;
this.query.date = this.currentDate = `${year}-${month}-${day}`; this.query.date = this.currentDate = `${year}-${month}-${day}`;
console.log(this.query.date);
this.getSourceData(); this.getSourceData();
this.bangHeight = this.bangHeight =
document.getElementById("bangTable").offsetHeight - 20; document.getElementById("bangTable").offsetHeight - 20;
@ -186,9 +184,9 @@ export default {
that.$API.bi.dataset.exec that.$API.bi.dataset.exec
.req("count_ok_day", params) .req("count_ok_day", params)
.then((res) => { .then((res) => {
console.log(res);
let datas = res.data2.ds0; let datas = res.data2.ds0;
datas.forEach((item) => { if(datas.length>0){
datas.forEach((item) => {
let bang_model = "", let bang_model = "",
guan_model = ""; guan_model = "";
if (item.型号.indexOf("+") > -1) { if (item.型号.indexOf("+") > -1) {
@ -208,6 +206,8 @@ export default {
} }
}); });
}); });
}
}); });
}, },
// //
@ -450,8 +450,8 @@ export default {
that.day = new Date().getDate(); that.day = new Date().getDate();
that.query.date = that.currentDate; that.query.date = that.currentDate;
} }
that.getSourceData();
} }
that.getSourceData();
}, },
}, },
}; };