lrf402788946 4 سال پیش
والد
کامیت
91dbafa911
1فایلهای تغییر یافته به همراه7 افزوده شده و 0 حذف شده
  1. 7 0
      store/bedroom.js

+ 7 - 0
store/bedroom.js

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