From 0a431154a20f8d685219437c84ce4c67e13bf9e3 Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Fri, 31 Jul 2020 16:19:22 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90PC=E7=AB=AF=E4=BC=98=E5=8C=96=E3=80=91?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=8E=A7=E4=BB=B6=E6=B7=BB=E5=8A=A0=E8=B5=8B?= =?UTF-8?q?=E5=80=BC=E6=96=B9=E6=B3=95-=E7=8E=8B=E5=85=AC=E5=B3=B0-2020-07?= =?UTF-8?q?-31?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/view-module.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/mixins/view-module.js b/src/mixins/view-module.js index ffd43041..b668d7e9 100644 --- a/src/mixins/view-module.js +++ b/src/mixins/view-module.js @@ -152,9 +152,14 @@ export default { }, // 时间段控件取值变化事件-清空一个其他都清空 changeTime (dateValue) { + var startTimeIsNull = this.dataForm.startTime === '' || this.dataForm.startTime === 'null' || this.dataForm.startTime === null + var endTimeIsNull = this.dataForm.endTime === '' || this.dataForm.endTime === 'null' || this.dataForm.endTime === null if (dateValue === null || dateValue === '' || dateValue === 'null') { this.dataForm.startTime = '' this.dataForm.endTime = '' + } else if (startTimeIsNull || endTimeIsNull) { + this.dataForm.startTime = dateValue + this.dataForm.endTime = dateValue } } }