elective-test-reports.vue 1.2 KB

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