|
@@ -6,6 +6,7 @@ Vue.use(Vuex);
|
|
const api = {
|
|
const api = {
|
|
interface: `/api/train/school`,
|
|
interface: `/api/train/school`,
|
|
nameListNotice: `/api/train/job`,
|
|
nameListNotice: `/api/train/job`,
|
|
|
|
+ findSchool: `/api/train/school/findSchool`,
|
|
};
|
|
};
|
|
const state = () => ({});
|
|
const state = () => ({});
|
|
const mutations = {};
|
|
const mutations = {};
|
|
@@ -15,6 +16,10 @@ const actions = {
|
|
const res = await this.$axios.$get(`${api.interface}`, { skip, limit, ...info });
|
|
const res = await this.$axios.$get(`${api.interface}`, { skip, limit, ...info });
|
|
return res;
|
|
return res;
|
|
},
|
|
},
|
|
|
|
+ async findSchool({ commit }, { skip = 0, limit, ...info } = {}) {
|
|
|
|
+ const res = await this.$axios.$get(`${api.findSchool}`, { skip, limit, ...info });
|
|
|
|
+ return res;
|
|
|
|
+ },
|
|
async create({ commit }, payload) {
|
|
async create({ commit }, payload) {
|
|
const res = await this.$axios.$post(`${api.interface}`, payload);
|
|
const res = await this.$axios.$post(`${api.interface}`, payload);
|
|
return res;
|
|
return res;
|