Selaa lähdekoodia

部署山西下载报告服务

liujiejie 3 kuukautta sitten
vanhempi
commit
65726ec20c
3 muutettua tiedostoa jossa 24 lisäystä ja 8 poistoa
  1. 8 5
      .env.dev
  2. 2 2
      src/components/map/index.vue
  3. 14 1
      src/views/performance/assetssMag.vue

+ 8 - 5
.env.dev

@@ -1,7 +1,7 @@
 ###
  # @Author: your name
  # @Date: 2025-07-17 14:14:27
- # @LastEditTime: 2026-05-15 12:10:07
+ # @LastEditTime: 2026-05-17 18:16:32
  # @LastEditors: milo-MacBook-Pro.local
  # @Description: In User Settings Edit
  # @FilePath: /performance-test/.env.dev
@@ -15,7 +15,7 @@ VUE_APP_TITLE='机组功率曲线异常检测数据分析系统'
 #外网
 # VUE_APP_MAPVIEW= "http://106.120.102.238:18000/tiles/{z}/{x}/{y}.png"
 # VUE_APP_UPLOAD="http://106.120.102.238:16700/energy-manage-service/api/check/upload"
-# VUE_APP_APIPROXY='http://106.120.102.238:16700'
+# VUE_APP_APIPROXY='http://106.120.102.238:16600'
 # VUE_APP_MAP=http://106.120.102.238:18080
 # VUE_APP_WZLAPIPROXY='http://106.120.102.238:18080/WindTransDev'
 # VUE_APP_ETLAPIPROXY='http://106.120.102.238:18080/WindTransDev'
@@ -24,13 +24,15 @@ VUE_APP_TITLE='机组功率曲线异常检测数据分析系统'
 # VUE_APP_sAlgorithmAPIPROXY='http://106.120.102.238:58880'
 # VUE_APP_databaseApiAPIPROXY='http://106.120.102.238:58880'
 # # #暂时不知下载报告内网dev 环境地址
-# VUE_APP_downLoadChartAPIPROXY='http://106.120.102.238:58880'
+# # VUE_APP_downLoadChartAPIPROXY='http://106.120.102.238:58880'
+# VUE_APP_downLoadChartAPIPROXY='http://192.168.65.3:3001'
+# VUE_APP_downLoadChartAPIPROXY='http://0.0.0.0:3001'
 
 #内网
 VUE_APP_UPLOAD="http://192.168.50.235/energy-manage-service/api/check/upload"
 VUE_APP_MAPVIEW=/tiles/{z}/{x}/{y}.png
 VUE_APP_MAP=http://192.168.50.235
-VUE_APP_APIPROXY='http://192.168.50.235:16200'
+VUE_APP_APIPROXY='http://192.168.50.235:16300'
 VUE_APP_WZLAPIPROXY='http://192.168.50.241:9002'
 # VUE_APP_ETLAPIPROXY='http://192.168.50.241:9002'
 VUE_APP_ETLAPIPROXY='http://192.168.50.241:9000/transDataWebProd/'
@@ -41,4 +43,5 @@ VUE_APP_databaseApiAPIPROXY='http://192.168.50.234:3002'
 VUE_APP_AnalysisMultiAPIPROXY='http://192.168.50.235:8998/AnalysisMulti'
 #暂时不知下载报告内网dev 环境地址
 # VUE_APP_downLoadChartAPIPROXY='http://106.120.102.238:58880'
-VUE_APP_downLoadChartAPIPROXY='http://0.0.0.0:3001'
+# VUE_APP_downLoadChartAPIPROXY='http://0.0.0.0:3001'
+VUE_APP_downLoadChartAPIPROXY='http://192.168.65.3:3001'

+ 2 - 2
src/components/map/index.vue

@@ -182,8 +182,8 @@ import { defaults as defaultControls } from "ol/control.js";
 import GeoJSON from "ol/format/GeoJSON";
 
 // 假设你已经有正确的山西省边界数据文件(GeoJSON 格式)
-// import shanxiBoundary from "./shanxi.json";
-import shanxiBoundary from "./jilin.json";
+import shanxiBoundary from "./shanxi.json";
+// import shanxiBoundary from "./jilin.json";
 import icon01 from "../../assets/img/iconFC.png";
 import icon02 from "../../assets/img/iconFC.png";
 import icon03 from "../../assets/img/iconFC.png";

+ 14 - 1
src/views/performance/assetssMag.vue

@@ -311,6 +311,7 @@
           <template slot-scope="scope">
             <el-button
               @click="handleDownLoadChart(scope.row)"
+              v-hasPermi="['home:performance:autoAssetssDownload']"
               type="text"
               size="small"
               :disabled="downloadDisabled"
@@ -626,6 +627,7 @@ export default {
               objectname,
             fieldInfo: this.fieldInfo,
             fileAddr: itemField.fileAddr,
+            // fileAddr: `http://106.120.102.238:16900/wof055000062/WOF055000062-WOB000002/data_integrity_second/manual/Data_Integrity_Of_Second_Analyst.json?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=UH1KYSZLY1ABKY98B0H5%2F20260517%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20260517T100419Z&X-Amz-Expires=43200&X-Amz-Security-Token=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NLZXkiOiJVSDFLWVNaTFkxQUJLWTk4QjBINSIsImV4cCI6MTc3OTA1NTQ0MSwicGFyZW50IjoiYWRtaW4ifQ.8d144O38x4kxMT4fv9OiCnw72dCaml4hfpn5Bp7PRrkXKIz7CFDQIxq4RlrQv4xLr76uEs0GMfuzSJPDQBO6IA&X-Amz-SignedHeaders=host&versionId=null&X-Amz-Signature=d2d605265c4acfc8c15897457b9cbdec6d25a380d90f83f6ccf8721912eb81d8`,
             chartType:
               filterAnalysis.typeDocxName === "production_indicator_unit"
                 ? "radar"
@@ -694,8 +696,19 @@ export default {
       this.progress.current = 0;
       this.progress.total = 0;
       this.fileDataList = {};
-      this.setDownloadDisabled(true);
+      // this.setDownloadDisabled(true);
       this.$notify.warning("开始生成 Word 文档...");
+      // axios
+      //   .get("/downLoadChart/puppeteer-test/baidu-screenshot", {
+      //     responseType: "blob",
+      //   })
+      //   .then((res) => {
+      //     console.log(res, "res");
+      //     URL.createObjectURL(res);
+      //   })
+      //   .catch((err) => {
+      //     console.log(err, "err");
+      //   });
       try {
         await this.getAllAnalysis(row.batchCode);
         await this.getFieldDetail(row.batchCode);