Pārlūkot izejas kodu

修改单位新的传的orgid

“yueshang” 1 gadu atpakaļ
vecāks
revīzija
981fe11455
1 mainītis faili ar 11 papildinājumiem un 11 dzēšanām
  1. 11 11
      src/views/unitorg/buildingInfo/index.vue

+ 11 - 11
src/views/unitorg/buildingInfo/index.vue

@@ -514,17 +514,17 @@ export default {
   },
   props: ["orgId"],
   watch: {
-    // orgId: { //深度监听,可监听到对象、数组的变化
-    //   handler(newV, oldV) {
-    //     if (this.orgId !== null) {
-    //       this.queryParams.orgId = this.orgId
-    //       this.form.orgId = this.orgId
-    //       this.getList()
-    //     }
-    //   },
-    //   deep: true,
-    //   immediate: true
-    // }
+    orgId: { //深度监听,可监听到对象、数组的变化
+      handler(newV, oldV) {
+        if (this.orgId !== null) {
+          this.queryParams.orgId = this.orgId
+          this.form.orgId = this.orgId
+          this.getList()
+        }
+      },
+      deep: true,
+      immediate: true
+    }
   },
   methods: {
     handleChoice() {