index.vue 989 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <!-- <ele-modal
  3. :visible.sync="showEditFlag"
  4. :close-on-click-modal="false"
  5. custom-class="ele-dialog-form"
  6. append-to-body
  7. :fullscreen="true"
  8. >
  9. </ele-modal> -->
  10. <div>
  11. <iframe
  12. :src="fileUrl"
  13. width="100%"
  14. v-if="showEditFlag"
  15. style="height: calc(100vh - 220px)"
  16. frameborder="0"
  17. allowfullscreen="true"
  18. ></iframe>
  19. </div>
  20. </template>
  21. <script>
  22. import { getJmPrintViewUrl } from '@/components/jimureport/api';
  23. // import jimureportBrowse from '@/components/jimureport/browseModal.vue';
  24. export default {
  25. // components: { jimureportBrowse },
  26. data() {
  27. return {
  28. // eomstatisticalreportprint
  29. showEditFlag: true,
  30. fileUrl: ''
  31. };
  32. },
  33. created() {
  34. this.init();
  35. },
  36. methods: {
  37. async init() {
  38. let url = await getJmPrintViewUrl('eomstatisticalreportprint');
  39. this.fileUrl = `${url}?token=${getToken()}`;
  40. }
  41. }
  42. };
  43. </script>