|
@@ -6,6 +6,7 @@ Vue.use(Vuex);
|
|
|
const api = {
|
|
|
interface: `/api/train/bedroom`,
|
|
|
apart: `/api/train/bedroom/apart`,
|
|
|
+ updateBat: `/api/train/bedroom/batch`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -39,6 +40,11 @@ const actions = {
|
|
|
const res = await this.$axios.$get(`${api.interface}/student/${payload}`);
|
|
|
return res;
|
|
|
},
|
|
|
+ // 批量修改寝室
|
|
|
+ async updateBat({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$post(`${api.updateBat}`, payload);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
|
let toRequest = () => {
|
|
|
let res = [];
|