|
|
@@ -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);
|