lrf402788946 4 years ago
parent
commit
d42ff7373a
1 changed files with 6 additions and 0 deletions
  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 = [];