From 7bb888c439e16b656286124ae2c84583f3308899 Mon Sep 17 00:00:00 2001
From: zuozhengqing <a13193816592@163.com>
Date: 星期五, 01 十二月 2023 13:57:20 +0800
Subject: [PATCH] 出入库明细打印-跳转新窗口

---
 src/views/overview/previewExcel.vue |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/views/overview/previewExcel.vue b/src/views/overview/previewExcel.vue
index 4590fe9..e135c30 100644
--- a/src/views/overview/previewExcel.vue
+++ b/src/views/overview/previewExcel.vue
@@ -25,19 +25,16 @@
   },
   data() {
     return {
-      excel: '',//excel鏂囨。鍦板潃
-      cutAfterWidth:this.$route.params.cutAfterWidth,//瑁佸壀鍚庤鍑忓幓鐨勫
-      // cutAfterWidth:0,
+      excel:'',
+      cutAfterWidth:0,
       croppedImage: null, // 鍥剧墖
     };
   },
   computed: {
   },
   created() {
-    console.log(this.$route.params.baseOperationType,"鐪嬬湅")
-    if(this.$route.params.baseOperationType!=undefined){
-      this.excel=this.$route.params.url
-    }
+    this.excel=JSON.parse(localStorage.getItem('pdfParams', '[]')).url
+    this.cutAfterWidth=JSON.parse(localStorage.getItem('pdfParams', '[]')).cutAfterWidth
   },
   mounted() {
   },
@@ -46,8 +43,8 @@
   methods: {
     rendered(){
       console.log("娓叉煋瀹屾垚")
-      if(this.$route.params.baseOperationType!=undefined){
-        this.excel=this.$route.params.url
+      if(JSON.parse(localStorage.getItem('pdfParams', '[]')).url){
+        this.excel=JSON.parse(localStorage.getItem('pdfParams', '[]')).url
         this.cropAndDownload()
       }
     },

--
Gitblit v1.8.0