Преглед на файлове

修改单位新的传的orgid

“yueshang” преди 1 година
родител
ревизия
981fe11455
променени са 1 файла, в които са добавени 11 реда и са изтрити 11 реда
  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() {