lrf402788946 4 лет назад
Родитель
Сommit
e1f382e3d9
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      store/lesson.js

+ 7 - 0
store/lesson.js

@@ -11,6 +11,7 @@ const api = {
   teaclass: `/api/train/lesson/teaclass`,
   confirm: `/api/train/lesson/check`, //锁死课表
   newArrange: `/api/train/lesson/newarrange`,
+  teaIndex: '/api/train/teaIndex',
 };
 const state = () => ({});
 const mutations = {};
@@ -78,6 +79,12 @@ const actions = {
     const res = await this.$axios.$post(`${api.pluralUpdate}`, payload);
     return res;
   },
+
+  // 教师首页课表
+  async teaIndex({ commit }, payload) {
+    const res = await this.$axios.$get(api.teaIndex, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
       let res = [];