695593266@qq.com 11 miesięcy temu
rodzic
commit
ea8427c915
2 zmienionych plików z 45 dodań i 40 usunięć
  1. 43 39
      src/views/material/product/detail.vue
  2. 2 1
      vue.config.js

+ 43 - 39
src/views/material/product/detail.vue

@@ -497,11 +497,11 @@
         ],
         attributeList: [
           {
-            label: '总装',
+            label: '成品',
             value: 1
           },
           {
-            label: '部件',
+            label: '半成品',
             value: 2
           },
           {
@@ -1201,43 +1201,47 @@
       },
       //生产类型切换
       produceTypeChange(value) {
-        if (value == 1) {
-          this.attributeList = [
-            {
-              label: '成品',
-              value: 1
-            },
-            {
-              label: '半成品',
-              value: 2
-            },
-            {
-              label: '原材料',
-              value: 4
-            }
-          ];
-          this.form.attributeType = 1;
-        } else {
-          this.attributeList = [
-            {
-              label: '总装(成品)',
-              value: 1
-            },
-            {
-              label: '部件(半成品)',
-              value: 2
-            },
-            {
-              label: '零件',
-              value: 3
-            },
-            {
-              label: '原材料',
-              value: 4
-            }
-          ];
-          this.form.attributeType = 1;
-        }
+        // if (value == 1) {
+        //   this.attributeList = [
+        //     {
+        //       label: '成品',
+        //       value: 1
+        //     },
+        //     {
+        //       label: '半成品',
+        //       value: 2
+        //     },
+        //     {
+        //       label: '零件',
+        //       value: 3
+        //     },
+        //     {
+        //       label: '原材料',
+        //       value: 4
+        //     }
+        //   ];
+        //   this.form.attributeType = 1;
+        // } else {
+        //   this.attributeList = [
+        //     {
+        //       label: '总装(成品)',
+        //       value: 1
+        //     },
+        //     {
+        //       label: '部件(半成品)',
+        //       value: 2
+        //     },
+        //     {
+        //       label: '零件',
+        //       value: 3
+        //     },
+        //     {
+        //       label: '原材料',
+        //       value: 4
+        //     }
+        //   ];
+        //   this.form.attributeType = 1;
+        // }
       }
     }
   };

+ 2 - 1
vue.config.js

@@ -32,10 +32,11 @@ module.exports = {
     proxy: {
       // 当我们的本地的请求 有/api的时候,就会代理我们的请求地址向另外一个服务器发出请求
       '/api': {
-        target: 'http://192.168.1.105:18086',
+        // target: 'http://192.168.1.105:18086',
         // target: 'http://192.168.1.158:18086',
         // target: 'http://192.168.1.176:18086',
         // target: 'http://192.168.1.251:18086',
+        target: 'http://192.168.1.125:18086',
 
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {