|
@@ -7,6 +7,7 @@ const api = {
|
|
|
interface: `/api/train/teacher`,
|
|
|
status: `/api/train/teacher/status`,
|
|
|
scoreimport: `/api/train/teacher/teaimport`, //filepath
|
|
|
+ teacherLesson: `/api/train/teacher/fetchteachers`,
|
|
|
};
|
|
|
const state = () => ({});
|
|
|
const mutations = {};
|
|
@@ -24,7 +25,10 @@ const actions = {
|
|
|
const res = await this.$axios.$get(`${api.interface}/${payload}`);
|
|
|
return res;
|
|
|
},
|
|
|
-
|
|
|
+ async lessonteafetch({ commit }, ids) {
|
|
|
+ const res = await this.$axios.$post(`${api.teacherLesson}`, { ids });
|
|
|
+ return res;
|
|
|
+ },
|
|
|
async update({ commit }, { id, ...data }) {
|
|
|
const res = await this.$axios.$post(`${api.interface}/update/${id}`, data);
|
|
|
|