diff --git a/frontend/src/features/admin/views/AdminListingsView.vue b/frontend/src/features/admin/views/AdminListingsView.vue index 8f63564..9e2530c 100644 --- a/frontend/src/features/admin/views/AdminListingsView.vue +++ b/frontend/src/features/admin/views/AdminListingsView.vue @@ -132,6 +132,7 @@ const screenshotColumns = [ width: 420, read: (row: Listing) => characterAndWeaponSkinText(row), }, + { label: '号主备注', width: 160, read: (row: Listing) => ownerRemarkText(row) }, { label: '租金/押金', width: 96, read: (row: Listing) => rentAndDepositText(row) }, { label: '比例', width: 64, read: (row: Listing) => formatRatio(row) }, { @@ -488,6 +489,11 @@ function characterAndWeaponSkinText(row: Listing) { return parts.length ? parts.join(' / ') : '-' } +function ownerRemarkText(row: Listing) { + const remark = row.description?.trim() + return remark || '-' +} + function rentAndDepositText(row: Listing) { return `${listingPrice(row)}/${formatCentWithSymbol(row.deposit_amount_cent)}` } @@ -516,7 +522,7 @@ function formatQuantity(value: number) { @@ -855,6 +861,9 @@ function formatQuantity(value: number) { {{ characterAndWeaponSkinText(row) }} + + +