feat: standardize algorithm measurement results
This commit is contained in:
@@ -105,18 +105,30 @@ export interface PluginProgressEvent {
|
||||
|
||||
/** 测量项(GenericResultView 渲染) */
|
||||
export interface PluginMeasurement {
|
||||
/** 检验任务号;新协议与 metricCode 必须成对提供。 */
|
||||
taskNo?: string;
|
||||
/** 跨版本稳定的测量项编码。 */
|
||||
metricCode?: string;
|
||||
name: string;
|
||||
/** 同任务内的位置,例如左梁、右梁。 */
|
||||
position?: string;
|
||||
/** 失败任务没有有效测量值时为 null,前端显示破折号。 */
|
||||
value: number | null;
|
||||
unit?: string;
|
||||
tolerance?: number;
|
||||
/** 无法安全数值化的原始公差表达式。 */
|
||||
toleranceLabel?: string;
|
||||
/** 斜率类测量的基准长度(mm)。 */
|
||||
baseline?: number;
|
||||
/** pass / warning / fail / info */
|
||||
status?: 'pass' | 'warning' | 'fail' | 'info';
|
||||
passLabel?: string;
|
||||
warningLabel?: string;
|
||||
failLabel?: string;
|
||||
/** 兼容层无法确定任务号时置为 true。 */
|
||||
legacyUnmapped?: boolean;
|
||||
/** 兼容转换前的原始项目名,用于追溯。 */
|
||||
legacyOriginalName?: string;
|
||||
}
|
||||
|
||||
/** 误差统计卡片(与原 task_analysis_results.errorStats 兼容) */
|
||||
|
||||
Reference in New Issue
Block a user