lrf402788946 4 роки тому
батько
коміт
83d1a26492
1 змінених файлів з 6 додано та 0 видалено
  1. 6 0
      store/trainplan.js

+ 6 - 0
store/trainplan.js

@@ -6,6 +6,7 @@ Vue.use(Vuex);
 const api = {
   interface: `/api/train/trainplan`,
   notice: `/api/train/class/notice`,
+  exportStudent: `/api/train/trainplan/exportExcel`,
 };
 const state = () => ({});
 const mutations = {};
@@ -36,6 +37,11 @@ const actions = {
     const res = await this.$axios.$post(`${api.notice}`, payload);
     return res;
   },
+  //根据计划ids导出学生
+  async exportStudents({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.exportStudent}`, { trainplanIds: payload });
+    return res;
+  },
 
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {