Commit 91815420 by wufan Committed by zhangleyuan

fix:修复用户管理时间筛选不准确问题

parent 776dfe7c
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wufan * @Author: wufan
* @Date: 2020-11-30 10:47:38 * @Date: 2020-11-30 10:47:38
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2020-12-09 10:57:18 * @LastEditTime: 2020-12-09 19:21:13
* @Description: 用户管理页面 * @Description: 用户管理页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -129,16 +129,10 @@ function UserManagePage() { ...@@ -129,16 +129,10 @@ function UserManagePage() {
: null : null
} }
format={"YYYY-MM-DD"} format={"YYYY-MM-DD"}
disabledDate={(current) => {
return (
current &&
current.valueOf() > moment().endOf("day").valueOf()
);
}}
onChange={(dates: any) => { onChange={(dates: any) => {
const _query = _.clone(query); const _query = _.clone(query);
_query.registerBegin = dates ? dates[0].valueOf() : null; _query.registerBegin = dates ? dates[0].startOf("day").valueOf() : null;
_query.registerEnd = dates ? dates[1].valueOf() : null; _query.registerEnd = dates ? dates[1].endOf("day").valueOf() : null;
setQuery({ setQuery({
..._query ..._query
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment