jiaoshistu.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <template>
  2. <div id="stuleaveList">
  3. <el-row>
  4. <el-col :span="24">
  5. <el-col :span="24" class="list">
  6. <el-col :span="18" class="name">
  7. <p>班主任姓名:{{ teacherinfo.name }}</p>
  8. </el-col>
  9. <el-col :span="6" class="btn">
  10. <el-link :underline="false" @click="clicktea(teacherinfo.id)">详情</el-link>
  11. </el-col>
  12. </el-col>
  13. <el-col :span="24" class="list" v-for="(item, index) in newclassList" :key="index">
  14. <el-col :span="18" class="name">
  15. <p>学生姓名:{{ item.name }}</p>
  16. </el-col>
  17. <el-col :span="6" class="btn">
  18. <el-link :underline="false" @click="clickShows(item.id)">详情</el-link>
  19. </el-col>
  20. </el-col>
  21. </el-col>
  22. </el-row>
  23. </div>
  24. </template>
  25. <script>
  26. export default {
  27. name: 'stuleaveList',
  28. props: {
  29. newclassList: null,
  30. leaveInfo: null,
  31. show: null,
  32. headinfo: null,
  33. teacherinfo: null,
  34. },
  35. components: {},
  36. data: () => ({}),
  37. created() {},
  38. computed: {},
  39. methods: {
  40. clickShows(id) {
  41. this.$router.push({ path: '/class/stuDetail', query: { id } });
  42. },
  43. clicktea(id) {
  44. console.log(id);
  45. this.$router.push({ path: '/class/stuDetail', query: { id } });
  46. },
  47. },
  48. };
  49. </script>
  50. <style lang="less" scoped>
  51. p {
  52. padding: 0;
  53. margin: 0;
  54. }
  55. .list {
  56. margin: 10px 10px 0 10px;
  57. background: #fff;
  58. width: 95%;
  59. padding: 10px;
  60. border-radius: 10px;
  61. }
  62. .list .name {
  63. padding: 5px 0;
  64. }
  65. .list .btn {
  66. padding: 5px 0;
  67. text-align: center;
  68. }
  69. .wrapper {
  70. display: flex;
  71. align-items: center;
  72. justify-content: center;
  73. height: 100%;
  74. }
  75. .leaveInfo {
  76. width: 90%;
  77. background: #ffffff;
  78. padding: 0 0 10px 0;
  79. border-radius: 10px;
  80. }
  81. .info {
  82. height: 450px;
  83. overflow-y: auto;
  84. }
  85. .jilu {
  86. text-align: center;
  87. padding: 10px 0;
  88. }
  89. .leavelist {
  90. padding: 10px 10px 0 10px;
  91. }
  92. .leavelist .date p {
  93. padding: 0;
  94. }
  95. .leavelist .status {
  96. padding: 10px 0;
  97. }
  98. </style>