Browse Source

面损表-打印问题

jbb 2 years ago
parent
commit
7de9aad026
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/reportForms/fabric-loss-table.vue

+ 2 - 2
src/views/reportForms/fabric-loss-table.vue

@@ -885,12 +885,12 @@ export default {
           let textArea = win.document.getElementsByTagName('textarea')
           for (let i = 0; i < textArea.length; i++) {
              textArea[i].style.height = 'auto' // 先设置成auto,再设置高度,删除文字的时候高度才会改变
-             textArea[i].style.height = textArea[i].scrollHeight+30 + 'px'
+             textArea[i].style.height = textArea[i].scrollHeight+100 + 'px'
           }
             win.print();
             win.close();
-            this.showSelect = 0
          },500)
+         this.showSelect = 0
         //  win.print();
         //  win.close();
 		    //  this.showSelect = 0