index.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <!-- -->
  2. <template>
  3. <div class="m-container">
  4. <h2>
  5. <div class="squrt"></div>
  6. 小课课耗统计
  7. </h2>
  8. <div class="m-core">
  9. <tab-router
  10. v-model.trim="activeIndex"
  11. type="card"
  12. @tab-click="handleClick"
  13. >
  14. <el-tab-pane label="实际课耗" lazy name="1" v-permission="'studentCourseConsumer/queryCourseConsumer'">
  15. <actualList v-if="activeIndex === '1'" />
  16. </el-tab-pane>
  17. <el-tab-pane label="预计课耗" lazy name="2" v-permission="'studentCourseConsumer/queryPreCourseConsumer'">
  18. <preList v-if="activeIndex === '2'" />
  19. </el-tab-pane>
  20. <el-tab-pane label="课耗统计" lazy name="3" v-permission="'studentCourseConsumer/queryCourseConsumerSum'">
  21. <statisticsList v-if="activeIndex === '3'" />
  22. </el-tab-pane>
  23. </tab-router>
  24. </div>
  25. </div>
  26. </template>
  27. <script>
  28. import actualList from './components/actualList.vue';
  29. import preList from './components/preList'
  30. import statisticsList from './components/statisticsList'
  31. // import theoryClass from './theoryClass';
  32. // import auditionClass from './auditionClass';
  33. export default {
  34. components: { actualList ,preList,statisticsList},
  35. data() {
  36. return {
  37. activeIndex: "1",
  38. };
  39. },
  40. methods: {
  41. handleClick(evt) {
  42. // this.changeHash(evt.name);
  43. },
  44. },
  45. };
  46. </script>
  47. <style lang='scss' scoped>
  48. </style>