zhanghua
2025-03-12 ad51ed48d64a29467b38196cfd47ba1a5d3ed37f
src/api/student.js
@@ -43,6 +43,7 @@
        }
      }
    `,
    fetchPolicy:'no-cache',
    variables: params,
  });
}
@@ -89,6 +90,7 @@
        }
      }
    `,
    fetchPolicy:'no-cache',
    variables: params,
  });
}
@@ -131,6 +133,7 @@
        }
      }
    `,
    fetchPolicy:'no-cache',
    variables: params,
  });
}
@@ -177,41 +180,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 +305,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,
  });
}