班级考勤统计优化;新增总计
This commit is contained in:
parent
12f6f0cfd2
commit
22ff730161
@ -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;
|
||||||
|
@ -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) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user