fix:修改 alertMessage endTIme 显示不正确的问题
This commit is contained in:
@@ -60,12 +60,12 @@
|
|||||||
<span v-else-if="item.prop === 'severity'&&scope.row[item.prop]" class="severity">
|
<span v-else-if="item.prop === 'severity'&&scope.row[item.prop]" class="severity">
|
||||||
<i class="nz-icon nz-icon-circle" :style="{color:scope.row[item.prop].color,'font-size':'12px','margin-right':'5px'}"></i> {{scope.row[item.prop].name}}
|
<i class="nz-icon nz-icon-circle" :style="{color:scope.row[item.prop].color,'font-size':'12px','margin-right':'5px'}"></i> {{scope.row[item.prop].name}}
|
||||||
</span>
|
</span>
|
||||||
<span v-else-if="item.prop === 'startAt'">{{utcTimeToTimezoneStr(scope.row[item.prop])}}</span>
|
<span v-else-if="item.prop === 'startAt'">{{utcTimeToTimezoneStr(scope.row.startAt)}}</span>
|
||||||
<template v-else-if="item.prop === 'duration'">
|
<template v-else-if="item.prop === 'duration'">
|
||||||
<el-tooltip :disabled="!scope.row.endAt" effect="light" placement="right">
|
<el-tooltip :disabled="!scope.row.endAt" effect="light" placement="right">
|
||||||
<div slot="content">
|
<div slot="content">
|
||||||
{{$t('config.terminallog.endTime')}}<br/>
|
{{$t('config.terminallog.endTime')}}<br/>
|
||||||
{{scope.row.endAt}}
|
{{utcTimeToTimezoneStr(scope.row.endAt)}}
|
||||||
</div>
|
</div>
|
||||||
<span>{{getDuration(scope.row)}}</span>
|
<span>{{getDuration(scope.row)}}</span>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
@@ -236,7 +236,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getDuration () {
|
getDuration () {
|
||||||
return function (record) {
|
return function (record) {
|
||||||
if (record.endTime) {
|
if (record.endAt) {
|
||||||
return calcDurationByStringTimeB(record.startAt, record.endAt)
|
return calcDurationByStringTimeB(record.startAt, record.endAt)
|
||||||
}
|
}
|
||||||
return calcDurationByStringTimeB(record.startAt, this.nowTime)
|
return calcDurationByStringTimeB(record.startAt, this.nowTime)
|
||||||
|
|||||||
@@ -144,7 +144,7 @@ export default {
|
|||||||
id: 26,
|
id: 26,
|
||||||
name: this.$t('alert.list.id'),
|
name: this.$t('alert.list.id'),
|
||||||
type: 'id',
|
type: 'id',
|
||||||
label: 'id',
|
label: 'ids',
|
||||||
disabled: false
|
disabled: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user