lrf402788946 4 tahun lalu
induk
melakukan
4e159ce6ba
1 mengubah file dengan 8 tambahan dan 1 penghapusan
  1. 8 1
      store/tea-plan.js

+ 8 - 1
store/tea-plan.js

@@ -8,7 +8,8 @@ const api = {
   apply: `/api/train/apply/queryteacher`,
   apply: `/api/train/apply/queryteacher`,
   divide: `/api/train/teaplan/divide`, //query: trainplanid
   divide: `/api/train/teaplan/divide`, //query: trainplanid
   findTeacher: `/api/train/teaplan/findteacher`, //planid termid batchid
   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 state = () => ({});
 const mutations = {};
 const mutations = {};
@@ -48,10 +49,16 @@ const actions = {
     const res = await this.$axios.$get(`${api.findTeacher}`, payload);
     const res = await this.$axios.$get(`${api.findTeacher}`, payload);
     return res;
     return res;
   },
   },
+  // 计划-安排教师
   async arrangeTeacher({ commit }, payload) {
   async arrangeTeacher({ commit }, payload) {
     const res = await this.$axios.$get(`${api.arrange}`, payload);
     const res = await this.$axios.$get(`${api.arrange}`, payload);
     return res;
     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 }) {
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
     let toRequest = () => {
       let res = [];
       let res = [];