Explorar el Código

Merge branch 'master' of http://git.cc-lotus.info/new_train/frame

guhongwei hace 4 años
padre
commit
84f622b1d7
Se han modificado 1 ficheros con 6 adiciones y 0 borrados
  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 = {};
@@ -44,6 +45,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 = () => {