|
@@ -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 = [];
|