Files
shz-backend/docs/test-reports/job-fair/2026-07-25/bugs/BUG-010-enterprise-crosscity-statistics-accessibility.md

44 lines
2.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# BUG-010企业端跨域联合招聘会统计日期字段缺少 id/name
- 严重级别P3统计查询表单可访问性问题
- 状态:代码已修复,待测试环境浏览器复验
- 环境test
- 角色PC 企业端(已登录测试企业角色)
- 入口:`/shihezi/jobfair/jobfair/crosscityfair`
- 发现时间2026-07-25
## 复现步骤
1. 使用测试企业角色进入企业管理端。
2. 打开“招聘会管理 → 跨域联合招聘会管理”。
3. 保持默认“数据统计”页签,观察“统计时间”的开始日期和结束日期字段。
4. 查看 Chrome DevTools Issues/Console。
## 预期结果
统计时间的起止日期控件应具备稳定、唯一的 `id/name` 和可识别的标签关联,便于键盘、读屏、自动填充和自动化测试使用。
## 实际结果
页面加载后 Chrome DevTools 报告:`A form field element should have an id or name attribute (count: 2)`。两个统计日期字段可见且查询功能正常,但没有满足基础字段标识检查。
## 浏览器证据
- 页面截图:[JF-EN-012-crosscity-baseline.png](../screenshots/JF-EN-012-crosscity-baseline.png)
- accessibility snapshot 显示“开始日期”和“结束日期”两个 textbox默认值为 `2025-07-25``2026-07-25`
- `GET /api/shihezi/cms/publicJobFair/cross-domain-statistics?startDate=2025-07-25&endDate=2026-07-25`HTTP 200统计结果正常返回 1 场招聘会。
- `GET /api/shihezi/cms/cross-city-alliance/list?pageSize=1000`HTTP 200联盟城市数据正常返回 9 条。
- 控制台 Issue`msgid=57 [issue] A form field element should have an id or name attribute (count: 2)`
## 影响范围
依赖读屏、自动填充或表单自动化的企业用户无法稳定识别统计日期字段;统计本身不受影响,但页面无障碍检查和自动化定位会失败。
## 初步定位
优先检查 `shz-admin/src/pages/Jobfair/Crosscityfair` 数据统计页签的 RangePicker/日期表单字段配置,确保字段属性和标签语义透传到原生输入控件。
## 建议
为开始日期、结束日期提供唯一 `id/name`,并通过显式 label 或 `aria-labelledby` 建立关联;修复后重新执行默认查询和 DevTools Issues 检查。