Commit 3c5b7a07 by wufan

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

parent 86a7531a
......@@ -2,7 +2,7 @@
* @Author: wufan
* @Date: 2020-11-30 10:47:38
* @LastEditors: wufan
* @LastEditTime: 2020-12-09 10:57:18
* @LastEditTime: 2020-12-09 19:21:13
* @Description: 用户管理页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/
......@@ -129,16 +129,10 @@ function UserManagePage() {
: null
}
format={"YYYY-MM-DD"}
disabledDate={(current) => {
return (
current &&
current.valueOf() > moment().endOf("day").valueOf()
);
}}
onChange={(dates: any) => {
const _query = _.clone(query);
_query.registerBegin = dates ? dates[0].valueOf() : null;
_query.registerEnd = dates ? dates[1].valueOf() : null;
_query.registerBegin = dates ? dates[0].startOf("day").valueOf() : null;
_query.registerEnd = dates ? dates[1].endOf("day").valueOf() : null;
setQuery({
..._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