From 2bbd8d78ad6c901c6e42ddd58ea1f04879ab63da Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 29 十月 2025 21:52:58 +0800
Subject: [PATCH] 班级考勤汇总表
---
src/views/attendance/index.vue | 36 ++++++++++++++++++++++++++++++++----
1 files changed, 32 insertions(+), 4 deletions(-)
diff --git a/src/views/attendance/index.vue b/src/views/attendance/index.vue
index 996f058..827d5d1 100644
--- a/src/views/attendance/index.vue
+++ b/src/views/attendance/index.vue
@@ -10,7 +10,7 @@
end-placeholder="缁撴潫鏃ユ湡"
value-format="yyyy-MM-dd"
style="margin-right: 10px"
- @change="dateChange"
+ @change="dateChange" :picker-options="pickerOptions"
>
</el-date-picker>
</div>
@@ -33,7 +33,7 @@
<el-table-column label="鍑哄嫟鎯呭喌" prop="state" width="180">
</el-table-column>
<el-table-column
- label="璇惧寘/浼氬憳鍗�"
+ label="璇惧寘"
min-width="200"
prop="voucherName"
>
@@ -93,6 +93,7 @@
data: {
staffId: JSON.parse(localStorage.getItem("selectStaff")).id,
keyword: "",
+ reportType: "",
pageIn: {
//鍙�夛紝濡傛灉鏄垎椤垫煡璇紝闇�瑕佸姞涓娿��
index: 0, //蹇呴��
@@ -104,6 +105,33 @@
},
},
dialogVisible: false,
+ pickerOptions: {
+ shortcuts: [{
+ text: '鏈�杩戜竴鍛�',
+ onClick(picker) {
+ const end = new Date();
+ const start = new Date();
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
+ picker.$emit('pick', [start, end]);
+ }
+ }, {
+ text: '鏈�杩戜竴涓湀',
+ onClick(picker) {
+ const end = new Date();
+ const start = new Date();
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
+ picker.$emit('pick', [start, end]);
+ }
+ }, {
+ text: '鏈�杩戜笁涓湀',
+ onClick(picker) {
+ const end = new Date();
+ const start = new Date();
+ start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
+ picker.$emit('pick', [start, end]);
+ }
+ }]
+ },
};
},
created() {
@@ -174,8 +202,8 @@
if (this.activeName == "pendingFees") {
this.listLoading = true;
getRenew(this.data).then((response) => {
- this.list = response.data.findPlayerRenew.ls;
- this.total = response.data.findPlayerRenew.pageOut.total;
+ this.list = response.data.findRenewPlayerAcc.ls;
+ this.total = response.data.findRenewPlayerAcc.pageOut.total;
this.listLoading = false;
});
} else if (this.activeName == "expired") {
--
Gitblit v1.8.0