|
@@ -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 = () => {
|