fix(mes): 解决检化验Jackson序列化导致的字段名不一致问题

- 归一化单字母前缀字段名,处理cContent、pContent、sContent字段大小写问题
- 添加字段映射逻辑,兼容ccontent、pcontent、scontent小写格式
- 确保数据展示时字段名统一性,避免前端显示异常
This commit is contained in:
2026-07-01 11:28:29 +08:00
parent 59956764b0
commit ad1fa08561

View File

@@ -729,7 +729,13 @@ export default {
...this.detailQueryParams,
testMainId: this.currentTestId
}).then(response => {
this.detailList = response.rows
// 归一化单字母前缀字段名Jackson将cContent序列化为ccontent
this.detailList = (response.rows || []).map(row => ({
...row,
cContent: row.ccontent ?? row.cContent,
pContent: row.pcontent ?? row.pContent,
sContent: row.scontent ?? row.sContent
}))
this.detailTotal = response.total
this.detailLoading = false
}).catch(() => {