From 92ce7d104ce175cf869bdf9ee87ce4123805050e Mon Sep 17 00:00:00 2001
From: zhanghua <314079846@qq.com>
Date: 星期三, 29 十月 2025 20:17:32 +0800
Subject: [PATCH] 班级考勤统计

---
 src/api/student.js |  107 ++++++++++++++++++++---------------------------------
 1 files changed, 41 insertions(+), 66 deletions(-)

diff --git a/src/api/student.js b/src/api/student.js
index 739105b..4437caa 100644
--- a/src/api/student.js
+++ b/src/api/student.js
@@ -43,6 +43,7 @@
         }
       }
     `,
+    fetchPolicy:'no-cache',
     variables: params,
   });
 }
@@ -89,48 +90,18 @@
         }
       }
     `,
+    fetchPolicy:'no-cache',
     variables: params,
   });
 }
 
 export function getRenew(params) {
   return apolloClient.query({
-    query: gql`
-      query vars($staffId: Int!, $keyword: String, $pageIn: PageIn!) {
-        findPlayerRenew(staffId: $staffId, keyword: $keyword, pageIn: $pageIn) {
-          ls {
-            id
-            name
-            gender
-            mobile
-            user {
-              id
-              name
-              wxOaOpenId
-            }
-            accs {
-              id
-              voucher {
-                id
-                voucherType
-                name
-              }
-              qty
-              freezeQty
-              amt
-              beginDate
-              endDate
-              modifyTime
-            }
-          }
-          pageOut {
-            total
-            index
-            size
-          }
-        }
-      }
+    query: gql`query vars($staffId:Int!,$campusId:Int,$keyword:String,$pageIn:PageIn!){
+  findRenewPlayerAcc(staffId:$staffId,campusId:$campusId, keyword:$keyword,pageIn:$pageIn) {
+    ls{id name userAvatars{url1 url2 url3 origin def ext} playerAvatars{url1 url2 url3 origin def ext} accId voucherName giftQty qty endDate voucherType memberType} pageOut{total index size} }}
     `,
+    fetchPolicy:'no-cache',
     variables: params,
   });
 }
@@ -177,41 +148,11 @@
         }
       }
     `,
+    fetchPolicy:'no-cache',
     variables: params,
   });
 }
 
-export function getDeleted(params) {
-  return apolloClient.query({
-    query: gql`
-      query vars(
-        $staffId: Int!
-        $itemType: ItemType!
-        $keyword: String
-        $pageIn: PageIn!
-      ) {
-        findDeletedItem(
-          staffId: $staffId
-          itemType: $itemType
-          keyword: $keyword
-          pageIn: $pageIn
-        ) {
-          ls {
-            id
-            name
-            modifyTime
-          }
-          pageOut {
-            total
-            index
-            size
-          }
-        }
-      }
-    `,
-    variables: params,
-  });
-}
 
 export function getDetails(params) {
   return apolloClient.query({
@@ -332,6 +273,40 @@
         }
       }
     `,
+    fetchPolicy:'no-cache',
+    variables: params,
+  });
+}
+//宸插仠鐢�
+export function getDeleted(params) {
+  return apolloClient.query({
+    query: gql`
+      query vars(
+        $staffId: Int!
+        $itemType: ItemType!
+        $keyword: String
+        $pageIn: PageIn!
+      ) {
+        findDeletedItem(
+          staffId: $staffId
+          itemType: $itemType
+          keyword: $keyword
+          pageIn: $pageIn
+        ) {
+          ls {
+            id
+            name
+            modifyTime
+          }
+          pageOut {
+            total
+            index
+            size
+          }
+        }
+      }
+    `,
+    fetchPolicy:'no-cache',
     variables: params,
   });
 }

--
Gitblit v1.8.0