Files
track-LICA/frontend
duxingchen af8dcc9e0a fix(分组): 候选人排除已在本组的成员
反馈:某人明明已经在成员名单里,点「添加成员」却还能再选他一次 ——
界面自相矛盾,看着就像分组没生效。

member-candidates 新增 group_id 参数:传了就把该组已有成员排除掉。

⚠️ MOM 与 Track 是**两个独立的库**,没法 JOIN,所以先在本库查出该组成员
   集合,再在内存里排掉。LICA 只有十几人,这个取舍是划算的(已加注释)。

前端配合:
  · openAddMember 传 selectedId —— 面板一打开,候选就是干净的
  · 添加成功后**保持面板打开并重拉候选**:刚加进去的人立刻从方块里消失,
    既能连续加人,也不会出现「刚加完还能再选他一次」

实测:
  生产小组(成员=魏会军):不带 group_id 17 人含他;带 group_id=3 → 16 人已排除
  维修大组同理排除齐海建
  加「李婧」后她立即从候选方块消失;测试数据已清理
2026-09-21 17:52:12 +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.