lrf402788946 4 lat temu
rodzic
commit
4e159ce6ba
1 zmienionych plików z 8 dodań i 1 usunięć
  1. 8 1
      store/tea-plan.js

+ 8 - 1
store/tea-plan.js

@@ -8,7 +8,8 @@ const api = {
   apply: `/api/train/apply/queryteacher`,
   divide: `/api/train/teaplan/divide`, //query: trainplanid
   findTeacher: `/api/train/teaplan/findteacher`, //planid termid batchid
-  arrange: `/api/train/apply/arrange`,
+  arrange: `/api/train/apply/arrange`, //计划-安排教师
+  sendmsg: `/api/train/apply/sendmsg`, //计划,给指定期安排的教师发送通知
 };
 const state = () => ({});
 const mutations = {};
@@ -48,10 +49,16 @@ const actions = {
     const res = await this.$axios.$get(`${api.findTeacher}`, payload);
     return res;
   },
+  // 计划-安排教师
   async arrangeTeacher({ commit }, payload) {
     const res = await this.$axios.$get(`${api.arrange}`, payload);
     return res;
   },
+  // 计划-给指定期安排的教师发送通知
+  async sendMsg({ commit }, { ids, planid }) {
+    const res = await this.$axios.$post(`${api.sendmsg}/${planid}`, { ids });
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];