scorpio 2 年之前
父節點
當前提交
250a03e458
共有 1 個文件被更改,包括 4 次插入4 次删除
  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 {