teacher.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <div id="teacher">
  3. <el-col :span="24" class="style">
  4. <el-col :span="24" class="top">
  5. <NavBar v-show="navShow" :title="title" :isleftarrow="isleftarrow"> </NavBar>
  6. </el-col>
  7. <el-col :span="24" class="main">
  8. <teacherInfo :teaid="teaid"></teacherInfo>
  9. </el-col>
  10. <el-col :span="24" class="foot">
  11. <footInfo></footInfo>
  12. </el-col>
  13. </el-col>
  14. </div>
  15. </template>
  16. <script>
  17. import NavBar from '@/layout/common/topInfo.vue';
  18. import footInfo from '@/layout/common/footInfo.vue';
  19. import teacherInfo from '@/layout/teacher/teacherInfo.vue';
  20. import { mapState, createNamespacedHelpers } from 'vuex';
  21. export default {
  22. name: 'teacher',
  23. props: {},
  24. components: { NavBar, footInfo, teacherInfo },
  25. data: () => ({
  26. teaid: {},
  27. isleftarrow: '',
  28. navShow: true,
  29. title: '教师信息',
  30. }),
  31. created() {
  32. this.search();
  33. },
  34. computed: {
  35. id() {
  36. return this.$route.query.teaid;
  37. },
  38. },
  39. methods: {
  40. async search() {
  41. this.teaid = this.id;
  42. },
  43. },
  44. };
  45. </script>
  46. <style lang="less" scoped>
  47. .top {
  48. height: 46px;
  49. overflow: hidden;
  50. }
  51. .foot {
  52. height: 90px;
  53. overflow: hidden;
  54. }
  55. </style>