feat(steady): 重构稳态校验功能并优化界面布局

- 更新 API 接口路径从 /steady/data-view/checksquare/* 到 /steady/checksquare/*
- 修改校验任务状态枚举值 FAILED 为 FAIL 并更新相关处理逻辑
- 移除缺失率和最大连续缺失分钟数字段,简化数据完整性计算
- 添加新的创建结果面板组件 ChecksquareCreateResultPanel.vue
- 调整创建对话框布局,采用两行搜索控件设计
- 更新任务表头部按钮文字为"新增"并调整搜索列配置为5列
- 修改详情面板显示开始时间和结束时间字段
- 重构工作台界面布局,使用 flex 布局替代 grid 布局
- 更新设备类型相关 API 接口和数据结构定义
- 添加设备类型字典常量并更新路由配置
- 优化搜索表单展开收起逻辑的计算方式
- 调整创建流程不再轮询获取任务详情,改为直接显示摘要信息
- 更新数据完整性格式化函数参数和调用方式
- 修改创建对话框样式类名和尺寸配置
- 添加设备类型管理相关的接口定义和实现方法
This commit is contained in:
2026-06-15 08:40:44 +08:00
parent 81f90ce0f2
commit ef80aff151
38 changed files with 4165 additions and 1254 deletions

View File

@@ -18,29 +18,29 @@ export const querySteadyTrendDay = (params: SteadyDataView.SteadyTrendQueryParam
}
export const querySteadyChecksquareTasks = (params: SteadyDataView.SteadyChecksquareTaskQueryParams) => {
return http.post<SteadyDataView.PageResult<SteadyDataView.SteadyChecksquareTask>>('/steady/data-view/checksquare/query', params, {
return http.post<SteadyDataView.PageResult<SteadyDataView.SteadyChecksquareTask>>('/steady/checksquare/query', params, {
loading: false
})
}
export const createSteadyChecksquareTask = (params: SteadyDataView.SteadyChecksquareCreateParams) => {
return http.post<SteadyDataView.SteadyChecksquareCreateResult>('/steady/data-view/checksquare/create', params, {
return http.post<SteadyDataView.SteadyChecksquareTask>('/steady/checksquare/create', params, {
loading: false
})
}
export const deleteSteadyChecksquareTasks = (taskIds: SteadyDataView.SteadyChecksquareDeleteParams) => {
return http.post<boolean>('/steady/data-view/checksquare/delete', taskIds, {
return http.post<boolean>('/steady/checksquare/delete', taskIds, {
loading: false
})
}
export const getSteadyChecksquareDetail = (taskId: string) => {
return http.get<SteadyDataView.SteadyChecksquareQueryResult>('/steady/data-view/checksquare/detail', { taskId }, { loading: false })
return http.get<SteadyDataView.SteadyChecksquareQueryResult>('/steady/checksquare/detail', { taskId }, { loading: false })
}
export const getSteadyChecksquareItemDetail = (params: SteadyDataView.SteadyChecksquareItemDetailParams) => {
return http.get<SteadyDataView.SteadyChecksquareItemDetail>('/steady/data-view/checksquare/item-detail', params, {
return http.get<SteadyDataView.SteadyChecksquareItemDetail>('/steady/checksquare/item-detail', params, {
loading: false
})
}

View File

@@ -113,26 +113,13 @@ export namespace SteadyDataView {
timeStart?: string
timeEnd?: string
intervalMinutes?: number
taskStatus?: 'SUCCESS' | string
taskStatus?: 'RUNNING' | 'SUCCESS' | 'FAIL' | string
itemCount?: number
abnormalItemCount?: number
minDataIntegrity?: number | null
maxMissingRate?: number | null
createTime?: string
}
export interface SteadyChecksquareCreateResult {
taskId: string
taskNo?: string
lineId?: string
lineName?: string
timeStart?: string
timeEnd?: string
intervalMinutes?: number
itemCount?: number
abnormalItemCount?: number
}
export interface SteadyChecksquareSegment {
startTime: string
endTime: string
@@ -151,9 +138,6 @@ export namespace SteadyDataView {
missingPointCount?: number
dataIntegrity?: number | null
dataIntegrityText?: string | null
missingRate?: number | null
missingRateText?: string | null
maxContinuousMissingMinutes?: number
}
export interface SteadyChecksquareStatDetail {
@@ -174,9 +158,6 @@ export namespace SteadyDataView {
missingPointCount?: number
dataIntegrity?: number | null
dataIntegrityText?: string | null
missingRate?: number | null
missingRateText?: string | null
maxContinuousMissingMinutes?: number
abnormal?: boolean
abnormalPointCount?: number
harmonicParityAbnormal?: boolean
@@ -194,6 +175,11 @@ export namespace SteadyDataView {
timeStart: string
timeEnd: string
intervalMinutes?: number
taskStatus?: 'RUNNING' | 'SUCCESS' | 'FAIL' | string
itemCount?: number
abnormalItemCount?: number
minDataIntegrity?: number | null
createTime?: string
items: SteadyChecksquareItem[]
}