other.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <template>
  2. <div id="other">
  3. <el-row>
  4. <el-col :span="24">
  5. <el-col :span="24" class="infoone">
  6. <el-col :span="24" class="infoonebei">
  7. <span>03其他</span>
  8. </el-col>
  9. </el-col>
  10. <el-col :span="24" class="infoonelist">
  11. <el-tabs v-model="activeName" @tab-click="handleClick">
  12. <el-tab-pane v-for="(item, index) in otherList" :key="index" label="事业单位" :name="`${index}`">
  13. <el-col :span="24" class="list">
  14. <el-col :span="24" class="listinfo" v-for="(item, index) in danweilist" :key="index">
  15. <el-col :span="21">
  16. <span class="qiu"></span>
  17. <el-link :underline="false">
  18. <p class="title">{{ item.title }}</p>
  19. </el-link>
  20. </el-col>
  21. <el-col :span="3" class="date">
  22. {{ item.date }}
  23. </el-col>
  24. </el-col>
  25. </el-col>
  26. </el-tab-pane>
  27. </el-tabs>
  28. <el-link :underline="false" class="add"><i class="el-icon-plus"></i></el-link>
  29. </el-col>
  30. </el-col>
  31. </el-row>
  32. </div>
  33. </template>
  34. <script>
  35. export default {
  36. name: 'other',
  37. props: {
  38. otherList: null,
  39. },
  40. components: {},
  41. data: () => ({
  42. activeName: 'first',
  43. }),
  44. created() {},
  45. computed: {},
  46. methods: {
  47. handleClick(tab, event) {
  48. // eslint-disable-next-line no-console
  49. console.log(tab, event);
  50. },
  51. },
  52. };
  53. </script>
  54. <style lang="less" scoped>
  55. p {
  56. margin: 0;
  57. padding: 0;
  58. }
  59. .infoone {
  60. height: 476px;
  61. }
  62. .infoonebei {
  63. width: 294px;
  64. height: 476px;
  65. background: #415285;
  66. }
  67. .infoonebei span {
  68. display: inline-block;
  69. width: 294px;
  70. text-align: center;
  71. height: 108px;
  72. line-height: 108px;
  73. font-size: 42px;
  74. color: #fff;
  75. }
  76. .infoonelist {
  77. width: 1130px;
  78. height: 348px;
  79. background: #fff;
  80. position: absolute;
  81. top: 100px;
  82. left: 71px;
  83. box-shadow: 0px 0px 5px #ccc;
  84. }
  85. .add {
  86. position: absolute;
  87. top: 40px;
  88. right: 20px;
  89. width: 30px;
  90. height: 30px;
  91. line-height: 30px;
  92. text-align: center;
  93. border: 1px solid #ccc;
  94. border-radius: 5px;
  95. }
  96. .add .el-link--inner {
  97. font-size: 30px;
  98. }
  99. /deep/.el-tabs__header {
  100. margin: 0;
  101. }
  102. /deep/.el-tabs__nav-wrap {
  103. height: 90px;
  104. }
  105. /deep/.el-tabs__item {
  106. font-size: 26px;
  107. height: 90px;
  108. line-height: 112px;
  109. }
  110. /deep/.el-tabs__item.is-active {
  111. color: #415285;
  112. }
  113. /deep/.el-tabs__nav-wrap::after {
  114. background-color: transparent;
  115. }
  116. /deep/.el-tabs__active-bar {
  117. background-color: #415285;
  118. height: 4px;
  119. }
  120. /deep/.el-tabs--top .el-tabs__item.is-top:nth-child(2) {
  121. padding-left: 20px;
  122. }
  123. .list {
  124. height: 259px;
  125. overflow: hidden;
  126. }
  127. .listinfo {
  128. padding: 26px 0 0 0;
  129. }
  130. .list .qiu {
  131. display: inline-block;
  132. width: 4px;
  133. height: 5px;
  134. background: #999;
  135. margin: 0 5px 0 25px;
  136. }
  137. .list .title {
  138. font-size: 24px;
  139. color: #000;
  140. }
  141. .list .date {
  142. font-size: 24px;
  143. color: #999;
  144. }
  145. </style>