|
@@ -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 = [];
|