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 |   33 ++++++++++++++++++++++++++++++---
 1 files changed, 30 insertions(+), 3 deletions(-)

diff --git a/src/views/attendance/index.vue b/src/views/attendance/index.vue
index 4ebbe9e..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>
@@ -105,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() {
@@ -175,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