mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 11:24:17 +00:00
fix: 修改日期搜索默认8天内
This commit is contained in:
committed by
Jiangjie.Bai
parent
cd51596d45
commit
5577051416
@@ -9,7 +9,7 @@
|
||||
|
||||
<script type="text/jsx">
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { getDayEnd, getDaysAgo } from '@/utils/common'
|
||||
import { getDaysFuture, getDaysAgo } from '@/utils/common'
|
||||
import { Dialog, ListTable } from '@/components'
|
||||
import { DisplayFormatter } from '@/components/TableFormatters'
|
||||
import { setUrlParam } from '@/utils/common'
|
||||
@@ -21,7 +21,7 @@ export default {
|
||||
data() {
|
||||
const now = new Date()
|
||||
const dateFrom = getDaysAgo(7, now).toISOString()
|
||||
const dateTo = getDayEnd(now).toISOString()
|
||||
const dateTo = getDaysFuture(1, now).toISOString()
|
||||
const vm = this
|
||||
return {
|
||||
tableConfig: {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<script>
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { getDayEnd, getDaysAgo } from '@/utils/common'
|
||||
import { getDaysAgo, getDaysFuture } from '@/utils/common'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
data() {
|
||||
const now = new Date()
|
||||
const dateFrom = getDaysAgo(7, now).toISOString()
|
||||
const dateTo = getDayEnd(now).toISOString()
|
||||
const dateTo = getDaysFuture(1, now).toISOString()
|
||||
return {
|
||||
tableConfig: {
|
||||
permissions: {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<script>
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { getDayEnd, getDaysAgo } from '@/utils/common'
|
||||
import { getDaysAgo, getDaysFuture } from '@/utils/common'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
data() {
|
||||
const now = new Date()
|
||||
const dateFrom = getDaysAgo(7, now).toISOString()
|
||||
const dateTo = getDayEnd(now).toISOString()
|
||||
const dateTo = getDaysFuture(1, now).toISOString()
|
||||
return {
|
||||
tableConfig: {
|
||||
url: '/api/v1/audits/operate-logs/',
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<script>
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { getDayEnd, getDaysAgo } from '@/utils/common'
|
||||
import { getDaysAgo, getDaysFuture } from '@/utils/common'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
data() {
|
||||
const now = new Date()
|
||||
const dateFrom = getDaysAgo(7, now).toISOString()
|
||||
const dateTo = getDayEnd(now).toISOString()
|
||||
const dateTo = getDaysFuture(1, now).toISOString()
|
||||
return {
|
||||
tableConfig: {
|
||||
url: '/api/v1/audits/password-change-logs/',
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
|
||||
<script>
|
||||
import GenericTreeListPage from '@/layout/components/GenericTreeListPage/index'
|
||||
import { getDayEnd, getDaysAgo, toSafeLocalDateStr } from '@/utils/common'
|
||||
import { getDaysAgo, getDaysFuture, toSafeLocalDateStr } from '@/utils/common'
|
||||
import { OutputExpandFormatter } from './formatters'
|
||||
import { DetailFormatter } from '@/components/TableFormatters'
|
||||
import isFalsey from '@/components/DataTable/compenents/el-data-table/utils/is-falsey'
|
||||
@@ -30,12 +30,12 @@ export default {
|
||||
data() {
|
||||
const vm = this
|
||||
const now = new Date()
|
||||
const dateFrom = getDaysAgo(2, now).toISOString()
|
||||
const dateTo = getDayEnd(now).toISOString()
|
||||
const dateFrom = getDaysAgo(7, now).toISOString()
|
||||
const dateTo = getDaysFuture(1, now).toISOString()
|
||||
return {
|
||||
query: {
|
||||
date_from: getDaysAgo(2, now).toISOString(),
|
||||
date_to: getDayEnd(now).toISOString()
|
||||
date_from: getDaysAgo(7, now).toISOString(),
|
||||
date_to: getDaysFuture(1, now).toISOString()
|
||||
},
|
||||
loading: true,
|
||||
tableConfig: {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<script>
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { getDayEnd, getDaysAgo } from '@/utils/common'
|
||||
import { getDaysFuture, getDaysAgo } from '@/utils/common'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@@ -13,7 +13,7 @@ export default {
|
||||
data() {
|
||||
const now = new Date()
|
||||
const dateFrom = getDaysAgo(7, now).toISOString()
|
||||
const dateTo = getDayEnd(now).toISOString()
|
||||
const dateTo = getDaysFuture(1, now).toISOString()
|
||||
return {
|
||||
tableConfig: {
|
||||
url: '/api/v1/audits/ftp-logs/',
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
<script type="text/jsx">
|
||||
import ListTable from '@/components/ListTable'
|
||||
import { timeOffset, getDaysAgo, getDayEnd } from '@/utils/common'
|
||||
import { timeOffset, getDaysAgo, getDaysFuture } from '@/utils/common'
|
||||
import { ActionsFormatter } from '@/components/TableFormatters'
|
||||
export default {
|
||||
name: 'BaseList',
|
||||
@@ -23,8 +23,8 @@ export default {
|
||||
},
|
||||
data() {
|
||||
const now = new Date()
|
||||
const dateFrom = getDaysAgo(2, now).toISOString()
|
||||
const dateTo = getDayEnd(now).toISOString()
|
||||
const dateFrom = getDaysAgo(7, now).toISOString()
|
||||
const dateTo = getDaysFuture(1, now).toISOString()
|
||||
return {
|
||||
tableConfig: {
|
||||
url: this.url,
|
||||
|
||||
Reference in New Issue
Block a user