diff --git a/frontend/admin-web/src/app/(dashboard)/contracts/page.tsx b/frontend/admin-web/src/app/(dashboard)/contracts/page.tsx index d3096f78..3ee42a9d 100644 --- a/frontend/admin-web/src/app/(dashboard)/contracts/page.tsx +++ b/frontend/admin-web/src/app/(dashboard)/contracts/page.tsx @@ -38,11 +38,13 @@ const getStatusStyleClass = (status: string): string => { } }; -// 省份列表(用于筛选) -const PROVINCE_OPTIONS = Object.entries(PROVINCE_CODE_NAMES).map(([code, name]) => ({ - value: code, - label: name, -})); +// 省份列表(用于筛选)- 只使用 6 位代码(数据库中存的是 6 位) +const PROVINCE_OPTIONS = Object.entries(PROVINCE_CODE_NAMES) + .filter(([code]) => code.length === 6) + .map(([code, name]) => ({ + value: code, + label: name, + })); /** * 合同管理页面