|
@@ -6,6 +6,7 @@ Vue.use(Vuex);
|
|
|
const api = {
|
|
|
interface: `/api/train/apply`,
|
|
|
apply: `/api/train/apply/queryteacher`,
|
|
|
+ divide: `/api/train/teaplan/divide`, //query: trainplanid
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -35,6 +36,11 @@ const actions = {
|
|
|
const res = await this.$axios.$get(`${api.apply}`, { skip, limit, ...info });
|
|
|
return res;
|
|
|
},
|
|
|
+ async divide({ commit }, payload) {
|
|
|
+ //payload是trainplanid
|
|
|
+ const res = await this.$axios.$get(`${api.divide}`, payload);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
|
let toRequest = () => {
|
|
|
let res = [];
|