|
@@ -10,6 +10,7 @@ const api = {
|
|
|
findTeacher: `/api/train/teaplan/findteacher`, //planid termid batchid
|
|
|
arrange: `/api/train/apply/arrange`, //计划-安排教师
|
|
|
sendmsg: `/api/train/apply/sendmsg`, //计划,给指定期安排的教师发送通知
|
|
|
+ confirm: `/api/train/apply/confirm`, //计划,给指定期安排的教师变更为确认状态
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -59,6 +60,11 @@ const actions = {
|
|
|
const res = await this.$axios.$post(`${api.sendmsg}/${planid}`, { ids });
|
|
|
return res;
|
|
|
},
|
|
|
+ // 计划-给指定期安排的教师确认状态
|
|
|
+ async confirmPlan({ commit }, { ids, planid }) {
|
|
|
+ const res = await this.$axios.$post(`${api.confirm}/${planid}`, { ids });
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
|
let toRequest = () => {
|
|
|
let res = [];
|