NEZ-2351 fix:terminal log command 二级页面时间时区错误
This commit is contained in:
@@ -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 '-'
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
<nz-bottom-data-list
|
||||
:showTitle='showTitle'
|
||||
:obj='obj'
|
||||
:tableId="tableId"
|
||||
:layout="[]"
|
||||
:tabs="tabs"
|
||||
:targetTab="targetTab"
|
||||
|
||||
@@ -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) => { // 修复切换中英文的问题
|
||||
|
||||
Reference in New Issue
Block a user