fix history

This commit is contained in:
jxxghp
2023-06-28 12:50:02 +08:00
parent 824b27020c
commit 7b62357964

View File

@@ -49,6 +49,7 @@ const headers = [
{ title: "目录", key: "src"}, { title: "目录", key: "src"},
{ title: "转移方式", key: "mode"}, { title: "转移方式", key: "mode"},
{ title: "状态", key: "status"}, { title: "状态", key: "status"},
{ title: "时间", key: "date"},
{ title: "失败原因", key: "errmsg"}, { title: "失败原因", key: "errmsg"},
]; ];
@@ -88,11 +89,15 @@ const search = ref("");
</script> </script>
<template> <template>
<VCard title="历史记录"> <VCard title="历史记录" class="pb-5">
<VDataTable <VDataTable
:headers="headers" :headers="headers"
:items="dataList" :items="dataList"
fixed-header
show-select show-select
:items-per-page="25"
items-per-page-text="每页条数"
page-text="{0}-{1} {2} "
> >
<template #item.title="{ item }"> <template #item.title="{ item }">
<div class="d-flex"> <div class="d-flex">
@@ -116,6 +121,9 @@ const search = ref("");
{{ item.raw.status ? '成功' : '失败' }} {{ item.raw.status ? '成功' : '失败' }}
</VChip> </VChip>
</template> </template>
<template #item.date="{ item }">
<small>{{ item.raw.date }}</small>
</template>
<template #item.errmsg="{ item }"> <template #item.errmsg="{ item }">
{{ item.raw.errmsg }} {{ item.raw.errmsg }}
</template> </template>