学校考勤统计优化
This commit is contained in:
parent
1a8b7861ea
commit
c5b8288bd4
@ -41,7 +41,11 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<div ref="printMe">
|
<div ref="printMe">
|
||||||
<h2 style="text-align: center">幼儿园班级儿童考勤表({{ this.month }})</h2>
|
<h2 style="text-align: center">{{this.user.dept.deptName}}班级儿童考勤表</h2>
|
||||||
|
<h4 style="text-align: left">
|
||||||
|
考勤月份:{{ this.month }} ------ 班级总数:{{ this.classcount }} ------
|
||||||
|
幼儿总数:{{ this.chilidcount }}
|
||||||
|
</h4>
|
||||||
<el-table
|
<el-table
|
||||||
v-loading="loading"
|
v-loading="loading"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
@ -75,10 +79,19 @@
|
|||||||
<script>
|
<script>
|
||||||
import { listDatetime } from "@/api/benyi/checkindetail";
|
import { listDatetime } from "@/api/benyi/checkindetail";
|
||||||
import { listClassCheck } from "@/api/system/class";
|
import { listClassCheck } from "@/api/system/class";
|
||||||
|
import { listChild } from "@/api/benyi/child";
|
||||||
|
import { getUserProfile } from "@/api/system/user";
|
||||||
export default {
|
export default {
|
||||||
name: "checkinstatisticsschool",
|
name: "checkinstatisticsschool",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
//用户信息
|
||||||
|
user: {},
|
||||||
|
//幼儿总数
|
||||||
|
chilidcount: "",
|
||||||
|
//班级数量
|
||||||
|
classcount: "",
|
||||||
|
//月份
|
||||||
month: "",
|
month: "",
|
||||||
// 遮罩层
|
// 遮罩层
|
||||||
loading: true,
|
loading: true,
|
||||||
@ -127,8 +140,14 @@ export default {
|
|||||||
created() {
|
created() {
|
||||||
this.getNowTime(); //得到月份
|
this.getNowTime(); //得到月份
|
||||||
this.getHeadList();
|
this.getHeadList();
|
||||||
|
this.getUser();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getUser() {
|
||||||
|
getUserProfile().then(response => {
|
||||||
|
this.user = response.data;
|
||||||
|
});
|
||||||
|
},
|
||||||
getNowTime() {
|
getNowTime() {
|
||||||
var now = new Date();
|
var now = new Date();
|
||||||
var year = now.getFullYear(); // 得到年份
|
var year = now.getFullYear(); // 得到年份
|
||||||
@ -157,6 +176,12 @@ export default {
|
|||||||
});
|
});
|
||||||
|
|
||||||
this.getList();
|
this.getList();
|
||||||
|
this.getChildCount();
|
||||||
|
},
|
||||||
|
getChildCount() {
|
||||||
|
listChild(null).then((response) => {
|
||||||
|
this.chilidcount = response.rows.length;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
getList() {
|
getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
@ -166,6 +191,7 @@ export default {
|
|||||||
}
|
}
|
||||||
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.tableData = response.rows;
|
// this.tableData = response.rows;
|
||||||
response.rows.forEach((res) => {
|
response.rows.forEach((res) => {
|
||||||
this.tableData.push({
|
this.tableData.push({
|
||||||
|
@ -41,7 +41,7 @@ public class ByChildController extends BaseController {
|
|||||||
/**
|
/**
|
||||||
* 查询幼儿信息列表
|
* 查询幼儿信息列表
|
||||||
*/
|
*/
|
||||||
@PreAuthorize("@ss.hasPermi('benyi:child:list')")
|
@PreAuthorize("@ss.hasPermi('benyi:child:list')" + "||@ss.hasPermi('benyi:checkinstatisticsschool:list')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(ByChild byChild) {
|
public TableDataInfo list(ByChild byChild) {
|
||||||
startPage();
|
startPage();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user