mo 5 lat temu
rodzic
commit
d3b989a8d7
2 zmienionych plików z 6 dodań i 8 usunięć
  1. 3 6
      src/router/index.js
  2. 3 2
      src/views/teamDetail/calendarList.vue

+ 3 - 6
src/router/index.js

@@ -82,12 +82,7 @@ export const constantRoutes = [
     component: () => import('@/views/login/index'),
     component: () => import('@/views/login/index'),
     hidden: true
     hidden: true
   },
   },
-  {
-    path: '/calendar',
-    name: '日历调试',
-    component: () => import('@/calendar'),
-    hidden: true
-  },
+
   {
   {
     path: '/',
     path: '/',
     redirect: '/main/main'
     redirect: '/main/main'
@@ -311,5 +306,7 @@ export const asyncRoutes = {
   recodeList: () => import('@/views/recodeManager/recodeList'),
   recodeList: () => import('@/views/recodeManager/recodeList'),
   // 考级报名列表
   // 考级报名列表
   levelManager: () => import('@/views/levelManager/levelManager'),
   levelManager: () => import('@/views/levelManager/levelManager'),
+  // 日历课表
+  calendarList: () => import('@/views/teamDetail/calendarList')
 }
 }
 export default router
 export default router

+ 3 - 2
src/calendar.vue → src/views/teamDetail/calendarList.vue

@@ -1,5 +1,5 @@
 <template>
 <template>
-  <div style='width:800px;'>
+  <div>
     <el-calendar>
     <el-calendar>
       <!-- 这里使用的是 2.5 slot 语法,对于新项目请使用 2.6 slot 语法-->
       <!-- 这里使用的是 2.5 slot 语法,对于新项目请使用 2.6 slot 语法-->
       <template slot="dateCell"
       <template slot="dateCell"
@@ -25,6 +25,7 @@ export default {
     }
     }
   },
   },
   mounted () {
   mounted () {
+    console.log('来了')
     getCourseSchedule({ musicGroupId: '20052813552500001', rows: 100, page: 1 }).then(res => {
     getCourseSchedule({ musicGroupId: '20052813552500001', rows: 100, page: 1 }).then(res => {
       if (res.code === 200) {
       if (res.code === 200) {
         this.dataList = res.data.rows
         this.dataList = res.data.rows
@@ -44,7 +45,7 @@ export default {
 <style lang="scss" scoped>
 <style lang="scss" scoped>
 /deep/.el-calendar-day {
 /deep/.el-calendar-day {
   box-sizing: border-box;
   box-sizing: border-box;
-
+  height: 80px !important;
   p {
   p {
     height: 100%;
     height: 100%;
   }
   }