lrf402788946 4 년 전
부모
커밋
d42ff7373a
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      store/student.js

+ 6 - 0
store/student.js

@@ -13,6 +13,7 @@ const api = {
   deleteAll: '/api/train/student/deletestus',
   batUpdateBedroom: `/api/train/student/updatabedroom`,
   computedIsFine: `/api/train/student/finestudent`,
+  export: `/api/train/student/export`,
 };
 const state = () => ({});
 const mutations = {};
@@ -70,6 +71,11 @@ const actions = {
     const res = await this.$axios.$get(`${api.computedIsFine}/${payload}`);
     return res;
   },
+  // 导出条件下的学生
+  async toExport({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.export}`, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];