scorpio 2 éve
szülő
commit
250a03e458
1 módosított fájl, 4 hozzáadás és 4 törlés
  1. 4 4
      src/views/home/component/owner_serach.vue

+ 4 - 4
src/views/home/component/owner_serach.vue

@@ -294,7 +294,7 @@ export default {
         return
       }
       if (this.form.isStart === 0) {
-        this.form.planCommencementTime = this.time1
+        this.form.planCommencementTime = this.time1 === null ? '' : this.time1
         this.form.startTime = ''
       } else if (this.form.isStart === 1 && this.time1 !== null) {
         this.form.planCommencementTime = ''
@@ -304,10 +304,10 @@ export default {
         this.form.startTime = ''
       }
 
-      if (this.form.isStorage === 0 ) {
-        this.form.planStorageTime = this.time2
+      if (this.form.isStorage === 0) {
+        this.form.planStorageTime = this.time2 === null ? '' : this.time2
         this.form.storageTime = ''
-      } else if (this.form.isStorage === 1 ) {
+      } else if (this.form.isStorage === 1) {
         this.form.planStorageTime = ''
         this.form.storageTime = this.time2
       } else {