소스 검색

修改单位新的传的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() {