lrf402788946 4 年之前
父節點
當前提交
0e2962dd64
共有 1 個文件被更改,包括 5 次插入0 次删除
  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 = [];