elective-test-reports.vue 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div>
  3. <div v-for="test in testResults" :key="test.key" class="print-page elective-report-card">
  4. <index-card :title="test.title">
  5. <test-report :category="test.key" :source="test.result" readonly></test-report>
  6. </index-card>
  7. </div>
  8. <div class="print-page elective-report-card">
  9. <index-card title="选科测评专业">
  10. <test-result :all-test-results="testResults" :selected-majors="summary.selectedList" readonly></test-result>
  11. <major-match-evaluation></major-match-evaluation>
  12. </index-card>
  13. </div>
  14. </div>
  15. </template>
  16. <script>
  17. import TestSummary from '@/views/elective/test/components/test-summary'
  18. import IndexCard from '@/views/index/components/index-card'
  19. import TestReport from '@/views/elective/test/components/test-report'
  20. import MajorMatchEvaluation from '@/views/elective/report/components/major-match-evaluation'
  21. export default {
  22. name: 'elective-test-reports',
  23. extends: TestSummary, // NOTE: 这里直接继承了TestSummary页面的关键能力
  24. components: { MajorMatchEvaluation, TestReport, IndexCard }
  25. }
  26. </script>
  27. <style scoped>
  28. .elective-report-card > /deep/ .el-card__body {
  29. padding: 0;
  30. }
  31. .elective-report-card + .elective-report-card {
  32. margin-top: 20px;
  33. }
  34. </style>