• Data Governance Dev's avatar
    fix(web): 冗余字段 tab 永远停在「分析中」— TAB_STEP_MAP.sectionKey 用错了 · 6c7bc274
    Data Governance Dev authored
    症状:分析完成后所有 tab 都显示「分析完成」徽章,但「冗余字段」
    tab 一直停在「分析中」,即使 sections.merge_candidates.redundancy_fields
    实际有 21 条数据。
    
    根因:移除 Step 3「数据验证」前,Step 3 返回 section_key='redundancy_fields',
    所以 sections.redundancy_fields 直接有数据。移除后没人再写这个顶层 key,
    数据落在 sections.merge_candidates.redundancy_fields(Step 2 输出
    嵌套在 merge_candidates 里)。
    
    修复:TAB_STEP_MAP 支持 field 字段处理嵌套场景:
      redundancy: { step: 2, sectionKey: 'merge_candidates', field: 'redundancy_fields' }
    
    tabStatus computed 检查改为先取顶层 section、再按 field 取子字段:
      const section = sections[sectionKey];
      const hasData = field ? (section && section[field]) : !!section;
    
    行为:
    - merge tab 还是查 sections.merge_candidates 整体
    - redundancy tab 现在查 sections.merge_candidates.redundancy_fields
    - 其他 tab 逻辑不变
    6c7bc274
index.html 71.5 KB