lrf402788946 4 năm trước cách đây
mục cha
commit
0e2962dd64
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      store/student.js

+ 5 - 0
store/student.js

@@ -11,6 +11,7 @@ const api = {
   findscore: `/api/train/student/findscore`,
   findscore: `/api/train/student/findscore`,
   findList: `/api/train/student/findbystuids`,
   findList: `/api/train/student/findbystuids`,
   deleteAll: '/api/train/student/deletestus',
   deleteAll: '/api/train/student/deletestus',
+  batUpdateBedroom: `/api/train/student/updatabedroom`,
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};
@@ -60,6 +61,10 @@ const actions = {
     const res = await this.$axios.$post(`${api.deleteAll}`, payload);
     const res = await this.$axios.$post(`${api.deleteAll}`, payload);
     return res;
     return res;
   },
   },
+  async updateBedroom({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.batUpdateBedroom}`, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
     let toRequest = () => {
       let res = [];
       let res = [];