fix: 实体详情搜索历史时间格式调整,安全事件下拉列表时间格式调整
This commit is contained in:
@@ -230,7 +230,6 @@ import { get } from '@/utils/http'
|
|||||||
import { unitTypes } from '@/utils/constants'
|
import { unitTypes } from '@/utils/constants'
|
||||||
import { replaceUrlPlaceholder } from '@/utils/tools'
|
import { replaceUrlPlaceholder } from '@/utils/tools'
|
||||||
import * as echarts from 'echarts'
|
import * as echarts from 'echarts'
|
||||||
import { dateFormatByAppearance } from '@/utils/date-util'
|
|
||||||
import {
|
import {
|
||||||
getOption,
|
getOption,
|
||||||
getChartColor,
|
getChartColor,
|
||||||
|
|||||||
@@ -230,9 +230,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="timeline__start-time">
|
<div class="timeline__start-time">
|
||||||
{{
|
{{
|
||||||
dayJs
|
dateFormatByAppearance(event.startTime)
|
||||||
.tz(getMillisecond(event.startTime))
|
|
||||||
.format('YYYY-MM-DD HH:mm:ss')
|
|
||||||
}}
|
}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -262,7 +262,7 @@ export default {
|
|||||||
if (sql) {
|
if (sql) {
|
||||||
const oldHistory = localStorage.getItem(storageKey.entitySearchHistory)
|
const oldHistory = localStorage.getItem(storageKey.entitySearchHistory)
|
||||||
let arr = []
|
let arr = []
|
||||||
const newItem = { sql, date: window.$dayJs.tz(new Date().getTime()).format('YYYY-MM-DD HH:mm:ss') }
|
const newItem = { sql, date: this.dateFormatByAppearance(new Date()) }
|
||||||
if (!this.$_.isEmpty(oldHistory)) {
|
if (!this.$_.isEmpty(oldHistory)) {
|
||||||
const oldArr = JSON.parse(oldHistory)
|
const oldArr = JSON.parse(oldHistory)
|
||||||
oldArr.unshift(newItem)
|
oldArr.unshift(newItem)
|
||||||
|
|||||||
Reference in New Issue
Block a user