studentDetail.vue 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <div class="sMesBox">
  3. <div class="top">
  4. <div class="left">
  5. <div class="tx">
  6. <img
  7. :src="require('../../../assets/icon/englishVoice/icon_portal.png')"
  8. alt=""
  9. />
  10. </div>
  11. <div class="sMessage">
  12. <div>李二妞</div>
  13. <div>2024-04-01 23:59</div>
  14. </div>
  15. </div>
  16. <div class="right">
  17. <div>上一步</div>
  18. <div>下一步</div>
  19. </div>
  20. </div>
  21. <div class="tips">
  22. 本轮对话的预设时间是<span style="color: #3681fc">{{ time }}min</span
  23. >,该学生<span style="color: #e44">超时{{ maxTime }}min</span>
  24. ,对话总共用了<span style="color: #3681fc">{{ turn }}</span
  25. >轮。
  26. </div>
  27. <div class="lookWho">
  28. <div :class="type == 0 ? 'isLook' : ''" @click="type = 0">查看报告</div>
  29. <div :class="type == 1 ? 'isLook' : ''" @click="type = 1">查看对话</div>
  30. </div>
  31. <report v-if="type == 0"></report>
  32. <talk v-if="type == 1"></talk>
  33. </div>
  34. </template>
  35. <script>
  36. import report from "./components/report";
  37. import talk from "./components/talk";
  38. export default {
  39. components: {
  40. report,
  41. talk,
  42. },
  43. data() {
  44. return {
  45. time: "10",
  46. maxTime: "5",
  47. turn: "6",
  48. type: 0,
  49. };
  50. },
  51. };
  52. </script>
  53. <style scoped>
  54. .sMesBox {
  55. height: 100%;
  56. width: 100%;
  57. padding: 10px;
  58. box-sizing: border-box;
  59. }
  60. .top {
  61. display: flex;
  62. flex-direction: row;
  63. flex-wrap: nowrap;
  64. align-items: center;
  65. justify-content: space-between;
  66. height: 45px;
  67. padding: 0 0 15px 0;
  68. border-bottom: 2px solid #e7e7e7;
  69. }
  70. .left {
  71. display: flex;
  72. flex-direction: row;
  73. flex-wrap: nowrap;
  74. align-items: center;
  75. height: 100%;
  76. }
  77. .tx {
  78. width: 45px;
  79. height: 45px;
  80. }
  81. .tx > img {
  82. width: 100%;
  83. height: 100%;
  84. }
  85. .sMessage {
  86. display: flex;
  87. flex-direction: column;
  88. flex-wrap: nowrap;
  89. align-items: flex-start;
  90. margin: 0 0 0 10px;
  91. height: 100%;
  92. justify-content: space-between;
  93. }
  94. .sMessage > div:last-child {
  95. font-size: 12px;
  96. color: #757a83;
  97. }
  98. .sMesBox > .top > .right {
  99. display: flex;
  100. flex-direction: row;
  101. flex-wrap: nowrap;
  102. align-items: center;
  103. height: 100%;
  104. }
  105. .sMesBox > .top > .right > div {
  106. cursor: pointer;
  107. color: #4c8efc;
  108. }
  109. .sMesBox > .top > .right > div:first-child {
  110. margin: 0 10px 0 0;
  111. }
  112. .tips {
  113. margin: 10px 0;
  114. color: #9d9d9d;
  115. }
  116. .lookWho {
  117. display: flex;
  118. flex-direction: row;
  119. flex-wrap: nowrap;
  120. align-items: center;
  121. margin: 0 0 10px 0;
  122. }
  123. .lookWho > div {
  124. width: 100px;
  125. height: 35px;
  126. font-size: 16px;
  127. text-align: center;
  128. line-height: 35px;
  129. cursor: pointer;
  130. margin: 0 10px 0 0;
  131. }
  132. .isLook {
  133. border-bottom: 2px solid #3681fc;
  134. color: #4a8dfc;
  135. }
  136. </style>