TestCard.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <template>
  2. <div class="test-container">
  3. <el-card class="test-card" shadow="hover">
  4. <div class="test-card__header">
  5. <div class="test-card__name">{{ examName }}</div>
  6. <!-- 和style绑定 -->
  7. <div class="test-card__status">{{status}}</div>
  8. </div>
  9. <div class="test-card__option">
  10. <div class="test-card__time">
  11. <div class="test-card__startTime">起始:{{ startTime }}</div>
  12. <div class="test-card__endTime">结束:{{ endTime }}</div>
  13. <div class="test-card__invigilate">监考:{{ antiCheating }}</div>
  14. </div>
  15. <div class="test-card__btn">
  16. <el-button type="primary" plain @click.native="getTestDetail">查看详情</el-button>
  17. <el-button type="warning" plain @click.native="getReport">结果报告</el-button>
  18. </div>
  19. </div>
  20. </el-card>
  21. </div>
  22. </template>
  23. <script>
  24. export default {
  25. name: 'TestCard',
  26. props: {
  27. startTime: {
  28. type: String,
  29. default: ''
  30. },
  31. endTime: {
  32. type: String,
  33. default: ''
  34. },
  35. examName: {
  36. type: String,
  37. default: ''
  38. },
  39. antiCheating: {
  40. type: String,
  41. default: ''
  42. },
  43. status: {
  44. type: String,
  45. default: ''
  46. }
  47. }
  48. }
  49. </script>
  50. <style scoped>
  51. @import '~/assets/css/test-card.css';
  52. </style>