• Data Governance Dev's avatar
    feat(web3): FieldConfigDrawer 字段后也显示「⚠ N规则」徽章 · e4af262d
    Data Governance Dev authored
    结果表表头已经显示规则数徽章 + tooltip 列规则 desc,但字段配置面板(drawer)
    只显示字段名 + 注释图标 —— 用户看不到「这个字段有几条规则」。
    
    复用 f.rules / f.ruleList(DataQualityView 在 resultFields 已经塞了,
    不用改父组件),加 el-tooltip + ⚠ N规则 徽章。
    
    布局:rule-mark 插在 .en 后、comment icon 前;
    .comment-icon { margin-left: auto } 推最右,所以
    - 有规则 + 有 comment:cn/en/rule-mark 靠左,icon 推右
    - 有规则 + 无 comment:cn/en/rule-mark 自然铺开
    - 无规则 + 有 comment:cn/en + icon 推右(不变)
    - 无规则 + 无 comment:cn/en(不变)
    
    scoped CSS .rule-mark:黄橙色 #e6a23c + help 光标,
    跟 ResultTable 表头 rule-mark 视觉一致。
    e4af262d
FieldConfigDrawer.vue 3.33 KB