index.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <template>
  2. <el-container class="configure_Background">
  3. <el-header style="height: auto;" class="configure_header">
  4. <div class="configure_title">配置中心</div>
  5. <el-divider />
  6. <el-tabs v-model="activeName" @tab-click="handleClick">
  7. <el-tab-pane label="成员配置" name="first" />
  8. <el-tab-pane label="需求方向配置" name="second" />
  9. <el-tab-pane label="技术模块配置" name="third" />
  10. <el-tab-pane label="通知配置" name="fourth" />
  11. <el-tab-pane label="业务线配置" name="fourths" />
  12. </el-tabs>
  13. </el-header>
  14. <el-container>
  15. <el-main :class="{ 'configure_Main1': tabIndex === '0', 'configure_Main': tabIndex !== '0' }">
  16. <div v-if="tabIndex === '0'">
  17. <div class="member_demo">
  18. <div class="member_left">
  19. <member-configuration @details="detailslist" />
  20. </div>
  21. <div style="width: -webkit-fill-available; overflow-x: hidden;">
  22. <Member-details :data="childName" />
  23. </div>
  24. </div>
  25. </div>
  26. <div v-if="tabIndex === '1'">
  27. <Business />
  28. </div>
  29. <div v-if="tabIndex === '2'">
  30. <Technology />
  31. </div>
  32. <div v-if="tabIndex === '3'">
  33. <notice-config />
  34. </div>
  35. <div v-if="tabIndex === '4'">
  36. <biz-configure />
  37. </div>
  38. </el-main>
  39. </el-container>
  40. </el-container>
  41. </template>
  42. <script>
  43. import bizConfigure from './components/bizConfigure.vue'
  44. import Business from './components/BusinessDirection.vue'
  45. import Technology from './components/businessTechnology.vue'
  46. import noticeConfig from './components/noticeConfig.vue'
  47. import memberConfiguration from './components/memberConfiguration.vue'
  48. import MemberDetails from './components/MemberDetails.vue'
  49. export default {
  50. components: {
  51. bizConfigure,
  52. Business,
  53. Technology,
  54. noticeConfig,
  55. memberConfiguration,
  56. MemberDetails
  57. },
  58. data() {
  59. return {
  60. activeName: 'first',
  61. tabIndex: '0',
  62. childName: 'all'
  63. }
  64. },
  65. methods: {
  66. handleClick(tab, event) {
  67. this.tabIndex = tab.index
  68. },
  69. detailslist(val) {
  70. this.childName = val
  71. }
  72. }
  73. }
  74. </script>
  75. <style lang="scss" scoped>
  76. .configure_Background {
  77. background: #F2F3F6;
  78. >>>.el-tabs__nav-wrap::after {
  79. display: none;
  80. }
  81. >>>.el-tabs__active-bar {
  82. display: none;
  83. }
  84. >>>.el-tabs__header {
  85. margin: 0 0 20px !important;
  86. }
  87. >>>.el-tabs__item {
  88. color: #333;
  89. }
  90. }
  91. .configure_header {
  92. margin: 0 10px;
  93. background: #FFF;
  94. }
  95. .configure_Main {
  96. padding: 20px;
  97. margin: 10px;
  98. background: #FFF;
  99. min-height: calc(100vh - 236px);
  100. }
  101. .configure_Main1 {
  102. margin: 10px;
  103. background: #FFF;
  104. padding: 0px;
  105. min-height: calc(100vh - 236px);
  106. }
  107. .configure_title {
  108. font-size: 22px;
  109. font-weight: 800;
  110. color: #444;
  111. padding-top: 20px;
  112. display: table-cell;
  113. vertical-align: middle;
  114. }
  115. .member_demo {
  116. display: flex;
  117. justify-content: flex-start;
  118. }
  119. .member_left {
  120. width: 220px;
  121. border-right: 1px solid #EEEEEE;
  122. min-height: calc(100vh - 236px);
  123. padding: 0 !important;
  124. }
  125. </style>