From 7ba99bfce632e921c4581e1746abcf561399178e Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 30 Jul 2020 16:10:39 +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=E4=BF=AE=E6=94=B9-?= =?UTF-8?q?=E7=8E=8B=E5=85=AC=E5=B3=B0-2020-07-30?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/view-module.js | 7 +++++++ src/views/modules/user/unauthorized.vue | 7 +++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/mixins/view-module.js b/src/mixins/view-module.js index f9337d04..e4f91c85 100644 --- a/src/mixins/view-module.js +++ b/src/mixins/view-module.js @@ -149,6 +149,13 @@ export default { ...this.dataForm }) window.location.href = `${window.SITE_CONFIG['apiURL']}${this.mixinViewModuleOptions.exportMoudle}?${params}` + }, + // 时间段控件取值变化事件-清空一个其他都清空 + changeTime (dateValue) { + if (dateValue === null || dateValue === '') { + this.dataForm.startTime = '' + this.dataForm.endTime = '' + } } } } diff --git a/src/views/modules/user/unauthorized.vue b/src/views/modules/user/unauthorized.vue index f6aac160..cd757d68 100644 --- a/src/views/modules/user/unauthorized.vue +++ b/src/views/modules/user/unauthorized.vue @@ -66,7 +66,8 @@ value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="选择日期时间" - style="width:200px"> + style="width:200px" + @change="changeTime"> @@ -76,7 +77,8 @@ value-format="yyyy-MM-dd" format="yyyy-MM-dd" placeholder="选择日期时间" - style="width:200px"> + style="width:200px" + @change="changeTime"> @@ -108,6 +110,7 @@ label="昵称" header-align="center" align="center" + show-overflow-tooltip >