|
@@ -7,6 +7,7 @@ const api = {
|
|
interface: `/api/train/trainplan`,
|
|
interface: `/api/train/trainplan`,
|
|
notice: `/api/train/class/notice`,
|
|
notice: `/api/train/class/notice`,
|
|
exportStudent: `/api/train/trainplan/exportExcel`,
|
|
exportStudent: `/api/train/trainplan/exportExcel`,
|
|
|
|
+ exportSchoolPlan: `/api/train/trainplan/exportSchool`,
|
|
};
|
|
};
|
|
const state = () => ({});
|
|
const state = () => ({});
|
|
const mutations = {};
|
|
const mutations = {};
|
|
@@ -50,6 +51,11 @@ const actions = {
|
|
const res = await this.$axios.$post(`${api.exportStudent}`, { trainplanIds: payload });
|
|
const res = await this.$axios.$post(`${api.exportStudent}`, { trainplanIds: payload });
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
|
|
+ //导出学校计划
|
|
|
|
+ async exportSchoolPlan({ commit }, payload) {
|
|
|
|
+ const res = await this.$axios.$post(`${api.exportSchoolPlan}`, payload);
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
|
|
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
let toRequest = () => {
|
|
let toRequest = () => {
|