63062e55ea0f79a79381381bd0ca2ac4de0bb5b4.svn-base 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!-- -->
  2. <template>
  3. <el-dialog
  4. width="80%"
  5. class=""
  6. title="导出"
  7. :fullscreen="fullscreen"
  8. @close="closeModal"
  9. append-to-body
  10. :close-on-click-modal="false"
  11. :visible.sync="showExportDialog">
  12. <img src="../../../assets/large.png" class="btnFull large" v-if="!fullscreen" @click="resizeFull"/>
  13. <img src="../../../assets/small.png" class="btnFull small" v-if="fullscreen" @click="resizeFull"/>
  14. <div :style="{'height': (fullscreen?dialogHeight:dialogHeight1) + 'px'}">
  15. <iframe :src="'/demo/reportJsp/showReport.jsp?rpx=js_TAC_PBLM_INFO.rpx&width=1526&height=592' + '&rgstrId=' + currentNodeId + '&LIST_TYPE=' + listType" frameborder="0" width="100%" height="100%" style="overflow: auto"></iframe>
  16. </div>
  17. </el-dialog>
  18. </template>
  19. <script>
  20. //这里可以导入其他文件(比如:组件,工具js,第三方插件js,json文件,图片文件等等)
  21. //例如:import 《组件名称》 from '《组件路径》';
  22. export default {
  23. //import引入的组件需要注入到对象中才能使用
  24. props:['currentNodeId','listType'],
  25. components: {},
  26. data() {
  27. //这里存放数据
  28. return {
  29. fullscreen:false,
  30. showExportDialog: true,
  31. dialogHeight:window.innerHeight - 70,
  32. dialogHeight1:window.innerHeight - 300,
  33. };
  34. },
  35. //监听属性 类似于data概念
  36. computed: {},
  37. //监控data中的数据变化
  38. watch: {
  39. currentNodeId(n,o){
  40. this.currentNodeId = n;
  41. },
  42. listType(n,o){
  43. this.listType = n;
  44. },
  45. },
  46. //方法集合
  47. methods: {
  48. closeModal(){
  49. this.$emit('dialogClose')
  50. },
  51. resizeFull(){
  52. this.fullscreen = !this.fullscreen;
  53. }
  54. },
  55. //生命周期 - 创建完成(可以访问当前this实例)
  56. created() {
  57. },
  58. //生命周期 - 挂载完成(可以访问DOM元素)
  59. mounted() {
  60. },
  61. beforeCreate() {}, //生命周期 - 创建之前
  62. beforeMount() {}, //生命周期 - 挂载之前
  63. beforeUpdate() {}, //生命周期 - 更新之前
  64. updated() {}, //生命周期 - 更新之后
  65. beforeDestroy() {}, //生命周期 - 销毁之前
  66. destroyed() {}, //生命周期 - 销毁完成
  67. activated() {}, //如果页面有keep-alive缓存功能,这个函数会触发
  68. }
  69. </script>
  70. <style scoped>
  71. .btnFull{
  72. position: absolute;
  73. z-index: 1000;
  74. top: 16px;
  75. right: 50px;
  76. width: 16px;
  77. height: 16px;
  78. cursor: pointer;
  79. }
  80. </style>