From 2ab2dcd91a6ee60fa907fd3c667ed174f17f13b5 Mon Sep 17 00:00:00 2001
From: su1124 <1583764726@qq.com>
Date: 星期四, 15 八月 2024 09:01:59 +0800
Subject: [PATCH] su

---
 src/views/jmreport/jmreport/view.vue |  105 ++++++++++++++++++++++++++++------------------------
 1 files changed, 57 insertions(+), 48 deletions(-)

diff --git a/src/views/jmreport/jmreport/view.vue b/src/views/jmreport/jmreport/view.vue
index c35781f..b73959b 100644
--- a/src/views/jmreport/jmreport/view.vue
+++ b/src/views/jmreport/jmreport/view.vue
@@ -1,55 +1,64 @@
 <template>
-    <div v-loading="loading" :style="'height:'+ height" class="app-container">
-      <!-- <el-row style="margin-bottom: 10px;">
+  <div v-loading="loading" :style="'height:' + height" class="app-container">
+    <!-- <el-row style="margin-bottom: 10px;">
         <el-col :span="1.5">
           <el-button type="primary" plain icon="el-icon-refresh-right" size="mini" @click="handleRefresh">鍒锋柊</el-button>
         </el-col>
       </el-row> -->
-   
-      <iframe :src="src" id="reportView" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
-   
-    </div>
-  </template>
+
+    <iframe
+      :src="src"
+      id="reportView"
+      frameborder="no"
+      style="width: 100%; height: 100%"
+      scrolling="auto"
+    />
+  </div>
+</template>
   <script>
-    import {
-      getToken
-    } from '@/utils/auth'
-    import {
-      view
-    } from '@/api/jmreport/jimu'
-    export default {
-      name: "Ureport",
-      data() {
-        return {
-          src: "",
-          height: document.documentElement.clientHeight - 94.5 + "px;",
-          loading: true,
-          viewNum: "",
-          reportId: "",
-        };
-      },
-      created() {
-        //鎶ヨ〃妯℃澘缂栧彿
-        this.viewNum = this.$route.query.viewNum
-        //浣撴鍙�
-        this.tjNumber = this.$route.query.tjNumber
-        view().then(res => {
-        this.src = res + "/"+this.viewNum+"?tjNumber=" + this.tjNumber + "&token=Bearer " + getToken();
-        })
-      },
-      methods: {
-        handleRefresh() {
-          document.getElementById("reportView").src = document.getElementById("reportView").src;
-        },
-      },
-      mounted: function() {
-        setTimeout(() => {
-          this.loading = false;
-        }, 230);
-        const that = this;
-        window.onresize = function temp() {
-          that.height = document.documentElement.clientHeight - 94.5 + "px;";
-        };
-      }
+import { getToken } from "@/utils/auth";
+import { view } from "@/api/jmreport/jimu";
+export default {
+  name: "Ureport",
+  data() {
+    return {
+      src: "",
+      height: document.documentElement.clientHeight - 94.5 + "px;",
+      loading: true,
+      viewNum: "",
+      reportId: "",
     };
-  </script>
\ No newline at end of file
+  },
+  created() {
+    //鎶ヨ〃妯℃澘缂栧彿
+    this.viewNum = this.$route.query.viewNum;
+    //浣撴鍙�
+    this.tjNumber = this.$route.query.tjNumber;
+    view().then((res) => {
+      this.src =
+        res +
+        "/" +
+        this.viewNum +
+        "?tjNumber=" +
+        this.tjNumber +
+        "&token=Bearer " +
+        getToken();
+    });
+  },
+  methods: {
+    handleRefresh() {
+      document.getElementById("reportView").src =
+        document.getElementById("reportView").src;
+    },
+  },
+  mounted: function () {
+    setTimeout(() => {
+      this.loading = false;
+    }, 230);
+    const that = this;
+    window.onresize = function temp() {
+      that.height = document.documentElement.clientHeight - 94.5 + "px;";
+    };
+  },
+};
+</script>
\ No newline at end of file

--
Gitblit v1.8.0