Skip to content

Commit

Permalink
fixed:修复页码跳转,修复默认时间展示问题
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyuankai committed Mar 29, 2022
1 parent daed853 commit e7f73ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion client/src/pages/authorizedAccountManage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ export default function AuthorizedAccountManage() {
pageSize,
total: accountTotal,
current: currentPage,
showJumper: true,
pageSizeOptions: [15],
onCurrentChange: setCurrentPage,
}}
Expand Down
6 changes: 2 additions & 4 deletions client/src/pages/thirdMessage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ export default function ThirdMessage() {

const pageSize = 15

const defaultTime: [string, string] = [moment().subtract(2, 'hours').format('YYYY-MM-DD HH:mm:ss'), moment().format('YYYY-MM-DD HH:mm:ss')]
const defaultTime: [string, string] = [moment().startOf('day').format('YYYY-MM-DD HH:mm:ss'), moment().endOf('day').format('YYYY-MM-DD HH:mm:ss')]

const [selectedTab, setSelectedTab] = useState<string | number>(tabs[0].value)
const [isTableLoading, setIsTableLoading] = useState<boolean>(false)
Expand Down Expand Up @@ -179,7 +179,7 @@ export default function ThirdMessage() {
limit: pageSize,
offset: (authPage -1) * pageSize,
startTime: moment(authTimeInput[0]).valueOf() / 1000,
endTime: moment(authTimeInput[1]).add(23, 'hours').add(59, 'minutes').add(59, 'seconds').valueOf() / 1000
endTime: parseInt(String(moment(authTimeInput[1]).endOf('day').valueOf() / 1000))
}
})
if (resp.code === 0) {
Expand Down Expand Up @@ -270,7 +270,6 @@ export default function ThirdMessage() {
pageSize,
total: authDataTotal,
current: authPage,
showJumper: true,
pageSizeOptions: [15],
onCurrentChange:(current) => setAuthPage(current),
}}
Expand Down Expand Up @@ -310,7 +309,6 @@ export default function ThirdMessage() {
pageSize,
total: normalDataTotal,
current: normalPage,
showJumper: true,
pageSizeOptions: [15],
onCurrentChange:(current) => setNormalPage(current),
}}
Expand Down

0 comments on commit e7f73ce

Please sign in to comment.