chenrui  il y a 2 ans
Parent
commit
79937e7c50
1 fichiers modifiés avec 10 ajouts et 4 suppressions
  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: {