lrf402788946 4 anni fa
parent
commit
0e2962dd64
1 ha cambiato i file con 5 aggiunte e 0 eliminazioni
  1. 5 0
      store/student.js

+ 5 - 0
store/student.js

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