mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Handle time stamp formatting in selection dialog
This commit is contained in:
@@ -56,16 +56,6 @@ async function load() {
|
||||
items.value = incoming.map((item: any) => {
|
||||
let timeStamp = item[props.timeKey];
|
||||
showTime.value = !!timeStamp;
|
||||
if (timeStamp) {
|
||||
const date = new Date(timeStamp);
|
||||
timeStamp = date.toLocaleString("default", {
|
||||
day: "numeric",
|
||||
month: "short",
|
||||
year: "numeric",
|
||||
minute: "numeric",
|
||||
hour: "numeric",
|
||||
});
|
||||
}
|
||||
return {
|
||||
id: item.id,
|
||||
label: item[props.labelKey] || null,
|
||||
|
||||
@@ -189,7 +189,7 @@ watch(
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
<template v-slot:cell(time)="data">
|
||||
{{ data.value ? data.value : "-" }}
|
||||
{{ formatTime(data.value) }}
|
||||
</template>
|
||||
<template v-slot:cell(update_time)="data">
|
||||
{{ formatTime(data.value) }}
|
||||
|
||||
Reference in New Issue
Block a user