lrf402788946 vor 4 Jahren
Ursprung
Commit
d42ff7373a
1 geänderte Dateien mit 6 neuen und 0 gelöschten Zeilen
  1. 6 0
      store/student.js

+ 6 - 0
store/student.js

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