feat: 优化Creo智能薄壳分析全选功能支持按类别选择

- 修改全选逻辑:从选择当前页面10条改为选择当前筛选类别的所有零件
- 更新按钮文本:"全选"改为"全选当前类别",明确功能范围
- 支持一次性选择上千条同类别数据进行批量优化操作

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
sladro 2025-09-19 10:33:46 +08:00
parent 23d94cf0ab
commit c218beefe4

View File

@ -82,7 +82,7 @@
<div class="action-controls">
<button class="shell-select-all" @click="selectAll">
<i class="fas fa-check-square"></i>
全选
全选当前类别
</button>
<button class="shell-clear-all" @click="clearAll">
<i class="far fa-square"></i>
@ -404,10 +404,10 @@ const nextPage = () => {
}
}
//
// -
const selectAll = () => {
selectedParts.value.clear()
paginatedParts.value.forEach(part => {
filteredParts.value.forEach(part => {
selectedParts.value.add(part.id)
})
}