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
>