lrf402788946 5 년 전
부모
커밋
d6ed53eee6
3개의 변경된 파일36개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      config/menu-config.js
  2. 2 0
      config/other.js
  3. 24 0
      store/other.js

+ 10 - 0
config/menu-config.js

@@ -132,6 +132,11 @@ export const school = [
     name: '计划管理', //上报名单
     module: 'school',
   },
+  {
+    path: '/newPlan/index',
+    name: '新计划管理', //上报名单
+    module: 'school',
+  },
   {
     path: '/teacher/index',
     name: '教师确认',
@@ -164,6 +169,11 @@ export const director = [
     name: '计划管理', //上报名单
     module: 'director',
   },
+  {
+    path: '/newPlan/index',
+    name: '新计划管理', //上报名单
+    module: 'director',
+  },
   {
     path: '/classes/index',
     name: '班级管理',

+ 2 - 0
config/other.js

@@ -0,0 +1,2 @@
+import Vue from 'vue';
+Vue.config.jhAppKey = 'ed73fa73956ff995bad705d664002595';

+ 24 - 0
store/other.js

@@ -0,0 +1,24 @@
+import Vue from 'vue';
+import Vuex from 'vuex';
+import _ from 'lodash';
+import axios from 'axios';
+Vue.use(Vuex);
+const api = {
+  calendar: `/jh/calendar/year`,
+};
+const state = () => ({});
+const mutations = {};
+
+const actions = {
+  async calendar({ commit }, { key, year } = {}) {
+    const res = await this.$axios.$get(`${api.calendar}`, { key, year });
+    if (res.error_code == '0') return res.result.data;
+    else this.$message.error(res.reason || '万年历接口请求失败');
+  },
+};
+export default {
+  namespaced: true,
+  state,
+  mutations,
+  actions,
+};