Explorar o código

隔离点问题修复

pm hai 1 ano
pai
achega
d232b32406
Modificáronse 1 ficheiros con 8 adicións e 9 borrados
  1. 8 9
      src/components/separationPoint/workshop.vue

+ 8 - 9
src/components/separationPoint/workshop.vue

@@ -82,15 +82,7 @@ export default {
       default:()=>[]
     }
   },
-  watch: {
-    // 监听父组件传递的数据
-    sopProps: {
-      handler(newValue) {
-        this.form.workShop = newValue.workshopId;
-        this.form.producLine = newValue.workareaId;
-      },
-    },
-  },
+
 
   data() {
     return {
@@ -110,6 +102,13 @@ export default {
     };
   },
   watch: {
+    // 监听父组件传递的数据
+    sopProps: {
+      handler(newValue) {
+        this.form.workShop = newValue.workshopId;
+        this.form.producLine = newValue.workareaId;
+      },
+    },
     jobProps: {
       handler(newVal, oldVal) {
         console.log('jobProps 发生变化', newVal, oldVal);