gitadd.
Some checks failed
CI / Test (ubuntu-latest) (push) Has been cancelled
CI / Test (windows-latest) (push) Has been cancelled
CI / Lint (ubuntu-latest) (push) Has been cancelled
CI / Lint (windows-latest) (push) Has been cancelled
CI / Check (ubuntu-latest) (push) Has been cancelled
CI / Check (windows-latest) (push) Has been cancelled
CI / CI OK (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Deploy Website on push / Deploy Push Playground Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Docs Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Antd Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Element Ftp (push) Has been cancelled
Deploy Website on push / Deploy Push Naive Ftp (push) Has been cancelled
Deploy Website on push / Rerun on failure (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
Lock Threads / action (push) Has been cancelled
Issue Close Require / close-issues (push) Has been cancelled
Close stale issues / stale (push) Has been cancelled

This commit is contained in:
2025-12-30 18:01:01 +08:00
parent 05b568bc93
commit 107b28752c
2 changed files with 5 additions and 4 deletions

View File

@@ -32,8 +32,8 @@ export function useCommissionColumns(): VxeTableGridOptions['columns'] {
width: 100, width: 100,
formatter: ({ cellValue }: { cellValue: number }) => { formatter: ({ cellValue }: { cellValue: number }) => {
const statusMap: Record<number, string> = { const statusMap: Record<number, string> = {
0: '结算', 0: '结算',
1: '已结算', 1: '冻结中',
2: '已取消', 2: '已取消',
}; };
return statusMap[cellValue] || '未知'; return statusMap[cellValue] || '未知';
@@ -64,8 +64,8 @@ export function useCommissionFormSchema(): VbenFormSchema[] {
componentProps: { componentProps: {
allowClear: true, allowClear: true,
options: [ options: [
{ label: '结算', value: 0 }, { label: '结算', value: 0 },
{ label: '已结算', value: 1 }, { label: '冻结中', value: 1 },
{ label: '已取消', value: 2 }, { label: '已取消', value: 2 },
], ],
}, },

View File

@@ -24,6 +24,7 @@ const queryParams = computed(() => ({
...(props.agentId ? { agent_id: props.agentId } : {}), ...(props.agentId ? { agent_id: props.agentId } : {}),
})); }));
const [Grid] = useVbenVxeGrid({ const [Grid] = useVbenVxeGrid({
formOptions: { formOptions: {
schema: useCommissionFormSchema(), schema: useCommissionFormSchema(),