ETest-Vue-FastAPI/.kiro/specs/sample-autocomplete/tasks.md

32 lines
1.5 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# Implementation Plan
- [x] 1. 实现样品型号自动完成功能
- 在样品管理页面的表单中,将样品型号的 `el-input` 替换为 `el-autocomplete` 组件
- 配置组件属性v-model, fetch-suggestions, placeholder, trigger-on-focus, clearable
- 在 methods 中添加 `querySampleModel` 方法,从 sampleList 提取不重复的样品型号
- 实现模糊搜索逻辑(不区分大小写)
- 限制返回结果最多 20 项
- _Requirements: 1.1, 1.2, 1.3, 1.4, 1.5, 3.1, 3.2, 3.3, 4.1, 4.2_
- [ ] 2. 实现硬件版本号自动完成功能
- 在样品管理页面的表单中,将硬件版本号的 `el-input` 替换为 `el-autocomplete` 组件
- 配置组件属性v-model, fetch-suggestions, placeholder, trigger-on-focus, clearable
- 在 methods 中添加 `queryHardwareVersion` 方法,从 sampleList 提取不重复的硬件版本号
- 实现模糊搜索逻辑(不区分大小写)
- 限制返回结果最多 20 项
- _Requirements: 2.1, 2.2, 2.3, 2.4, 2.5, 3.1, 3.2, 3.3, 4.1, 4.2_
- [ ]* 3. 手动测试自动完成功能
- 测试样品型号输入框的自动完成功能
- 测试硬件版本号输入框的自动完成功能
- 测试模糊搜索(不区分大小写)
- 测试键盘导航上下箭头、Enter、Esc
- 测试输入新值(不在候选列表中)
- 测试边界情况空列表、超过20项
- _Requirements: 1.1, 1.2, 1.3, 1.4, 1.5, 2.1, 2.2, 2.3, 2.4, 2.5, 3.1, 3.2, 3.3, 4.1, 4.2, 4.3, 4.4, 4.5_