|
@@ -9,6 +9,7 @@ const api = {
|
|
|
updateHeadTeacher: `/api/train/class/uptea`,
|
|
|
addStudent: id => `/api/train/class/upstuclass/${id} `, //id:班级id, ids:学生ID列表
|
|
|
teacherQuery: `/api/train/lesson/classbyteaid`,
|
|
|
+ pluralUpdate: `/api/train/class/upclasses`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -52,6 +53,11 @@ const actions = {
|
|
|
const res = await this.$axios.$post(`${api.updateHeadTeacher}`, payload);
|
|
|
return res;
|
|
|
},
|
|
|
+ //批量修改
|
|
|
+ async pluralUpdate({ commit }, payload) {
|
|
|
+ const res = await this.$axios.$post(`${api.pluralUpdate}`, payload);
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async mergeRequest({ commit, dispatch }, { method, data }) {
|
|
|
let toRequest = () => {
|
|
|
let res = [];
|