Your Name 3 лет назад
Родитель
Сommit
119b248756

+ 1 - 1
build/utils.js

@@ -17,7 +17,7 @@ const devPathSrc = path.resolve(__dirname, '../../../src'); // node_modules应
 //  'statisticalReport','systemConfig','TMS','WMS','workFlow']
 
 let devModules = ['all']
-// let devModules = ['index','inward','WMS'];
+// let devModules = ['index','inward','WMS','ADMINISTRATORS'];
 if (pathSrc.indexOf('node_modules') > -1) {
     devModules = require('../../../cors.js').devModules;
 }

+ 8 - 0
config/index.js

@@ -71,6 +71,14 @@ let proxyTable = {
       "^/api/v1": "/api/v1"
     }
   },
+  "/api/v1/join": {
+    target: "http://172.16.33.166:8080",
+    // target: "http://192.168.1.108:8066",
+    ws: true,
+    pathRewrite: {
+      "^api/v1/join": "/api/v1/join"
+    }
+  },
   "/views/api/v1": {
     target: "http://172.16.33.166:8080",
     // target: "http://172.16.33.166:8080",

+ 1 - 1
src/views/ADMINISTRATORS/app.html

@@ -6,7 +6,7 @@
     <meta name="renderer" content="webkit">
     <meta content="智慧物流平台" name="keywords">
     <meta content="智慧物流平台" name="description">
-    <title>合同管理 - 智慧物流平台</title>
+    <title>后台管理 - 智慧物流平台</title>
     <link href="../static/css/common.css" rel="stylesheet"/>
     <link href="../static/img/favicon.ico" rel="shortcut icon"/>
     <script src="../static/lib/jquery/jquery.min.js" type="text/javascript"></script>

+ 2 - 2
src/views/ADMINISTRATORS/components/ADMINISTRATORS1.vue

@@ -324,10 +324,10 @@ export default {
         }else{
             arr.push(mapFirst)
         }
-        this.axios.post("/api/v1/join/receiveTmsTruckWeightResult",arr).then((res) =>{
+        this.axios.post("http://172.16.33.166:8066/api/v1/join/tmstruckweightresult/receiveTmsTruckWeightResult",arr).then((res) =>{
             if(res.data.code == "200"){
                 this.$message.success("补录计量实绩成功")
-                this.$router.go(-1)
+                this.$router.go(0)
             }
         })
     },

+ 1 - 1
src/views/ADMINISTRATORS/router/index.js

@@ -14,7 +14,7 @@ const constantRouterMap = [
     name: 'main',
     meta: {title: '首页', code: 'xtpzgl'},
     component: main,
-    redirect: {name: 'cargoResult'},
+    redirect: {name: 'ADMINISTRATORS1'},
     children: [
       {path: 'ADMINISTRATORS1', name: 'ADMINISTRATORS1', meta: {code: 'xtpzgl-jggl'}, component: ADMINISTRATORS1}
     ]