yusheng 11 meses atrás
pai
commit
8a38c8669d

+ 10 - 1
src/components/jimureport/browse.vue

@@ -5,6 +5,7 @@
     style="height: calc(100vh - 100px)"
     frameborder="0"
     allowfullscreen="true"
+    id="iframe"
   ></iframe>
 </template>
 
@@ -17,7 +18,15 @@
       return {};
     },
 
-    methods: {}
+    methods: {},
+    created() {
+      this.$nextTick(() => {
+        setTimeout(() => {
+        let dom = document.getElementById('iframe');
+          console.log(dom.contentWindow.document, 'dom');
+        }, 5000);
+      });
+    }
   };
 </script>
 <style scoped lang="scss"></style>

+ 1 - 1
src/views/maintenance/equipment/workOrder/index.vue

@@ -36,7 +36,7 @@
           >
             预览打印
           </el-link> -->
-          <jimureportBrowse  v-if="row.orderStatus === 3" :businessId="row.id" businessCode="qmsprint"></jimureportBrowse>
+          <jimureportBrowse  :businessId="row.id" businessCode="qmsprint"></jimureportBrowse>
 
           <el-link
             v-if="row.orderStatus !== 3 && row.orderStatus !== 4"