01350e3d25082376bcbef2c7ec1f8ef8a6cee13d.svn-base 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <template>
  2. <el-container>
  3. <el-main>
  4. <div class="search_wrapper">
  5. <div>
  6. <span class="demonstration" style="margin-right: 5px;">问题名称:</span>
  7. <el-input v-model="pblmName" placeholder="请输入" style="width:130px"></el-input>
  8. <span class="demonstration" style="margin-right: 5px;margin-left: 7px">严重程度:</span>
  9. <el-select v-model="inspPblmCate" clearable placeholder="请选择" style="width:130px">
  10. <el-option
  11. v-for="item in supervisionState"
  12. :key="item.value"
  13. :label="item.label"
  14. :value="item.value"
  15. ></el-option>
  16. </el-select>
  17. <el-button type="primary" @click="serachTable">查询</el-button>
  18. </div>
  19. <el-button type="primary" @click="exportTable">导出</el-button>
  20. </div>
  21. <div class="show_wrapper" :style="{'height':tableHeight + 'px'}">
  22. <form ref="formMain" id="formMain" target="frameMain" :action="reportSrc" method="post">
  23. <input type="hidden" name="width" v-model="tableWidth">
  24. <input type="hidden" name="height" v-model="tableHeight">
  25. <input type="hidden" name="ids" v-model="currentNodeId">
  26. <input type="hidden" name="excelName" v-model="excelName">
  27. <input type="hidden" name="pblmName" v-model="pblmName">
  28. <input type="hidden" name="inspPblmCate" v-model="inspPblmCate">
  29. </form>
  30. <div style="width: 100%;height: 100%;" v-loading="loading">
  31. <iframe ref="frameMain" id="frameMain" name="frameMain" src="" frameborder="0" width="100%" height="100%" style="overflow: auto"></iframe>
  32. </div>
  33. </div>
  34. </el-main>
  35. </el-container>
  36. </template>
  37. <script>
  38. // import zgfc from '../../export/pageoffice/jc/zhenggaifankui/zgfk.vue'
  39. export default {
  40. data(){
  41. return{
  42. reportSrc:'/demo/reportJsp/showReport.jsp?rpx=jc_question_tz',
  43. loading:false,
  44. tableWidth: window.innerWidth - 250,
  45. tableHeight: window.innerHeight - 250,
  46. currentNodeId:'test',
  47. excelName:'水利稽察发现问题整改台账',
  48. pblmName:'',
  49. inspPblmCate:'',
  50. supervisionState: [
  51. {
  52. value: "0",
  53. label: "一般"
  54. },
  55. {
  56. value: "1",
  57. label: "较重"
  58. },
  59. {
  60. value: "2",
  61. label: "严重"
  62. },
  63. {
  64. value: "3",
  65. label: "特别严重"
  66. }
  67. ],
  68. }
  69. },
  70. components:{
  71. },
  72. methods:{
  73. serachTable(){
  74. let _this = this;
  75. this.$refs.formMain.submit();
  76. this.$refs.frameMain.onload = function(){
  77. _this.loading = false;
  78. };
  79. },
  80. exportTable(){
  81. let v = window.frames["frameMain"];
  82. v.report1_saveAsWord();
  83. }
  84. },
  85. activated() {
  86. this.serachTable();
  87. }
  88. }
  89. </script>
  90. <style lang="scss" scope>
  91. .search_wrapper{
  92. display: flex;
  93. justify-content: space-between;
  94. margin-bottom: 10px;
  95. overflow: hidden;
  96. }
  97. .footer_btn{
  98. text-align: right;
  99. }
  100. .show_wrapper{
  101. border:1px solid gray;
  102. width:100%;
  103. overflow: auto;
  104. }
  105. </style>