chenrui  2 年之前
父節點
當前提交
79937e7c50
共有 1 個文件被更改,包括 10 次插入4 次删除
  1. 10 4
      src/views/securityCheck/components/securityCheckHeader.vue

+ 10 - 4
src/views/securityCheck/components/securityCheckHeader.vue

@@ -269,13 +269,19 @@ export default {
       },
     },
     "formData.beginDate": {
-      handler(val) {
-        this.search();
+      handler(val, oldVal) {
+        console.log(val);
+        if (oldVal) {
+          this.search();
+        }
       },
     },
     "formData.endDate": {
-      handler(val) {
-        this.search();
+      handler(val, oldVal) {
+        console.log(val);
+        if (oldVal) {
+          this.search();
+        }
       },
     },
     selectOptions: {