lrf402788946 4 年之前
父节点
当前提交
16ea3eaeda
共有 2 个文件被更改,包括 10 次插入5 次删除
  1. 5 5
      config/menu-config.js
  2. 5 0
      store/talented.js

+ 5 - 5
config/menu-config.js

@@ -379,6 +379,11 @@ export const menu = [
         name: '培训心得',
         module: 'center|director',
       },
+      {
+        path: '/newspaper/index',
+        name: '新人才报',
+        module: 'center',
+      },
     ],
   },
   {
@@ -413,11 +418,6 @@ export const menu = [
     name: '课程培训',
     module: 'center|teacher|director',
   },
-  {
-    path: '/newspaper/index',
-    name: '新人才报',
-    module: 'center',
-  },
   // {
   //   path: '/timeTable/index',
   //   name: '教师遴选',

+ 5 - 0
store/talented.js

@@ -4,6 +4,7 @@ import _ from 'lodash';
 Vue.use(Vuex);
 const api = {
   interface: `/api/train/talented`,
+  export: `/api/train/talented/export`,
 };
 const state = () => ({});
 const mutations = {};
@@ -29,6 +30,10 @@ const actions = {
     const res = await this.$axios.$delete(`${api.interface}/${payload}`);
     return res;
   },
+  async export({ commit }, payload) {
+    const res = await this.$axios.$get(`${api.export}`, payload);
+    return res;
+  },
 };
 export default {
   namespaced: true,