Forráskód Böngészése

Merge branch 'dev_v2' of ssh://gogs.zfire.top:2222/zfire-front/supply-front into dev_v2

aXin-0810 2 éve
szülő
commit
202cf87bc6

+ 4 - 7
src/views/supply/deliver/components/design/preview.vue

@@ -1,6 +1,7 @@
 <template>
   <el-dialog
     class="sub-main"
+    append-to-body
     :visible.sync="visible"
     :show-close="false"
     :mask-closable="false"
@@ -48,10 +49,8 @@ export default {
   },
   computed: {},
   watch: {},
-  created() {
-  },
-  mounted() {
-  },
+  created() {},
+  mounted() {},
   methods: {
     // handleExport() {
     //   downloadPDF(this.$refs.printDom);
@@ -75,7 +74,6 @@ export default {
       }, 500)
     },
     print() {
-
       try {
         if (typeof this.$parent.addPrint === 'function') {
           this.$parent.addPrint('addPrints').then(() => {
@@ -83,7 +81,7 @@ export default {
               this.printData,
               {},
               {
-                callback: async() => {
+                callback: async () => {
                   this.hiprintTemplate = {}
                   this.$parent.tableSelection = []
                   // setTimeout(() => {
@@ -97,7 +95,6 @@ export default {
                 }
               }
             )
-
           })
         } else {
           throw new Error('加载失败,刷新重试')