调整总体合格率和产业部菜单及合格率目标名称

This commit is contained in:
2026-11-01 18:40:40 +08:00
parent 46b920f28a
commit f8f289395e
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -171,7 +171,7 @@ export function M01Insights({ query, onUnauthorized }: { query: QueryParams; onU
<div className="completion-panel-heading"><div><strong>目标与期间比较</strong><span>目标与比较结果均来自指标分析服务</span></div><Button icon={<ReloadOutlined />} loading={busy} onClick={() => { setCompare(null); setCompareError(''); void refreshAll(); }}>刷新比较</Button></div>
<div className="completion-insight-grid">
<div className="completion-insight-card">
<div className="completion-card-heading"><strong>当前筛选综合率目标</strong><Tag color={configured ? 'green' : targetState === 'CONFLICT' ? 'red' : 'default'}>{targetState === 'CONFIGURED' ? '已配置' : targetState === 'UNCONFIGURED' ? '未配置' : targetState === 'CONFLICT' ? '配置冲突' : targetState}</Tag></div>
<div className="completion-card-heading"><strong>当前筛选综合合格率目标</strong><Tag color={configured ? 'green' : targetState === 'CONFLICT' ? 'red' : 'default'}>{targetState === 'CONFIGURED' ? '已配置' : targetState === 'UNCONFIGURED' ? '未配置' : targetState === 'CONFLICT' ? '配置冲突' : targetState}</Tag></div>
{targetError ? <Alert showIcon type="error" message="目标读取失败" description={targetError} /> : configured
? <><div className="completion-target-value">{pct(configuredTarget)} <small>{text(targetValue.unit, '比例')}</small></div><p className="completion-note">当前目标已启用 · 匹配配置 {text(targetBody.matchingCount, '—')}</p></>
: <><div className="completion-empty-value">当前筛选没有唯一的已启用目标</div>{targetState === 'CONFLICT' && <p className="completion-note">存在 {list(targetBody.alternatives).length} 项候选配置;请到“指标与规则”检查配置冲突。</p>}</>}
+4 -4
View File
@@ -40,7 +40,7 @@ import { CachedWorkspacePages, type WorkspaceNavigation } from './CachedWorkspac
export type PageKey = 'overall' | 'department' | 'group' | 'product' | 'blackProduct' | 'brightProduct' | 'basis' | 'analysis' | 'sources' | 'imports' | 'rules' | 'mappings' | 'masterData' | 'tasks' | 'access';
const pageNames: Record<PageKey, string> = {
overall: '总体汇总', department: '产业部汇总', group: '产业部-业务分组', product: '产品汇总', blackProduct: '黑片汇总', brightProduct: '亮片汇总',
overall: '总体合格率', department: '产业部', group: '产业部-业务分组', product: '产品汇总', blackProduct: '黑片汇总', brightProduct: '亮片汇总',
basis: '数据与计算依据', analysis: '智能分析', sources: '数据接入', imports: '导入与校验',
rules: '计算规则', mappings: '对应关系', masterData: '基础数据', tasks: '任务与监控', access: '权限与审计',
};
@@ -65,8 +65,8 @@ const navGroups = [
{
label: '质量查询',
items: [
['overall', '总体汇总', AppstoreOutlined],
['department', '产业部汇总', ApartmentOutlined],
['overall', '总体合格率', AppstoreOutlined],
['department', '产业部', ApartmentOutlined],
['group', '产业部-业务分组', DeploymentUnitOutlined],
['product', '产品汇总', DatabaseOutlined],
['blackProduct', '黑片汇总', DatabaseOutlined],
@@ -195,7 +195,7 @@ export default function QualityWorkspace({ appearance, onAppearanceChange }: Qua
return (
<div className={`app-shell${sidebarCollapsed ? ' sidebar-collapsed' : ''}`}>
<aside className="sidebar" id="workspace-sidebar">
<button className="brand" onClick={() => navigate('overall')} aria-label="回到总体汇总">
<button className="brand" onClick={() => navigate('overall')} aria-label="回到总体合格率">
<span className="brand-mark" aria-hidden="true"><i /><i /><i /></span>
<span className="brand-copy">质量数据分析平台</span>
</button>
+1 -1
View File
@@ -1350,7 +1350,7 @@ export function TrendChart({ rows, mode, stage, rateBasis, targetRate, selectedP
silent: true,
symbol: 'none',
lineStyle: { color: '#c47a47', width: 1.5, type: 'dashed' as const },
label: { show: true, formatter: `综合率目标 ${targetRate.toFixed(2)}%`, position: 'insideEndTop' as const, color: '#a55d30', fontSize },
label: { show: true, formatter: `综合合格率目标 ${targetRate.toFixed(2)}%`, position: 'insideEndTop' as const, color: '#a55d30', fontSize },
data: [{ yAxis: targetRate }],
} };
option = {