瀏覽代碼

教师首页查询

lrf402788946 4 年之前
父節點
當前提交
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`,
   teaclass: `/api/train/lesson/teaclass`,
   confirm: `/api/train/lesson/check`, //锁死课表
   confirm: `/api/train/lesson/check`, //锁死课表
   newArrange: `/api/train/lesson/newarrange`,
   newArrange: `/api/train/lesson/newarrange`,
+  teaIndex: '/api/train/teaIndex',
 };
 };
 const state = () => ({});
 const state = () => ({});
 const mutations = {};
 const mutations = {};
@@ -78,6 +79,12 @@ const actions = {
     const res = await this.$axios.$post(`${api.pluralUpdate}`, payload);
     const res = await this.$axios.$post(`${api.pluralUpdate}`, payload);
     return res;
     return res;
   },
   },
+
+  // 教师首页课表
+  async teaIndex({ commit }, payload) {
+    const res = await this.$axios.$get(api.teaIndex, payload);
+    return res;
+  },
   async mergeRequest({ commit, dispatch }, { method, data }) {
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {
     let toRequest = () => {
       let res = [];
       let res = [];