auto-sync: 2026-05-20 23:41:01
This commit is contained in:
@@ -471,12 +471,23 @@ export default function EdictBoard() {
|
||||
color: 'var(--fg)', cursor: 'pointer', minWidth: 120,
|
||||
}}
|
||||
>
|
||||
<option value="">📋 全部任务</option>
|
||||
<option value="_general">📝 一般任务</option>
|
||||
<option disabled style={{ color: '#555' }}>── 正式项目 ──</option>
|
||||
{Object.entries(projects).filter(([pid]) => !pid.startsWith('_') && pid !== '__general__').map(([pid, info]: [string, any]) => (
|
||||
<option key={pid} value={pid}>📁 {info.name || pid}</option>
|
||||
))}
|
||||
<option value="">📋 全部任务 ({v2tasks.length})</option>
|
||||
{(() => {
|
||||
const counts: Record<string, number> = {};
|
||||
(v2tasks || []).forEach((t: any) => {
|
||||
const p = t._projectId || '_general';
|
||||
counts[p] = (counts[p] || 0) + 1;
|
||||
});
|
||||
return (
|
||||
<>
|
||||
<option value="_general">📝 一般任务 ({counts['_general'] || 0})</option>
|
||||
<option disabled style={{ color: '#555' }}>── 正式项目 ──</option>
|
||||
{Object.entries(projects).filter(([pid]) => !pid.startsWith('_') && pid !== '__general__').map(([pid, info]: [string, any]) => (
|
||||
<option key={pid} value={pid}>📁 {info.name || pid} ({counts[pid] || 0})</option>
|
||||
))}
|
||||
</>
|
||||
);
|
||||
})()}
|
||||
</select>
|
||||
{selectedProjectId && !selectedProjectId.startsWith('_') && selectedProjectId !== '__general__' && (() => {
|
||||
const pInfo = projects[selectedProjectId] as any;
|
||||
|
||||
Reference in New Issue
Block a user