From 940510a82650099d8dc2c053716f9158d8bc76aa Mon Sep 17 00:00:00 2001 From: yml2213 Date: Mon, 21 Sep 2026 15:29:12 +0800 Subject: [PATCH] =?UTF-8?q?feat(admin-listings):=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=95=86=E5=93=81=E7=AE=A1=E7=90=86=E8=A1=A8=E6=A0=BC=E7=BA=AF?= =?UTF-8?q?=E5=B8=81=E4=BB=B7=E6=A0=BC=E5=B1=95=E7=A4=BA=E4=B8=8E=E7=A7=9F?= =?UTF-8?q?=E6=9C=9F=E5=88=97=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 将原“纯币价格(号主)”调整为“租客纯币价格”,底层取值切换为租客纯币计算(getListingRentPrice),适配列宽与悬浮提示; 2. 调整表格列顺序,将“租期”列移动至“租客纯币价格”与“租金/押金”中间; 3. 同步调整表格图片导出/截图配置(screenshotColumns)的列名与排序,保持视图与导出一致。 --- .../admin/views/AdminListingsView.vue | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/frontend/src/features/admin/views/AdminListingsView.vue b/frontend/src/features/admin/views/AdminListingsView.vue index 69f107e..64271b4 100644 --- a/frontend/src/features/admin/views/AdminListingsView.vue +++ b/frontend/src/features/admin/views/AdminListingsView.vue @@ -22,7 +22,7 @@ import { formatRatio, getCoinWan, getDailyLoss, - getListingSellerCoinPrice, + getListingRentPrice, getResourceQuantity, getSkinGroup, } from '@/shared/utils/listingDisplay' @@ -136,14 +136,14 @@ const screenshotColumns = [ read: (row: Listing) => characterAndWeaponSkinText(row), }, { label: '号主备注', width: 160, read: (row: Listing) => ownerRemarkText(row) }, - { label: '纯币价格', width: 90, read: (row: Listing) => ownerPureCoinPriceText(row) }, - { label: '租金/押金', width: 96, read: (row: Listing) => rentAndDepositText(row) }, - { label: '比例', width: 64, read: (row: Listing) => formatRatio(row) }, + { label: '租客纯币价格', width: 105, read: (row: Listing) => renterPureCoinPriceText(row) }, { label: '租期', width: 92, read: (row: Listing) => rentalPeriodText(row), }, + { label: '租金/押金', width: 96, read: (row: Listing) => rentAndDepositText(row) }, + { label: '比例', width: 64, read: (row: Listing) => formatRatio(row) }, ] as const async function queryListings() { @@ -601,9 +601,9 @@ function rentAndDepositText(row: Listing) { return `${listingPrice(row)}/${formatCentWithSymbol(row.deposit_amount_cent)}` } -// 号主纯币价格:号主收号价里的纯币部分(不含额外消耗品),取自发布时固化的价格快照。 -function ownerPureCoinPriceText(row: Listing) { - const price = getListingSellerCoinPrice(row) +// 租客纯币价格:不含额外消耗品的纯币部分(快照 buyer_coin_base_price 或 总价减消耗品)。 +function renterPureCoinPriceText(row: Listing) { + const price = getListingRentPrice(row) if (price <= 0) return '-' return formatCentWithSymbol(Math.round(price * 100)) } @@ -974,26 +974,25 @@ function formatQuantity(value: number) { - + - - - - - - - + + + + + +