瀏覽代碼

导出word功能提交、其他消缺提交。

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 9 月之前
父節點
當前提交
ac8106463a

+ 4 - 0
package.json

@@ -13,6 +13,7 @@
     "axios": "^0.21.1",
     "core-js": "^3.8.3",
     "dayjs": "^1.11.11",
+    "docxtemplater": "^3.47.4",
     "echarts": "^5.3.2",
     "element-plus": "^2.3.6",
     "exceljs": "^4.3.0",
@@ -20,12 +21,15 @@
     "html2canvas": "^1.4.1",
     "js-cookie": "^3.0.5",
     "jspdf": "^2.5.1",
+    "jszip": "^3.10.1",
+    "jszip-utils": "^0.1.0",
     "leaflet": "^1.9.4",
     "leaflet-canvas-marker": "^0.2.0",
     "leaflet-contextmenu": "^1.4.0",
     "leaflet-tilelayer-wmts": "^1.0.0",
     "leaflet.wmts": "^1.0.2",
     "nprogress": "^0.2.0",
+    "pizzip": "^3.1.7",
     "typescript": "^5.3.3",
     "vue": "^3.2.13",
     "vue-router": "^4.0.3",

+ 2 - 2
public/static/config/modeConfig.js

@@ -18,8 +18,8 @@ const tilesMaxLevel = 18;
 // 切换模块时是否提示当前模块名称(用于对内介绍项目时便捷显示模块名称)
 const showModuleName = 0;
 
-const reportBaseUrl = "http://10.127.7.241:8083";
-// const reportBaseUrl = "http://172.16.12.101:8083";
+// const reportBaseUrl = "http://10.127.7.241:8083";
+const reportBaseUrl = "http://172.16.12.101:8083";
 
 // if (localTest) {
 //     baseURL = "http://192.168.10.8:9002/" // 联机调试 

二進制
public/static/windReport.docx


文件差異過大導致無法顯示
+ 1147 - 998
src/App.vue


+ 9 - 1
src/router/index.js

