完善:质量分析平台查询与分析功能
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import { useEffect, useMemo, useState } from 'react';
|
||||
import {
|
||||
Alert, App, Button, Empty, Form, Input, InputNumber, Modal, Popconfirm,
|
||||
Select, Segmented, Spin, Table, Tag,
|
||||
Select, Segmented, Spin, Tag,
|
||||
} from 'antd';
|
||||
import type { ColumnsType } from 'antd/es/table';
|
||||
import { QualityTable as Table } from './QualityTable';
|
||||
import { DeleteOutlined, PlusOutlined, ReloadOutlined, SaveOutlined } from '@ant-design/icons';
|
||||
import { ApiError, api, collectionItems } from './api';
|
||||
import type { QueryParams, Stage, ViewKind } from './types';
|
||||
@@ -79,7 +80,7 @@ function SnapshotRates({ label, value }: { label: string; value: unknown }) {
|
||||
return <div className="completion-snapshot">
|
||||
<strong>{label}</strong>
|
||||
<dl>
|
||||
<dt>综合合格率</dt><dd>{hasBlack && hasBright ? pct(summary.compositeRate) : '—'}</dd>
|
||||
<dt>综合合格率</dt><dd>{hasBlack || hasBright ? pct(summary.compositeRate) : '—'}</dd>
|
||||
<dt>黑片合格率</dt><dd>{hasBlack ? pct(record(summary.black).rate) : '—'}</dd>
|
||||
<dt>亮片合格率</dt><dd>{hasBright ? pct(record(summary.bright).rate) : '—'}</dd>
|
||||
<dt>覆盖行数</dt><dd>黑 {text(coverage.blackRows, text(record(snapshot.coverage).blackRows, '0'))} · 亮 {text(coverage.brightRows, text(record(snapshot.coverage).brightRows, '0'))}</dd>
|
||||
|
||||
Reference in New Issue
Block a user