This commit is contained in:
jxxghp
2023-06-28 15:28:44 +08:00
parent 7b62357964
commit 2a42d95987
2 changed files with 28 additions and 10 deletions
+10 -2
View File
@@ -51,6 +51,7 @@ const headers = [
{ title: "状态", key: "status"},
{ title: "时间", key: "date"},
{ title: "失败原因", key: "errmsg"},
{ title: "", key: "actions", sortable: false},
];
// 数据列表
@@ -84,8 +85,6 @@ const getStatusColor = (status: boolean) => {
// 加载时获取数据
onMounted(fetchData);
const search = ref("");
</script>
<template>
@@ -127,9 +126,18 @@ const search = ref("");
<template #item.errmsg="{ item }">
{{ item.raw.errmsg }}
</template>
<template #item.actions="{ item }">
<MoreBtn />
</template>
<template #no-data>
没有数据
</template>
</VDataTable>
</VCard>
</template>
<style type="scss">
.v-table th {
white-space: nowrap;
}
</style>