chencc 1 year ago
parent
commit
fd58e3af14
3 changed files with 11 additions and 6 deletions
  1. 3 3
      jsconfig.json
  2. 6 1
      src/views/productionPlan/components/factoryAdd/index.vue
  3. 2 2
      vue.config.js

+ 3 - 3
jsconfig.json

@@ -11,7 +11,7 @@
     }
   },
   "exclude": ["node_modules", "dist"],
-  "vueCompilerOptions": {
-    "experimentalShamefullySupportOptionsApi": false
-  }
+  // "vueCompilerOptions": {
+  //   "experimentalShamefullySupportOptionsApi": false
+  // }
 }

+ 6 - 1
src/views/productionPlan/components/factoryAdd/index.vue

@@ -96,7 +96,7 @@
           </el-col>
 
           <el-col :span="8">
-            <el-form-item label="BOM版本:" prop="bomCategoryId">
+            <el-form-item label="BOM版本:" prop="bomCategoryId" v-if="clientEnvironmentId != 4">
               <el-select
                 v-model="form.bomCategoryId"
                 style="width: 100%"
@@ -284,6 +284,11 @@
         }
       }
     },
+    computed: {
+    clientEnvironmentId() {
+      return this.$store.state.user.info.clientEnvironmentId;
+    },
+    },
     data() {
       return {
         visible: true,

+ 2 - 2
vue.config.js

@@ -33,8 +33,8 @@ module.exports = {
       '/api': {
         // target: 'http://192.168.1.210:86/',
         // target: 'http://192.168.1.116:18086',
-        // target: 'http://192.168.1.251:18086',
-        target: 'http://192.168.1.125:18086',
+        target: 'http://192.168.1.251:18086',
+        // target: 'http://192.168.1.125:18086',
         changeOrigin: true, // 只有这个值为true的情况下 才表示开启跨域
         pathRewrite: {
           '^/api': ''