|
@@ -9,6 +9,7 @@ const api = {
|
|
|
interface: modelname => `/api/train/common/findone/${modelname}`,
|
|
|
findModel: model => `/api/train/common/findbymodel?modelname=${model}`,
|
|
|
findByIds: model => `/api/train/common/findbyids/${model}`,
|
|
|
+ util: `/api/train/util`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -26,6 +27,9 @@ const actions = {
|
|
|
const res = await this.$axios.$get(`${api.findByIds(model)}`, { data: ids });
|
|
|
return res;
|
|
|
},
|
|
|
+ async utilMethod({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$post(`${api.util}`, payload);
|
|
|
+ },
|
|
|
};
|
|
|
export default {
|
|
|
namespaced: true,
|