班级考勤统计优化;新增总计

This commit is contained in:
paidaxing444 2020-09-28 16:42:22 +08:00
parent 12f6f0cfd2
commit 22ff730161
2 changed files with 5 additions and 5 deletions

View File

@ -155,7 +155,7 @@ export default {
this.queryParams.month = this.month; this.queryParams.month = this.month;
} }
await listDatetime(this.queryParams).then((response) => { await listDatetime(this.queryParams).then((response) => {
console.log(response.rows); // console.log(response.rows);
this.tableHead.push({ this.tableHead.push({
column_name: "name", column_name: "name",
sort: "姓名", sort: "姓名",
@ -180,7 +180,7 @@ export default {
this.queryParams.month = this.month; this.queryParams.month = this.month;
} }
listChildCheck(this.queryParams).then((response) => { listChildCheck(this.queryParams).then((response) => {
console.log(response.rows); // console.log(response.rows);
this.bjmc = response.rows[0].bjmc; this.bjmc = response.rows[0].bjmc;
this.childcount = response.rows.length - 1; this.childcount = response.rows.length - 1;
this.jsmc = response.rows[0].zbjsmc; this.jsmc = response.rows[0].zbjsmc;
@ -258,7 +258,7 @@ export default {
}); });
}, },
avg(a1) { avg(a1) {
console.log("a" + a1); // console.log("a" + a1);
//bug a //bug a
var a = 0; var a = 0;
var sum = 0; var sum = 0;

View File

@ -163,7 +163,7 @@ export default {
this.queryParams.month = this.month; this.queryParams.month = this.month;
} }
await listDatetime(this.queryParams).then((response) => { await listDatetime(this.queryParams).then((response) => {
console.log(response.rows); // console.log(response.rows);
this.tableHead.push({ this.tableHead.push({
column_name: "bjmc", column_name: "bjmc",
sort: "班级", sort: "班级",
@ -195,7 +195,7 @@ export default {
this.queryParams.month = this.month; this.queryParams.month = this.month;
} }
listClassCheck(this.queryParams).then((response) => { listClassCheck(this.queryParams).then((response) => {
console.log(response.rows); // console.log(response.rows);
this.classcount = response.rows.length - 1; this.classcount = response.rows.length - 1;
// this.tableData = response.rows; // this.tableData = response.rows;
response.rows.forEach((res) => { response.rows.forEach((res) => {