Introduce.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <template>
  2. <div class="news">
  3. <Banner :img="require('@/assets/img/introduce.png')" />
  4. <div class="common-container">
  5. <el-container>
  6. <LeftTabs title="中心简介" :options="options" @tabSelect="tabSelect" />
  7. <RightContent :selectTab="selectTab" :breadList="breadList" />
  8. </el-container>
  9. </div>
  10. </div>
  11. </template>
  12. <script>
  13. import Banner from "../components/Banner";
  14. import LeftTabs from '@/components/LeftTabs'
  15. import RightContent from '@/components/RightContent'
  16. export default {
  17. name: "Introduce",
  18. components: {
  19. Banner,
  20. LeftTabs,
  21. RightContent
  22. },
  23. data() {
  24. return {
  25. loading: true,
  26. selectTab: {},
  27. options: [
  28. {
  29. label: '平台简介',
  30. type: 'intro'
  31. },
  32. {
  33. label: '平台人员',
  34. type: 'staff'
  35. },
  36. {
  37. label: '规章制度',
  38. type: 'institution'
  39. }
  40. ],
  41. routeList: [
  42. {
  43. name: '首页',
  44. path: '/'
  45. },
  46. {
  47. name: '中心介绍'
  48. }
  49. ],
  50. breadList: []
  51. };
  52. },
  53. methods: {
  54. // 选择tab
  55. tabSelect(row) {
  56. this.selectTab = { ...row }
  57. this.breadList = [...this.routeList, { name: this.selectTab.label }]
  58. }
  59. }
  60. };
  61. </script>
  62. <style lang="scss" scoped>
  63. </style>