transcript.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <template>
  2. <!-- 成绩单 主页面-->
  3. <div>
  4. <TranscriptTotal v-if="isTotalScore" />
  5. <TranscriptSingle v-else />
  6. <!-- <StudentReport ref="studentReportPdf" @closePdfLoading="closePdfLoading" @isPdfDataLoadEnd="isPdfDataLoadEnd"></StudentReport> -->
  7. </div>
  8. </template>
  9. <script>
  10. import TranscriptSingle from "@/views/analysisReport/studentPage/scrolReport/transcript_single";//单科的G组分析
  11. import TranscriptTotal from "@/views/analysisReport/studentPage/scrolReport/transcript_total";//单科的G组分析
  12. // import StudentReport from '../downloadPdf/studentReport.vue'
  13. export default {
  14. components: {
  15. TranscriptSingle,
  16. TranscriptTotal,
  17. // StudentReport
  18. },
  19. computed: {
  20. isTotalScore(){
  21. return this.$store.state.report.isTotalScore;
  22. }
  23. },
  24. data() {
  25. return {
  26. };
  27. },
  28. created()
  29. {
  30. },
  31. mounted() {
  32. },
  33. methods:{
  34. //点击顶部下载PDF按钮导出
  35. DownloadPdf(){
  36. if(this.$refs.studentReportPdf){
  37. this.$refs.studentReportPdf.DownloadPdf();
  38. }
  39. },
  40. //是否显示pdf下载按钮
  41. isPdfDataLoadEnd(){
  42. this.$emit('isPdfDataLoadEnd')
  43. },
  44. //向父级页面传值关闭下载Pdf按钮loading
  45. closePdfLoading(){
  46. this.$emit('closePdfLoading')
  47. },
  48. },
  49. };
  50. </script>
  51. <style scoped lang="scss">
  52. </style>