lrf402788946 4 anni fa
parent
commit
e97638d139

+ 7 - 7
src/router/index.js

@@ -12,13 +12,13 @@ const routes = [
     component: () => import('@/views/index.vue'),
     children: [
       {
-        path: '/teacherInfo/index',
+        path: '/info',
         name: 'teacherInfo_index',
         meta: { title: '教师信息', sub: '管理' },
         component: () => import('@/views/teacherInfo/index.vue'),
       },
       {
-        path: '/plan/index',
+        path: '/newPlan/index',
         name: 'plan_list',
         meta: { title: '计划', sub: '列表' },
         component: () => import('@/views/plan/index.vue'),
@@ -48,7 +48,7 @@ const routes = [
         component: () => import('@/views/plan/classes/info.vue'),
       },
       {
-        path: '/lesson/index',
+        path: '/train/plan/term/lesson',
         name: 'lesson_index',
         meta: { title: '课程信息' },
         component: () => import('@/views/lesson/index.vue'),
@@ -78,14 +78,14 @@ const routes = [
         component: () => import('@/views/class/index.vue'),
       },
       {
-        path: '/class/classStuList',
+        path: '/student/index',
         name: 'class_classStuList',
         meta: { title: '学生名单' },
         component: () => import('@/views/class/classStuList.vue'),
       },
       // 在线授课
       {
-        path: '/teaching/index',
+        path: '/centerTeaching/index',
         name: 'teaching_index',
         meta: { title: '直播讲课' },
         component: () => import('@/views/teaching/index.vue'),
@@ -103,7 +103,7 @@ const routes = [
         component: () => import('@/views/teaching/live.vue'),
       },
       {
-        path: '/teaching/afterClass',
+        path: '/centerTeaching/afterClass',
         name: 'teaching_afterClass',
         meta: { title: '课后答疑', sub: '管理' },
         component: () => import('@/views/teaching/afterClass.vue'),
@@ -115,7 +115,7 @@ const routes = [
         component: () => import('@/views/teaching/afterClassDetail.vue'),
       },
       {
-        path: '/teaching/afterClassList',
+        path: '/teaching/list',
         name: 'teaching_afterClassList',
         meta: { title: '答疑列表', sub: '管理' },
         component: () => import('@/views/teaching/afterClassList.vue'),

+ 2 - 0
src/store/index.js

@@ -27,6 +27,7 @@ import gensign from '@frame/store/gensign';
 import personalscore from '@frame/store/personalscore';
 import groupscore from '@frame/store/groupscore';
 import classtype from '@frame/store/classtype';
+import userMenu from '@frame/store/auth/userMenu';
 import * as ustate from '@frame/store/user/state';
 import * as umutations from '@frame/store/user/mutations';
 import * as dostate from '@frame/store/setting/state';
@@ -72,5 +73,6 @@ export default new Vuex.Store({
     gensign,
     nation,
     classtype,
+    userMenu,
   },
 });

+ 1 - 1
src/views/teaching/afterClassChat.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="afterClassChat">
-    <detail-frame :title="mainTitle" returns="/teaching/afterClassList">
+    <detail-frame :title="mainTitle" returns="/teaching/list">
       <el-col :span="24" style="padding:0 35%">
         <chat :chatList="chatList" @speak="speak"></chat>
       </el-col>

+ 2 - 2
src/views/teaching/afterClassDetail.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="afterClassDetail">
-    <detail-frame :title="mainTitle" returns="/teaching/afterClass">
+    <detail-frame :title="mainTitle" returns="/centerTeaching/afterClass">
       <data-form :data="info" :fields="fields" :rules="rules" @save="handleSave" :isNew="isNew">
         <template #options="{item}">
           <template v-if="item.model === 'subid'">
@@ -94,7 +94,7 @@ export default {
         res = await this.update(data);
         msg = `${this.keyWord}修改成功`;
       }
-      if (this.$checkRes(res, msg)) this.$router.push({ path: '/teaching/afterClass' });
+      if (this.$checkRes(res, msg)) this.$router.push({ path: '/centerTeaching/afterClass' });
     },
     // 选择时间
     changeDate(value) {

+ 2 - 2
src/views/teaching/detail.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="detail">
-    <detail-frame :title="mainTitle" returns="/teaching/index">
+    <detail-frame :title="mainTitle" returns="/centerTeaching/index">
       <data-form :data="info" :fields="fields" :rules="rules" @save="handleSave" :isNew="isNew">
         <template #options="{item}">
           <template v-if="item.model === 'subid'">
@@ -81,7 +81,7 @@ export default {
         res = await this.update(data);
         msg = `${this.keyWord}修改成功`;
       }
-      if (this.$checkRes(res, msg)) this.$router.push({ path: '/teaching/index' });
+      if (this.$checkRes(res, msg)) this.$router.push({ path: '/centerTeaching/index' });
     },
   },
   computed: {

+ 1 - 1
src/views/teaching/live.vue

@@ -1,6 +1,6 @@
 <template>
   <div id="live">
-    <detail-frame :title="mainTitle" returns="/teaching/index">
+    <detail-frame :title="mainTitle" returns="/centerTeaching/index">
       <el-col :span="24" class="main">
         <el-col :span="24" class="top">
           <el-col :span="12" class="left">