Fix Bug #461: 执行科室配置-项目名称回显为ID码,前后端类型不一致导致匹配失败
根因:ActivityDefinition.id 未加 @JsonSerialize,后端序列化为 JS Number(大数精度丢失), 而 OrgLocQueryDto.activityDefinitionId 有 ToStringSerializer 序列化为 String。 前端 === 严格比较 Number !== String,导致 filteredOptions 匹配失败。 修复: 1. ActivityDefinition.id 添加 @JsonSerialize(using = ToStringSerializer.class) 2. 前端 getAllImplementDepartment 中 value 转为 String() 统一类型 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -255,7 +255,7 @@ async function getAllImplementDepartment() {
|
||||
try {
|
||||
const res = await getAllTreatmentList();
|
||||
allImplementDepartmentList.value = res.data.map((item) => ({
|
||||
value: item.activityDefinitionId,
|
||||
value: String(item.activityDefinitionId),
|
||||
label: item.activityDefinitionName,
|
||||
}));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user