NEZ-2351 fix:terminal log command 二级页面时间时区错误

This commit is contained in:
zhangyu
2022-11-02 11:30:05 +08:00
parent 5974f4f0c4
commit 4426f06099
4 changed files with 5 additions and 5 deletions

View File

@@ -1,7 +1,6 @@
<template>
<nz-bottom-data-list
:showTitle='showTitle'
:tableId="tableId"
:obj='obj'
:layout="[]"
:tabs="tabs"
@@ -51,10 +50,10 @@ export default {
calcTime () {
return function (time) {
if (this.obj.startTime) {
const startTime = new Date(this.obj.startTime).getTime()
const startTime = new Date(this.utcTimeToTimezoneStr(this.obj.startTime)).getTime()
if (startTime) {
const thisTime = startTime + time
return this.dateFormat(thisTime)
return this.momentTz(thisTime)
}
}
return '-'

View File

@@ -6,7 +6,6 @@
:tabs="tabs"
:targetTab="targetTab"
@changeTab="changeTab"
:tableId="tableId"
:title="'Session ID'"
>
<template v-slot:title><span :title="obj.uuid.substring(0, 8).toUpperCase()">{{obj.uuid.substring(0, 8).toUpperCase()}}</span></template>

View File

@@ -2,7 +2,6 @@
<nz-bottom-data-list
:showTitle='showTitle'
:obj='obj'
:tableId="tableId"
:layout="[]"
:tabs="tabs"
:targetTab="targetTab"

View File

@@ -1321,6 +1321,9 @@ export default {
} else if (this.$refs.dataDetail) {
tableTitle = this.$refs.dataDetail.tableTitle
}
if (!tableTitle || !this.tableId) {
return
}
let localStorageTableTitle = localStorage.getItem('nz-tableTitle-' + localStorage.getItem('nz-username') + '-' + this.tableId)
localStorageTableTitle = localStorageTableTitle ? JSON.parse(localStorageTableTitle) : tableTitle
this.tools.customTableTitle = tableTitle.map((item, index) => { // 修复切换中英文的问题