refactor(steady-checksquare): 更新稳态校验功能的数据结构和接口规范

- 移除 lineId 字段,统一使用 lineIds 数组字段
- 更新创建任务请求体构建逻辑,不再包含 lineId 属性
- 修改任务详情和检测项明细的接口契约验证
- 更新稳态校验 API 文档说明,移除对 lineId 的支持
- 重构稳态校验表单项验证规则
- 移除磁盘监控作业详情抽屉组件
- 移除磁盘监控作业表格组件
- 更新路由配置以支持新的系统监控路径
- 添加测试报告相关字典代码常量
- 更新 ICD 路径表单和结果面板功能
This commit is contained in:
2026-07-01 13:18:17 +08:00
parent a6228faaba
commit 7c8e7d1b7e
74 changed files with 5838 additions and 105 deletions

View File

@@ -0,0 +1,16 @@
import http from '@/api'
import type { ReportApproval } from './interface'
const REPORT_APPROVAL_BASE_URL = '/api/report-approval'
export const listPendingReportApprovalsApi = (params: ReportApproval.PendingListParams) =>
http.get(`${REPORT_APPROVAL_BASE_URL}/pending-page`, params)
export const passReportApprovalApi = (params: ReportApproval.ApprovalActionRequest) =>
http.post<boolean>(`${REPORT_APPROVAL_BASE_URL}/pass`, params)
export const rejectReportApprovalApi = (params: ReportApproval.ApprovalActionRequest) =>
http.post<boolean>(`${REPORT_APPROVAL_BASE_URL}/reject`, params)
export const listReportApprovalLogsApi = (params: ReportApproval.LogListParams) =>
http.get(`${REPORT_APPROVAL_BASE_URL}/log-page`, params)

View File

@@ -0,0 +1,46 @@
export namespace ReportApproval {
export type ReportType = 'REPORT_MODEL' | 'TEST_REPORT' | (string & {})
export type ReportState = '01' | '02' | '03' | '04' | '05' | (string & {})
export type ApprovalResult = '03' | '04' | (string & {})
export interface PendingRecord {
reportType?: ReportType
reportId?: string
reportName?: string | null
state?: ReportState
submitterId?: string | null
submitterName?: string | null
submitTime?: string | null
}
export interface PendingListParams {
current?: number
size?: number
reportType?: ReportType | ''
}
export interface ApprovalActionRequest {
reportType: ReportType
reportId: string
approvalReason: string
}
export interface LogRecord {
id?: string
reportType?: ReportType
reportId?: string
reportName?: string | null
approvalResult?: ApprovalResult
approvalReason?: string | null
beforeState?: ReportState
afterState?: ReportState
approverName?: string | null
approvalTime?: string | null
}
export interface LogListParams {
current?: number
size?: number
reportType?: ReportType | ''
}
}