lrf402788946 4 лет назад
Родитель
Сommit
7c48892e07
1 измененных файлов с 6 добавлено и 0 удалено
  1. 6 0
      store/bedroom.js

+ 6 - 0
store/bedroom.js

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