lrf402788946 4 gadi atpakaļ
vecāks
revīzija
91dbafa911
1 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. 7 0
      store/bedroom.js

+ 7 - 0
store/bedroom.js

@@ -7,6 +7,7 @@ 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`,
   updateBat: `/api/train/bedroom/batch`,
+  assignroom: `/api/train/bedroom/assignroom`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};
@@ -45,6 +46,12 @@ const actions = {
     const res = await this.$axios.$post(`${api.updateBat}`, payload);
     const res = await this.$axios.$post(`${api.updateBat}`, payload);
     return res;
     return res;
   },
   },
+  // 获取本期可以获取
+  async getAssignRoom({ commit }, { termid }) {
+    const res = await this.$axios.$get(`${api.assignroom}`, { termid });
+    return res;
+  },
+
   async mergeRequest({ commit, dispatch }, { method, data }) {
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
     let toRequest = () => {
       let res = [];
       let res = [];