@@ -140,6 +140,14 @@ const routes = [
         component: () => import("../views/intelligentReporting/fgztjqkb/index.vue"),
     },
     {
+        path: "/intelligentReport/gztjqkb",
+        name: "intelligentReportgztjqkb",
+        meta: {
+            title: "故障停机情况表",
+        },
+        component: () => import("../views/intelligentReporting/gztjqkb/index.vue"),
+    },
+    {
         path: "/intelligentReport/zhbb",
         name: "intelligentReportzhbb",
         meta: {
@@ -275,7 +283,7 @@ const routes = [
         path: "/generatingCap/dataAnalysis/angleAnalysis",
         name: "dataAnalysisAngleAnalysis",
         meta: {
-        title: "距角分析",
+        title: "距角分析",
         },
         component: () =>
         import("../views/generatingCapacity/dataAnalysis/angleAnalysis/index.vue"),

+ 3 - 3
src/views/generatingCapacity/dataFilter/process/index.vue

@@ -274,9 +274,6 @@ const funExport = async () => {
 /**table 结束 */
 /**search 开始 */
 const funSubmit = async (query) => {
-  if (xhrId.value) {
-    await httpRequest.get(`/report/analysis?id=${xhrId.value}`);
-  }
   if (!excelCheckIds.value.length) {
     ElMessage.error("请勾选要预处理的项");
     return false;
@@ -292,6 +289,9 @@ const funSubmit = async (query) => {
     ElMessage.success(res.msg);
     funGetProcessTree();
   }
+  if (xhrId.value) {
+    // await httpRequest.get(`/report/analysis?id=${xhrId.value}`);
+  }
 };
 /**created */
 // funGetTree()

文件差異過大導致無法顯示
+ 1924 - 1021
src/views/generatingCapacity/report/index.vue


+ 57 - 38
src/views/intelligentReporting/fgztjqkb/index.vue

@@ -1,43 +1,62 @@
 <template>
-    <div :style="pageHeight">
-        <iframe :src="url" width="100%" height="100%" frameborder="0" scrolling="auto"></iframe>
-    </div>
+  <div :style="pageHeight">
+    <iframe
+      :src="url"
+      width="100%"
+      height="100%"
+      frameborder="0"
+      scrolling="auto"
+    ></iframe>
+  </div>
 </template>
 <script>
-    export default {
-        data() {
-            return {
-                url: "http://172.16.12.101:8083/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$43d2f50595c04a39b59c33657b8985b0&id=admin&pw=admin",
-                // url: "http://10.127.7.196:8083/bi/ebipro/easyolap.do?action=edit&resid=EANA$2$8$1$bd71f31ba69443b5b3f3997965927c41$f5c25912e8aa49d78e33f070bf944858&id=admin&pw=admin",
-            };
-        },
-        watch: {
-            $route: {
-                handler: function (route) {
-                    this.url = null;
-                    if (route.query.name) {
-                        this.url =
-                            `${
-            this.reportBaseUrl || "http://172.16.12.101:8083"
-          }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$43d2f50595c04a39b59c33657b8985b0&id=admin&pw=admin`;
-                        // if (window.location.origin.indexOf('172.16.12.101') != -1) {
-                        //     this.url =
-                        //         "http://172.16.12.101:8083/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$03a38ba7339d4e2b9812e08e924f997e&id=admin&pw=admin"
-                        // } else {
-                        //     this.url =
-                        //         "http://10.127.7.196:8083/bi/ebibase/showreport.do?resid=EANA$2$2$1$041302f30436412d9ba78f161a6575f0$03a38ba7339d4e2b9812e08e924f997e&id=admin&pw=admin"
-                        // }
-                    }
-                },
-                immediate: true,
-            },
-        },
-        computed: {
-            pageHeight() {
-                return {
-                    height: document.documentElement.clientHeight - 80 + "px",
-                };
-            },
-        },
+export default {
+  data() {
+    return {
+      url: null,
     };
+  },
+  computed: {
+    pageHeight() {
+      return {
+        height: document.documentElement.clientHeight - 80 + "px",
+      };
+    },
+  },
+  watch: {
+    $route: {
+      handler: function (route) {
+        this.url = null;
+        if (route.query.name) {
+          if (route.query.name === "xinzhuang") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$43d2f50595c04a39b59c33657b8985b0&id=admin&pw=admin`;
+          } else if (route.query.name === "jishanliang") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$570e4e9345394f48bef216c004f4840f&id=admin&pw=admin`;
+          } else if (route.query.name === "zuozhuang") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$4fffb6c003a449eb93650ece1d40547e&id=admin&pw=admin`;
+          } else if (route.query.name === "fanshigou") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$4302fa197c734777a60bb4de36aa52c9&id=admin&pw=admin`;
+          } else if (route.query.name === "caoshanliang") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$1c4548501c98464b9e0d60630b5bc5ce&id=admin&pw=admin`;
+          } else if (route.query.name === "leijiashan") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$5a856063dd9f4bfcbfd5ee478baefff6&id=admin&pw=admin`;
+          }
+        }
+      },
+      immediate: true,
+    },
+  },
+};
 </script>

+ 62 - 0
src/views/intelligentReporting/gztjqkb/index.vue

@@ -0,0 +1,62 @@
+<template>
+  <div :style="pageHeight">
+    <iframe
+      :src="url"
+      width="100%"
+      height="100%"
+      frameborder="0"
+      scrolling="auto"
+    ></iframe>
+  </div>
+</template>
+<script>
+export default {
+  data() {
+    return {
+      url: null,
+    };
+  },
+  computed: {
+    pageHeight() {
+      return {
+        height: document.documentElement.clientHeight - 80 + "px",
+      };
+    },
+  },
+  watch: {
+    $route: {
+      handler: function (route) {
+        this.url = null;
+        if (route.query.name) {
+          if (route.query.name === "xinzhuang") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$132b35c94389471ab6692d11a358776f&id=admin&pw=admin`;
+          } else if (route.query.name === "jishanliang") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$db3e53d91a0d40babf97b74548c110b0&id=admin&pw=admin`;
+          } else if (route.query.name === "zuozhuang") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$8ece5bae261b4ae9ba0e463ff1bb0d1c&id=admin&pw=admin`;
+          } else if (route.query.name === "fanshigou") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$da5313052a3147a9b103860329550289&id=admin&pw=admin`;
+          } else if (route.query.name === "caoshanliang") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$79ee39e559de4cb68e61c278fff076ef&id=admin&pw=admin`;
+          } else if (route.query.name === "leijiashan") {
+            this.url = `${
+              this.reportBaseUrl || "http://172.16.12.101:8083"
+            }/rbi/ebibase/showreport.do?resid=EANA$2$2$1$bd71f31ba69443b5b3f3997965927c41$21200f330d9f453b978bf6947c9094bc&id=admin&pw=admin`;
+          }
+        }
+      },
+      immediate: true,
+    },
+  },
+};
+</script>