From 2ff4c11f0a8ac4e855a17ec45eee4d8ea4e4f5f5 Mon Sep 17 00:00:00 2001 From: zhx Date: Sat, 23 May 2026 21:27:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=96=B0=E7=9A=84=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/src/views/operate/cp-apply.vue | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/apps/src/views/operate/cp-apply.vue b/apps/src/views/operate/cp-apply.vue index 5445987..8ae31b1 100644 --- a/apps/src/views/operate/cp-apply.vue +++ b/apps/src/views/operate/cp-apply.vue @@ -17,6 +17,7 @@ import { } from 'antdv-next'; import UserProfileLink from './components/user-profile-link.vue'; +import { CP_RELATION_TYPE_OPTIONS } from './constants'; defineOptions({ name: 'OperateCpApply' }); @@ -33,6 +34,10 @@ const statusFilterOptions = STATUS_OPTIONS.map(({ label, value }) => ({ value, })); +const cpRelationTypeLabelMap = new Map( + CP_RELATION_TYPE_OPTIONS.map((item) => [item.value, item.name]), +); + const loading = ref(false); const total = ref(0); const list = ref>>([]); @@ -64,6 +69,7 @@ const columns: any[] = [ title: '金额', width: 120, }, + { dataIndex: 'relationType', key: 'relationType', title: '关系类型', width: 120 }, { dataIndex: 'status', key: 'status', title: '状态', width: 120 }, { dataIndex: 'time', key: 'time', title: '时间', width: 220 }, ]; @@ -77,6 +83,11 @@ function getStatusMeta(status?: string) { ); } +function getCpRelationTypeName(relationType?: string) { + const value = relationType || 'CP'; + return cpRelationTypeLabelMap.get(value) || value || '-'; +} + async function loadData(reset = false) { if (reset) { query.cursor = 1; @@ -137,7 +148,7 @@ void loadData(true); :loading="loading" :pagination="false" row-key="id" - :scroll="{ x: 1060 }" + :scroll="{ x: 1180 }" >