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:
parent
80e3fdb7e0
commit
d108d2c693
|
|
@ -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,
|
||||
}));
|
||||
|
||||
/**
|
||||
* 合同管理页面
|
||||
|
|
|
|||
Loading…
Reference in New Issue