index.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <div id="classList">
  3. <el-tabs v-model="activeName" @tab-click="handleClick">
  4. <el-tab-pane label="班级列表" name="first">
  5. <class-list v-if="activeName == 'first'"></class-list>
  6. </el-tab-pane>
  7. <el-tab-pane label="报班学员" name="second">
  8. <trainee v-if="activeName == 'second'"></trainee>
  9. </el-tab-pane>
  10. </el-tabs>
  11. </div>
  12. </template>
  13. <script>
  14. import classList from "./classList";
  15. import trainee from "./trainee";
  16. export default {
  17. components: { classList, trainee },
  18. name: "ClassList",
  19. data() {
  20. return {
  21. activeName: "first",
  22. };
  23. },
  24. methods: {
  25. handleClick(tab, event) {
  26. console.log(tab, event);
  27. },
  28. },
  29. };
  30. </script>
  31. <style lang="less" scoped>
  32. /deep/.el-button {
  33. border-radius: 8px;
  34. }
  35. /deep/.el-dialog {
  36. border-radius: 8px;
  37. .el-dialog__header {
  38. padding: 0;
  39. .hearders {
  40. height: 40px;
  41. display: flex;
  42. align-items: center;
  43. justify-content: space-between;
  44. padding: 0px 18px 0px 20px;
  45. border-bottom: 1px solid #e2e2e2;
  46. .leftTitle {
  47. font-size: 14px;
  48. font-weight: bold;
  49. color: #2f4378;
  50. }
  51. .rightBoxs {
  52. display: flex;
  53. align-items: center;
  54. img {
  55. width: 14px;
  56. height: 14px;
  57. margin-left: 13px;
  58. cursor: pointer;
  59. }
  60. }
  61. }
  62. }
  63. .el-dialog__footer {
  64. padding: 0;
  65. .dialog-footer {
  66. padding: 0px 40px;
  67. height: 70px;
  68. border-top: 1px solid #e2e2e2;
  69. display: flex;
  70. align-items: center;
  71. justify-content: flex-end;
  72. }
  73. }
  74. }
  75. .imgBox {
  76. width: 100%;
  77. // height: 210px;
  78. border: 1px solid #e2e2e2;
  79. border-radius: 8px;
  80. padding: 8px 8px 3px;
  81. display: flex;
  82. flex-direction: column;
  83. align-items: center;
  84. .imgLabel {
  85. flex: 1;
  86. width: 100%;
  87. border: 1px dotted #e2e2e2;
  88. color: #999;
  89. font-size: 14px;
  90. cursor: pointer;
  91. border-radius: 8px;
  92. .msPhoto {
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. max-width: 100%;
  97. max-height: 270px;
  98. img {
  99. max-width: 100%;
  100. max-height: 270px;
  101. }
  102. }
  103. .imgbbx {
  104. display: flex;
  105. flex-direction: column;
  106. align-items: center;
  107. justify-content: center;
  108. width: 100%;
  109. height: 100%;
  110. i {
  111. font-weight: bold;
  112. margin: 14px 0;
  113. font-size: 24px;
  114. }
  115. }
  116. }
  117. p {
  118. margin: 5px 0px;
  119. }
  120. }
  121. </style>