fix:修改底部弹窗 alertMessage 时间错误的问题

This commit is contained in:
zhangyu
2022-03-09 14:26:11 +08:00
parent b44ceec0ca
commit 36cd9af819
15 changed files with 19 additions and 14 deletions

View File

@@ -25,6 +25,7 @@
<alertMessageTable
ref="dataTable"
:api="url"
:orderByFa="'id'"
:loading="tools.loading"
:custom-table-title="tools.customTableTitle"
:height="subTableHeight"
@@ -300,8 +301,8 @@ export default {
this.$set(this.searchLabel, 'pageSize', this.pageObj.pageSize)
this.$set(this.searchLabel, 'state', this.state)
if (this.searchTimeHeader && this.searchTimeHeader.length > 1) {
this.$set(this.searchLabel, 'startAt', this.timezoneToUtcTimeStr(this.searchTimeHeader[0]))
this.$set(this.searchLabel, 'endAt', this.timezoneToUtcTimeStr(this.searchTimeHeader[1]))
this.$set(this.searchLabel, 'startAt', bus.timeFormate(this.timezoneToUtcTime(bus.formateTimeToTime(this.searchTimeHeader[0])), 'YYYY-MM-DD HH:mm:ss'))
this.$set(this.searchLabel, 'endAt', bus.timeFormate(this.timezoneToUtcTime(bus.formateTimeToTime(this.searchTimeHeader[1])), 'YYYY-MM-DD HH:mm:ss'))
} else {
delete this.searchLabel.startAt
delete this.searchLabel.endAt

View File

@@ -16,6 +16,7 @@
<template v-slot>
<alertRuleEvalLogTable
ref="dataTable"
:orderByFa="'id'"
v-loading="tools.loading"
:loading="tools.loading"
:api="url"

View File

@@ -18,6 +18,7 @@
<asset-table
ref="dataTable"
:api="url"
:orderByFa="'id'"
v-loading="tools.loading"
:loading="tools.loading"
:custom-table-title="tools.customTableTitle"

View File

@@ -18,6 +18,7 @@
<asset-table
ref="dataTable"
:api="url"
:orderByFa="'id'"
v-loading="tools.loading"
:loading="tools.loading"
:custom-table-title="tools.customTableTitle"

View File

@@ -18,6 +18,7 @@
<template v-slot>
<cabinet-table
ref="dataTable"
:orderByFa="'id'"
v-loading="tools.loading"
:loading="tools.loading"
:api="url"

View File

@@ -56,6 +56,7 @@
<template v-slot>
<endpointQueryTab
ref="endpointQueryTab"
:orderByFa="'id'"
:from="from"
:obj="obj"
:formatTime="formatTime"

View File

@@ -17,6 +17,7 @@
<template v-slot>
<endpoint-table
ref="dataTable"
:orderByFa="'id'"
v-loading="tools.loading"
:loading="tools.loading"
:api="url"

View File

@@ -15,6 +15,7 @@
<template v-slot>
<operation-log-table
ref="dataTable"
:orderByFa="'id'"
v-loading="tools.loading"
:loading="tools.loading"
:api="url"

View File

@@ -24,6 +24,7 @@
<template v-slot>
<scrape-endpoint-table
ref="dataTable"
:orderByFa="'id'"
v-loading="tools.loading"
:loading="tools.loading"
:api="url"

View File

@@ -15,6 +15,7 @@
<template v-slot>
<terminal-log-table
ref="dataTable"
:orderByFa="'id'"
v-loading="tools.loading"
:loading="tools.loading"
:api="url"