{{$t('config.terminallog.endTime')}}
- {{scope.row.endAt}}
+ {{utcTimeToTimezoneStr(scope.row.endAt)}}
{{getDuration(scope.row)}}
@@ -236,7 +236,7 @@ export default {
},
getDuration () {
return function (record) {
- if (record.endTime) {
+ if (record.endAt) {
return calcDurationByStringTimeB(record.startAt, record.endAt)
}
return calcDurationByStringTimeB(record.startAt, this.nowTime)
diff --git a/nezha-fronted/src/components/page/alert/alertMessage.vue b/nezha-fronted/src/components/page/alert/alertMessage.vue
index 58169a73d..4dce6eb2a 100644
--- a/nezha-fronted/src/components/page/alert/alertMessage.vue
+++ b/nezha-fronted/src/components/page/alert/alertMessage.vue
@@ -144,7 +144,7 @@ export default {
id: 26,
name: this.$t('alert.list.id'),
type: 'id',
- label: 'id',
+ label: 'ids',
disabled: false
},
{
@@ -244,7 +244,7 @@ export default {
},
queryChartDate () {
const $temp = this
- const start = this.searchTime[0] ? this.searchTime[0] : bus.computeTimezoneTime(new Date().getTime() - 1 * 30 * 60* 1000)
+ const start = this.searchTime[0] ? this.searchTime[0] : bus.computeTimezoneTime(new Date().getTime() - 1 * 30 * 60 * 1000)
const end = this.searchTime[1] ? this.searchTime[1] : bus.computeTimezoneTime(new Date().getTime())
this.searchTimeDialog = [start, end]
const timeDiff = (new Date(end).getTime() - new Date(start).getTime()) / 1000 / (24 * 60 * 60)