mirror of
https://github.com/jumpserver/lina.git
synced 2025-10-21 23:59:22 +00:00
fix: 修复表格的时间过滤问题
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
|
||||
<script type="text/jsx">
|
||||
import ListTable from '@/components/ListTable'
|
||||
import { timeOffset, getDaysAgo } from '@/utils/common'
|
||||
import { timeOffset, getDaysAgo, getDayEnd } from '@/utils/common'
|
||||
import { ActionsFormatter } from '@/components/ListTable/formatters'
|
||||
export default {
|
||||
name: 'BaseList',
|
||||
@@ -24,7 +24,7 @@ export default {
|
||||
data() {
|
||||
const now = new Date()
|
||||
const dateFrom = getDaysAgo(2, now).toISOString()
|
||||
const dateTo = now.toISOString()
|
||||
const dateTo = getDayEnd(now).toISOString()
|
||||
return {
|
||||
tableConfig: {
|
||||
url: this.url,
|
||||
|
Reference in New Issue
Block a user