lrf402788946 4 年之前
父節點
當前提交
c53c614a7f
共有 3 個文件被更改,包括 7 次插入7 次删除
  1. 0 5
      config/menu-config.js
  2. 1 2
      layout/admin/navBar/default-select.vue
  3. 6 0
      store/trainplan.js

+ 0 - 5
config/menu-config.js

@@ -79,11 +79,6 @@ const teacher = [
         name: '作业管理',
         module: 'teacher',
       },
-      {
-        path: '/class/index',
-        name: '班级信息',
-        module: 'teacher',
-      },
       {
         path: '/class/classStuList',
         name: '学生名单',

+ 1 - 2
layout/admin/navBar/default-select.vue

@@ -85,6 +85,7 @@ export default {
       if (_.get(this.options, 'planid')) {
         this.search({ type: 'plan', planyearid: _.get(this.options, 'planyearid') });
       }
+      if (this.user.type == 1 || this.user.type == 3) this.getClassOption();
       this.loading = false;
     },
     async search({ type, ...info }) {
@@ -94,8 +95,6 @@ export default {
         if (type == 'plan') {
           let planid = _.get(this.options, 'planid');
           this.getTermList(planid);
-        } else if (type == 'planYear') {
-          // this.checkOption();
         }
       }
     },

+ 6 - 0
store/trainplan.js

@@ -7,6 +7,7 @@ const api = {
   interface: `/api/train/trainplan`,
   notice: `/api/train/class/notice`,
   exportStudent: `/api/train/trainplan/exportExcel`,
+  exportSchoolPlan: `/api/train/trainplan/exportSchool`,
 };
 const state = () => ({});
 const mutations = {};
@@ -50,6 +51,11 @@ const actions = {
     const res = await this.$axios.$post(`${api.exportStudent}`, { trainplanIds: payload });
     return res;
   },
+  //导出学校计划
+  async exportSchoolPlan({ commit }, payload) {
+    const res = await this.$axios.$post(`${api.exportSchoolPlan}`, payload);
+    return res;
+  },
 
   async mergeRequest({ commit, dispatch }, { method, data }) {
     let toRequest = () => {