Browse Source

修改船舶动态

zx 3 years ago
parent
commit
d0eb9eb625
2 changed files with 4 additions and 7 deletions
  1. 2 2
      config/index.js
  2. 2 5
      src/views/statisticalReport/components/Ship_dynamic_table.vue

+ 2 - 2
config/index.js

@@ -64,14 +64,14 @@ let proxyTable = {
   },
   // 所有数据的请求域名地址
   "/api/v1": {
-    target: "http://localhost:8080",
+    target: "http://localhost:8019",
     ws: true,
     pathRewrite: {
       "^/api/v1": "/api/v1"
     }
   },
   "/views/api/v1": {
-    target: "http://localhost:8080",
+    target: "http://localhost:8019",
     ws: true,
     pathRewrite: {
       "^/views/api/v1": "/api/v1"

+ 2 - 5
src/views/statisticalReport/components/Ship_dynamic_table.vue

@@ -157,11 +157,8 @@ export default {
         if (res.data.code == "200") {
           this.tableData = res.data.data;
           console.log("aaad" +res.data.data);
-        } else {
-          this.$message({
-            type: "warning",
-            message: res.data.data,
-          });
+        } else if(res.data.data=="暂时没有船舶动态") { 
+            this.tableData = [];
         }
       });
     },