studentInfo.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <div class="studentDetail">
  3. <el-form ref="form" label-width="130px">
  4. <el-row>
  5. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  6. <el-form-item label="学生姓名">
  7. <el-input disabled :value="studentForm.username"></el-input>
  8. </el-form-item>
  9. </el-col>
  10. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  11. <el-form-item label="学生性别">
  12. <el-input :value="studentForm.gender ? '男' : '女'" disabled></el-input>
  13. </el-form-item>
  14. </el-col>
  15. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  16. <el-form-item label="出生年月">
  17. <el-input :value="studentForm.birthdate" disabled></el-input>
  18. </el-form-item>
  19. </el-col>
  20. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  21. <el-form-item label="家长姓名">
  22. <el-input :value="studentForm.realName" disabled></el-input>
  23. </el-form-item>
  24. </el-col>
  25. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  26. <el-form-item label="联系电话">
  27. <el-input :value="studentForm.parentsPhone" disabled></el-input>
  28. </el-form-item>
  29. </el-col>
  30. <!-- <el-col :xl="6" :lg="8" :md="8" :xs="12">
  31. <el-form-item label="年级班级">
  32. <el-input
  33. :value="studentForm.currentGrade + studentForm.currentClass"
  34. disabled
  35. ></el-input>
  36. </el-form-item>
  37. </el-col> -->
  38. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  39. <el-form-item label="所属分部">
  40. <el-input :value="studentForm.organName" disabled ></el-input>
  41. </el-form-item>
  42. </el-col>
  43. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  44. <el-form-item label="学员声部">
  45. <el-input :value="studentForm.subjectName" disabled ></el-input>
  46. </el-form-item>
  47. </el-col>
  48. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  49. <el-form-item label="是否运营">
  50. <el-input :value="studentForm.operatingTag ? '是' : '否'" disabled></el-input>
  51. </el-form-item>
  52. </el-col>
  53. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  54. <el-form-item label="是否服务">
  55. <el-input :value="studentForm.serviceTag ? '是' : '否'" disabled></el-input>
  56. </el-form-item>
  57. </el-col>
  58. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  59. <el-form-item label="指导老师">
  60. <el-input :value="studentForm.teacherName" disabled></el-input>
  61. </el-form-item>
  62. </el-col>
  63. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  64. <el-form-item label="是否是新用户">
  65. <template slot="label">
  66. <p style="position: relative">
  67. 是否是新用户
  68. <el-tooltip placement="top" popper-class="mTooltip">
  69. <div slot="content">
  70. 未购买VIP课程的学员为新用户
  71. </div>
  72. <i
  73. class="el-icon-question"
  74. style="font-size: 18px; color: #f56c6c"
  75. ></i>
  76. </el-tooltip>
  77. </p>
  78. </template>
  79. <el-input :value="studentForm.isNewUser ? '是' : '否'" disabled></el-input>
  80. </el-form-item>
  81. </el-col>
  82. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  83. <el-form-item label="关心包">
  84. <el-input :value="studentForm.carePackage | studentPackage" disabled></el-input>
  85. </el-form-item>
  86. </el-col>
  87. <el-col :xl="6" :lg="8" :md="8" :xs="12">
  88. <el-form-item label="加油包">
  89. <el-input :value="studentForm.comeOnPackage | studentPackage" disabled></el-input>
  90. </el-form-item>
  91. </el-col>
  92. </el-row>
  93. </el-form>
  94. </div>
  95. </template>
  96. <script>
  97. // import {
  98. // findStudentBaseInfo
  99. // } from "@/api/studentManager";
  100. export default {
  101. name: "studentInfo",
  102. data() {
  103. const query = this.$route.query
  104. return {
  105. studentForm: query || {},
  106. };
  107. },
  108. mounted() {
  109. this.__init();
  110. },
  111. methods: {
  112. __init() {
  113. // this.userId = this.$route.query.userId;
  114. // findStudentBaseInfo({ userId: this.userId }).then(res => {
  115. // if (res.code == 200) {
  116. // this.studentForm = res.data;
  117. // }
  118. // });
  119. }
  120. }
  121. };
  122. </script>
  123. <style lang="scss" scope>
  124. .studentDetail {
  125. margin-top: 20px;
  126. .teamList {
  127. margin-top: 20px;
  128. h4 {
  129. margin-bottom: 20px;
  130. }
  131. }
  132. }
  133. </style>