fix TransferHistoryView

This commit is contained in:
jxxghp
2024-09-21 17:33:32 +08:00
parent 4434d7b8c9
commit 1efd0a3d5b
4 changed files with 42 additions and 21 deletions

View File

@@ -8,6 +8,7 @@ import ProgressDialog from '@/components/dialog/ProgressDialog.vue'
import { useRoute } from 'vue-router'
import router from '@/router'
import { useDisplay } from 'vuetify'
import { storageDict } from '@/api/constants'
// 显示器宽度
const display = useDisplay()
@@ -413,7 +414,18 @@ onMounted(fetchData)
</div>
</template>
<template #item.src="{ item }">
<small>{{ item?.src }} <br />=> {{ item?.dest }}</small>
<div>
<span>
<VChip size="small" label class="my-1"> {{ storageDict[item?.src_storage || ''] }}</VChip>
<small>{{ item?.src }}</small>
</span>
<span class="text-high-emphasis text-bold"> => </span>
<br />
<span>
<VChip size="small" label class="my-1"> {{ storageDict[item?.dest_storage || ''] }}</VChip>
<small>{{ item?.dest }}</small>
</span>
</div>
</template>
<template #item.mode="{ item }">
<VChip variant="outlined" color="primary" size="small">