chenjun 2 жил өмнө
parent
commit
a4ce554833

+ 1 - 1
src/utils/request.js

@@ -9,7 +9,7 @@ import errorCode from '@/utils/errorCode'
 // 创建 axios 实例
 const request = axios.create({
   // API 请求的默认前缀
-  baseURL: process.env.VUE_APP_BASE_API,
+  baseURL: 'dev-api',
   // baseURL: 'https://aidex.setworld.net',
   timeout: 20000 // 请求超时时间
 })

+ 13 - 0
src/views/securityCheck/views/cargoStatisticsHome.vue

@@ -371,6 +371,7 @@
 <script>
 import GraphicEchart from "../components/graphicHome.vue";
 import SecurityCheckHeader from "../components/securityCheckHeader.vue";
+import { comprehensiveTable } from "@/api/statistics/statistics.js";
 export default {
   data() {
     return {
@@ -422,10 +423,22 @@ export default {
     GraphicEchart,
     SecurityCheckHeader,
   },
+  created(){
+    this.getData()
+  },
   methods: {
     change() {
       this.$router.push("./cargoTable");
     },
+    async getData(){
+      try{
+        const result = await comprehensiveTable({
+          });
+          
+      }catch(error){
+          console.log(error)
+      }
+    }
   },
 };
 </script>

+ 1 - 1
vue.config.js

@@ -40,7 +40,7 @@ module.exports = {
       '/dev-api': {
         // 此处的写法,目的是为了 将 /api 替换成 https://www.baidu.com/
         // target: 'http://ca.midsk.cn:8080',
-        target: 'http://106.14.243.117:9111',
+        target: 'http://106.14.243.117:8080',
         // target: '10.211.66.25:8074',
         // target: 'http://192.168.3.67:8092',
         // target: 'http://10.9.247.105:8092',