fix(admin-web): 合同管理省份筛选只使用6位代码

PROVINCE_CODE_NAMES 同时包含2位和6位省份代码,但数据库存储的是6位代码。
筛选下拉菜单只使用6位代码,避免查询不到数据。

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-02-05 23:32:55 -08:00
parent 80e3fdb7e0
commit d108d2c693
1 changed files with 7 additions and 5 deletions

View File

@ -38,11 +38,13 @@ const getStatusStyleClass = (status: string): string => {
} }
}; };
// 省份列表(用于筛选) // 省份列表(用于筛选)- 只使用 6 位代码(数据库中存的是 6 位)
const PROVINCE_OPTIONS = Object.entries(PROVINCE_CODE_NAMES).map(([code, name]) => ({ const PROVINCE_OPTIONS = Object.entries(PROVINCE_CODE_NAMES)
value: code, .filter(([code]) => code.length === 6)
label: name, .map(([code, name]) => ({
})); value: code,
label: name,
}));
/** /**
* *