P1:闭环时限管控、治理成效评估、站型阈值系数与接口测试
- 闭环状态流转自动记录接单/闭环时间,状态值校验;按断站分级判定响应时限 (及时/超时/超时未响应/未到期/无记录),新增及时响应率、平均闭环时长、超时未闭环指标与筛选 - 新增治理成效评估 /api/effect:分界日期前后指标对比与问题站点逐站改善判定 - 新增站型阈值系数(实际阈值 = 场景阈值 × 站型系数)及配置接口与页面 - 样例数据新增接单/闭环时间(独立随机数,原字段不变),导入支持并校验 - 新增 tests/test_api.py(权限、导入模板、闭环流程、站型系数、成效评估、无数据边界) - 修复:新流水无告警匹配时根因分析报错;空筛选时超长站点清单返回 500 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e9616af34d
commit
0e070a64fe
13 files changed
+6540
-6043
No files matched your search
@@ -18,6 +18,7 @@ export default function Sites() {
|
||||
const [keyword, setKeyword] = useState('');
|
||||
const [editScene, setEditScene] = useState(null);
|
||||
const [editSite, setEditSite] = useState(null);
|
||||
const [editType, setEditType] = useState(null);
|
||||
|
||||
if (!data) return html`<${Loading}/>`;
|
||||
|
||||
@@ -62,6 +63,17 @@ export default function Sites() {
|
||||
<${DataTable} rowKey="scene" rows=${data.scenes} columns=${[{key: 'scene', title: '场景'}, ...SCENE_FIELDS, ...editColumn(setEditScene)]}/>
|
||||
</${Section}>
|
||||
<${Section} span=${5} title="场景 × 站型 站点数量"><${EChart} option=${mixChart}/></${Section}>
|
||||
<${Section} span=${5} title="站型阈值系数" hint="站点实际阈值 = 场景阈值 × 站型系数">
|
||||
<${DataTable} rowKey="site_type" rows=${data.site_types} columns=${[
|
||||
{key: 'site_type', title: '站型'}, {key: 'long_factor', title: '超长时长系数'},
|
||||
{key: 'freq_factor', title: '高频次数系数'}, ...editColumn(setEditType)]}/>
|
||||
</${Section}>
|
||||
<${Section} span=${7} title="场景 × 站型 实际阈值" hint="超长阈值(分钟) / 高频阈值(次/月)">
|
||||
<${DataTable} rowKey="scene" rows=${data.scenes} columns=${[
|
||||
{key: 'scene', title: '场景'},
|
||||
...data.site_types.map(t => ({key: t.site_type, title: t.site_type, render: (_, s) =>
|
||||
`${+(s.long_min * t.long_factor).toFixed(1)} / ${+(s.freq_count * t.freq_factor).toFixed(1)}`}))]}/>
|
||||
</${Section}>
|
||||
<${Section} title="站点场景标签与站型分级" extra=${siteFilters}>
|
||||
<${DataTable} rowKey="ne_id" rows=${sites} columns=${[
|
||||
{key: 'ne_id', title: '基站编号'}, {key: 'site_name', title: '站点名称'}, {key: 'vendor', title: '厂家'},
|
||||
@@ -77,6 +89,15 @@ export default function Sites() {
|
||||
<${TextField} key=${f.key} name=${f.key} label=${f.title} type="number" step=${f.step || '1'} min="0" required
|
||||
defaultValue=${editScene[f.key]}/>`)}
|
||||
</${FormDialog}>`}
|
||||
${editType && html`
|
||||
<${FormDialog} onClose=${() => setEditType(null)} title=${`站型系数 · ${editType.site_type}`}
|
||||
description="系数 < 1 表示从严,> 1 表示放宽;保存后立即生效"
|
||||
onSubmit=${d => save(`/api/site_types/${editType.site_type}`, d, '站型系数已更新')}>
|
||||
<${TextField} name="long_factor" label="超长时长系数" type="number" step="0.05" min="0.1" max="10" required
|
||||
defaultValue=${editType.long_factor}/>
|
||||
<${TextField} name="freq_factor" label="高频次数系数" type="number" step="0.05" min="0.1" max="10" required
|
||||
defaultValue=${editType.freq_factor}/>
|
||||
</${FormDialog}>`}
|
||||
${editSite && html`
|
||||
<${FormDialog} onClose=${() => setEditSite(null)} title="编辑站点分级" description=${`${editSite.ne_id} · ${editSite.site_name}`}
|
||||
onSubmit=${d => save(`/api/sites/${editSite.ne_id}`, d, '站点已更新')}>
|
||||
|
||||
Reference in new issue
Block a user