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">
  4. <test-report :category="test.key" :source="test.result" readonly></test-report>
  5. </index-card>
  6. <index-card title="选科测评专业" class="mt20">
  7. <test-result :all-test-results="testResults" :selected-majors="summary.selectedList" readonly></test-result>
  8. <elective-major-match></elective-major-match>
  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 ElectiveMajorMatch from '@/views/elective/report/components/elective-major-match'
  17. export default {
  18. name: 'elective-test-reports',
  19. extends: TestSummary, // NOTE: 这里直接继承了TestSummary页面的关键能力
  20. components: { ElectiveMajorMatch, 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>