mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-02 07:27:01 +00:00
Merge pull request #169 from jumpserver/audit_fix
fix(audit): 修复时间显示兼容firefox
This commit is contained in:
commit
781bbe0ffa
@ -9,7 +9,7 @@
|
||||
|
||||
<script type="text/jsx">
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { getDaysAgo } from '@/utils/common'
|
||||
import { getDaysAgo, toSafeLocalDateStr } from '@/utils/common'
|
||||
import { Dialog, ListTable } from '@/components'
|
||||
import { DisplayFormatter } from '@/components/ListTable/formatters'
|
||||
import { setUrlParam } from '@/utils/common'
|
||||
@ -66,7 +66,10 @@ export default {
|
||||
}
|
||||
},
|
||||
date_start: {
|
||||
width: '160px'
|
||||
width: '160px',
|
||||
formatter: function(row, cell, value) {
|
||||
return toSafeLocalDateStr(value)
|
||||
}
|
||||
}
|
||||
},
|
||||
extraQuery: {
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<script>
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { getDaysAgo } from '@/utils/common'
|
||||
import { getDaysAgo, toSafeLocalDateStr } from '@/utils/common'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -42,6 +42,11 @@ export default {
|
||||
},
|
||||
is_success: {
|
||||
width: '80px'
|
||||
},
|
||||
date_start: {
|
||||
formatter: function(row, cell, value) {
|
||||
return toSafeLocalDateStr(value)
|
||||
}
|
||||
}
|
||||
},
|
||||
extraQuery: {
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<script>
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { getDaysAgo } from '@/utils/common'
|
||||
import { getDaysAgo, toSafeLocalDateStr } from '@/utils/common'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -40,7 +40,10 @@ export default {
|
||||
width: '100px'
|
||||
},
|
||||
datetime: {
|
||||
width: '160px'
|
||||
width: '160px',
|
||||
formatter: function(row, cell, value) {
|
||||
return toSafeLocalDateStr(value)
|
||||
}
|
||||
},
|
||||
reason: {
|
||||
showOverflowTooltip: true
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<script>
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { getDaysAgo } from '@/utils/common'
|
||||
import { getDaysAgo, toSafeLocalDateStr } from '@/utils/common'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -29,7 +29,10 @@ export default {
|
||||
showOverflowTooltip: true
|
||||
},
|
||||
datetime: {
|
||||
width: '160px'
|
||||
width: '160px',
|
||||
formatter: function(row, cell, value) {
|
||||
return toSafeLocalDateStr(value)
|
||||
}
|
||||
},
|
||||
remote_addr: {
|
||||
width: '140px'
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
<script>
|
||||
import GenericListPage from '@/layout/components/GenericListPage'
|
||||
import { getDaysAgo } from '@/utils/common'
|
||||
import { getDaysAgo, toSafeLocalDateStr } from '@/utils/common'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -29,7 +29,10 @@ export default {
|
||||
showOverflowTooltip: true
|
||||
},
|
||||
datetime: {
|
||||
width: '180px'
|
||||
width: '180px',
|
||||
formatter: function(row, cell, value) {
|
||||
return toSafeLocalDateStr(value)
|
||||
}
|
||||
}
|
||||
},
|
||||
extraQuery: {
|
||||
|
Loading…
Reference in New Issue
Block a user