Skip to content

Commit a70873f

Browse files
authored
fix: update date format and adjust header cell width (#518)
fix: adjust header cell width based on view state; update date format in toDateStr function
1 parent 5d6f025 commit a70873f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/views/dashboard/logs/query/TableData.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
arr.push({
177177
dataIndex: tsColumn.value.name,
178178
title: tsColumn.value.name,
179-
headerCellStyle: { width: '170px' },
179+
headerCellStyle: { width: tsViewStr.value ? '220px' : '170px' },
180180
})
181181
}
182182
arr.push({

src/views/dashboard/logs/query/until.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ export type TimeType = keyof typeof TimeTypes
188188
export function toDateStr(time: number, multiple: number, format?: string) {
189189
// const multiple = TimeTypes[type]
190190
const ms = toMs(time, multiple)
191-
return dayjs(ms).format(format || 'MM-DD HH:mm:ss.SSS')
191+
return dayjs(ms).format(format || 'YYYY-MM-DD HH:mm:ss.SSS')
192192
}
193193

194194
const LIMIT_RE = /LIMIT\s+(\d+)/

0 commit comments

Comments
 (0)