|
@@ -9,6 +9,7 @@ const api = {
|
|
|
scoreimport: `/api/train/teacher/teaimport`, //filepath
|
|
|
teacherLesson: `/api/train/teacher/fetchteachers`,
|
|
|
checkArrange: `/api/train/teacher/checkarrange`,
|
|
|
+ export: `/api/train/teacher/export`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -51,6 +52,10 @@ const actions = {
|
|
|
const res = await this.$axios.$get(`${api.checkArrange}`, payload);
|
|
|
return res;
|
|
|
},
|
|
|
+ async toExport({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$post(api.export, payload);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
|
let toRequest = () => {
|
|
|
let res = [];
|