liujiejie 5 bulan lalu
induk
melakukan
649e467580

+ 15 - 9
src/views/performance/components/custonAsCom/DatabaseTable.vue

@@ -1,8 +1,8 @@
 <!--
  * @Author: your name
  * @Date: 2024-10-28 17:43:21
- * @LastEditTime: 2024-12-26 09:28:12
- * @LastEditors: bogon
+ * @LastEditTime: 2025-01-03 12:35:03
+ * @LastEditors: milo-MBP
  * @Description: In User Settings Edit
  * @FilePath: /performance-test/src/views/performance/components/custonAsCom/DatabaseTable.vue
 -->
@@ -197,19 +197,25 @@ export default {
       grouped.forEach((checkChildNode, parentNode) => {
         output.push({ parentNode, checkChildNode });
       });
-      const response = await axios.post("/databaseApi/filterTablesData", {
-        database: { ...this.formLabelAlign },
-        filterData: output,
-      });
+      const response = await axios.post(
+        "/databaseApi/databaseApi/filterTablesData",
+        {
+          database: { ...this.formLabelAlign },
+          filterData: output,
+        }
+      );
       this.conversionData(response.data);
     },
     submitForm(formName) {
       this.$refs[formName].validate(async (valid) => {
         if (valid) {
           try {
-            const response = await axios.get("/databaseApi/tables", {
-              params: { ...this.formLabelAlign },
-            });
+            const response = await axios.get(
+              "/databaseApi/databaseApi/tables",
+              {
+                params: { ...this.formLabelAlign },
+              }
+            );
             // this.tableFieldMap = response.data;
             this.initializeTreeData(response.data);
             this.$emit("closeDialog");

+ 10 - 7
src/views/performance/customAnalysis.vue

@@ -418,13 +418,16 @@ export default {
     //调用算法接口
     async fetchAlgorithmData(regionData) {
       try {
-        const res = await axios.post("/sAlgorithm/CalculateFeatures/", {
-          data: regionData,
-          start_index:
-            this.ruleForm.min !== null ? Number(this.ruleForm.min) : null,
-          end_index:
-            this.ruleForm.max !== null ? Number(this.ruleForm.max) : null,
-        });
+        const res = await axios.post(
+          "/sAlgorithm/sAlgorithm/CalculateFeatures/",
+          {
+            data: regionData,
+            start_index:
+              this.ruleForm.min !== null ? Number(this.ruleForm.min) : null,
+            end_index:
+              this.ruleForm.max !== null ? Number(this.ruleForm.max) : null,
+          }
+        );
         return JSON.parse(res.data, "res");
       } catch (error) {
         console.error("算法接口调用失败:", error);

+ 8 - 6
vue.config.js

@@ -64,9 +64,9 @@ module.exports = {
     proxy: {
       "/api": {
         // target: "http://192.168.5.4:16200", // 石月
-        target: "http://192.168.50.235:16200", // 内网
+        // target: "http://192.168.50.235:16200", // 内网
         // target: "http://192.168.5.15:16200",
-        // target: "http://106.120.102.238:16700", // 外网  16600   16700
+        target: "http://106.120.102.238:16700", // 外网  16600   16700
         // target: "http://10.96.137.5",
         changeOrigin: true,
         pathRewrite: {
@@ -75,8 +75,8 @@ module.exports = {
       },
       // 未知量  //振动、激光测距仪
       "/WZLapi": {
-        target: "http://192.168.50.241:9001", // WZLapi 目标地址
-        // target: "http://106.120.102.238:18080/WindTransDev", // WZLapi 外网目标地址
+        // target: "http://192.168.50.241:9001", // WZLapi 目标地址
+        target: "http://106.120.102.238:18080/WindTransDev", // WZLapi 外网目标地址
         changeOrigin: true,
         pathRewrite: {
           "^/WZLapi": "", // 去掉 /WZLapi 前缀
@@ -105,7 +105,8 @@ module.exports = {
       },
       //自定义算法文佳
       "/sAlgorithm": {
-        target: "http://192.168.50.235:8666", // 目标地址
+        // target: "http://192.168.50.235:8666", // 目标地址
+        target: "http://106.120.102.238:58880",
         changeOrigin: true,
         pathRewrite: {
           "^/sAlgorithm": "", // 如果后端需要 `/api` 前缀
@@ -113,7 +114,8 @@ module.exports = {
       },
       //nodejs 数据库数据
       "/databaseApi": {
-        target: "http://192.168.50.234:3000",
+        // target: "http://192.168.50.234:3000",
+        target: "http://106.120.102.238:58880",
         changeOrigin: true,
         pathRewrite: {
           "^/databaseApi": "", // 去掉 /databaseApi 前缀