소스 검색

修改船舶动态

zx 3 년 전
부모
커밋
d0eb9eb625
2개의 변경된 파일4개의 추가작업 그리고 7개의 파일을 삭제
  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 = [];
         }
       });
     },