ResultDetail.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <view>
  3. <view class="info-box">
  4. <view><h3>{{data.title}}</h3></view>
  5. <view>试卷总分:{{ data.totalScore }}分</view>
  6. <view>及格分数:{{ data.qualifyScore }}分</view>
  7. <view>考试用时:{{data.userTime}}分钟</view>
  8. <view>考试得分:{{data.userScore}}分</view>
  9. <view class="desc-box">
  10. 考试结果:
  11. <view v-if="data.userScore >= data.qualifyScore" class="desc-box">
  12. <icon type="success" size="16" color="#09BB07" />
  13. <text class="text">合格</text>
  14. </view>
  15. <view v-else>
  16. <view v-if="data.state==1" class="desc-box">
  17. <icon type="waiting" size="16" color="#FF8000" />
  18. <text class="text">待阅卷</text>
  19. </view>
  20. <view v-else class="desc-box">
  21. <icon type="warn" size="16" color="#FF0000" />
  22. <text class="text">不合格</text>
  23. </view>
  24. </view>
  25. </view>
  26. <view v-if="data.hasSaq && data.state==1">
  27. 阅卷提示:<text style="color: #FF8000; ">阅卷后将重新累计分数,请耐心等候!</text>
  28. </view>
  29. <view v-if="data.reviewer_dictText!=null && data.reviewer_dictText!=''">阅卷老师:{{data.reviewer_dictText}}</view>
  30. <view v-if="data.remark!=null && data.remark!=''">阅卷评语:{{data.remark}}</view>
  31. </view>
  32. <view v-for="group in data.groupList">
  33. <view class="group-title">
  34. <view>{{group.title}} </view>
  35. <view>共{{group.quCount}}题,总{{group.totalScore}}分</view>
  36. </view>
  37. <view v-for="item in group.quList">
  38. <qu-item-show :value="item"></qu-item-show>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import QuItemShow from "./QuItemShow.vue"
  45. export default {
  46. name: 'ResultDetail',
  47. components: { QuItemShow },
  48. props: {
  49. data: Object
  50. },
  51. data() {
  52. return {
  53. postForm: {
  54. resultType: null,
  55. groupList: []
  56. }
  57. }
  58. },
  59. created() {
  60. this.postForm = this.data
  61. },
  62. methods: {
  63. }
  64. }
  65. </script>
  66. <style>
  67. .container {
  68. font-size: 16rpx;
  69. line-height: 30px;
  70. padding: 15px;
  71. }
  72. .info-box{
  73. border-bottom: #efefef 10px solid;
  74. font-size: 16px;
  75. padding-bottom: 10px;
  76. margin-bottom: 20px;
  77. margin-top: -25px;
  78. }
  79. .dqu-item{
  80. border-bottom: #eee 1px solid;
  81. padding-bottom: 10px;
  82. margin-bottom: 30px;
  83. }
  84. .group-title{
  85. background: #eee;
  86. padding: 10px;
  87. color: #555;
  88. margin-bottom: 20px;
  89. font-weight: 700;
  90. display: flex;
  91. align-items: center;
  92. }
  93. .group-title :first-child {
  94. flex-grow: 1;
  95. }
  96. .uni-card{
  97. margin: 10px 0px !important;
  98. }
  99. </style>