Files
track-LICA/frontend
duxingchen 0bc9366e85 feat(分组): 搜索选择改为方块面板 + 组长设置改为明确按钮(支持多组长)
修正理解偏差:上一轮把「一行一个」理解成了成员列表,实际指的是**搜索姓名
时的下拉** —— antd Select 展开后一人一行、还带账号,又长又占地方。

1) 搜索选择:去掉 Select,改为内联的「搜索框 + 方块多选网格」
   · 候选人全铺成方块(auto-fill 网格),点方块选中/取消,**无滚动条**
   · 方块只显示中文名,账号挪到 title 悬停可见
   · 搜索在前端过滤(LICA 十几人,一次拉全量更跟手)
   · 顶部实时显示「已选 N 人」;按钮文案带数量「添加选中的 N 人」
   · 无匹配时给空状态,不会是一片空白

2) 组长设置:从「点方块切换」这种隐晦交互,改为**方块内常驻的明确按钮**
   · 未设组长 → 灰色「⚙ 设为组长」;已是组长 → 金色「👑 组长」
   · 点击即切换,一眼看懂「他是不是组长、怎么改」
   · 每个方块各管各的 —— **天然支持多个组长**

   数据层本来就支持多组长(is_leader 是成员行上的独立字段);实测同一组
   设两个组长并存,且两人的 /auth/me 都返回 is_leader=true。

顺带清理早先测试留下的数据污染:
   · 生产大组的可见范围曾被「验证改范围权限」的测试改成「生产+售后」,
     已改回只有「生产制造」
   · 删除了残留的「权限测试组」
2026-09-21 17:50:58 +08:00
..

React + TypeScript + Vite

This template provides a minimal setup to get React working in Vite with HMR and some Oxlint rules.

Currently, two official plugins are available:

React Compiler

The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.

Expanding the Oxlint configuration

If you are developing a production application, we recommend enabling type-aware lint rules by installing oxlint-tsgolint and editing .oxlintrc.json:

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "plugins": ["react", "typescript", "oxc"],
  "options": {
    "typeAware": true
  },
  "rules": {
    "react/rules-of-hooks": "error",
    "react/only-export-components": ["warn", { "allowConstantExport": true }]
  }
}

See the Oxlint rules documentation for the full list of rules and categories.