Files
CN_Tool_client/frontend/src/api/tools/mmsmapping/interface/index.ts
yexb 81f90ce0f2 feat(auth): 优化权限模块菜单数据处理逻辑
- 添加showMenuList、flatMenuList和breadcrumbList状态字段
- 修改getter方法直接返回缓存的状态数据
- 新增refreshDerivedMenus方法统一处理菜单衍生数据计算
- 在重置授权存储时清理新增的菜单相关状态
- 避免每次路由跳转时重复深拷贝整个菜单树结构

feat(checksquare): 完善校验功能组件和业务逻辑

- 新增测量点对话框组件用于显示监测点详细信息
- 添加校验台账工具函数解析测量点详情
- 实现任务表格删除功能包括确认提示和数据刷新
- 更新任务表格将缺失率字段替换为数据完整性字段
- 重构详情面板使用标签页展示不同类型的校验详情
- 优化摘要表格样式包括紧凑布局和危险颜色标识
- 统一详情对话框尺寸样式保持界面一致性
- 实现数据完整性字段的百分比单位去除处理

refactor(influxdb): 简化数据库启动流程移除命令行包装器

- 直接通过influxd.exe启动InfluxDB服务
- 移除对cmd.exe包装器的依赖和进程ID记录
- 保持进程管理和停止功能的完整性
2026-06-12 08:44:07 +08:00

165 lines
3.9 KiB
TypeScript

export namespace MmsMapping {
export interface GetIcdParams {
icdFile: File
}
export interface IndexConfirmTarget {
reportName?: string
dataSetName?: string
reportDesc?: string
availableLnInstValues?: string[]
}
export interface IndexConfirmLabelItem {
label?: string
required?: boolean
configurableOnce?: boolean
defaultLnInst?: string
commonLnInstValues?: string[]
targets?: IndexConfirmTarget[]
}
export interface IndexConfirmGroup {
groupKey?: string
groupDesc?: string
labelItems?: IndexConfirmLabelItem[]
}
export interface ConfirmedIndexLabelItem {
label: string
enabled: boolean
lnInst: string
}
export interface ConfirmedIndexGroup {
groupKey: string
labelItems: ConfirmedIndexLabelItem[]
}
export interface IndexSelectionBinding {
reportName: string
dataSetName: string
label: string
lnInst: string
}
export interface IndexSelectionGroup {
groupKey: string
groupDesc?: string
bindings: IndexSelectionBinding[]
}
export interface GetIcdMmsJsonRequestPayload {
version: string
author: string
saveToDisk: boolean
prettyJson: boolean
outputDir: string
indexSelection: IndexSelectionGroup[]
}
export interface GetIcdMmsJsonParams {
icdFile: File
request: GetIcdMmsJsonRequestPayload
}
export interface GetXmlFromJsonRequestPayload {
mappingJson: string
}
export interface GetXmlFromJsonParams {
request: GetXmlFromJsonRequestPayload
}
export interface BuildIndexSelectionRequest {
confirmData: IndexConfirmGroup[]
confirmedData: ConfirmedIndexGroup[]
}
export interface XmlFileResponse {
fileName?: string
contentType?: string
encoding?: string
content?: string
}
export interface IcdDocument {
[key: string]: unknown
}
export interface MappingDocument {
[key: string]: unknown
}
export interface IndexCandidateReport {
reportName?: string
dataSetName?: string
reportDesc?: string
availableLnInstValues?: string[]
}
export interface IndexCandidateGroup {
groupKey?: string
groupDesc?: string
reportCount?: number
templateLabels?: string[]
reports?: IndexCandidateReport[]
}
export type MappingTaskStatus = 'SUCCESS' | 'NEED_INDEX_SELECTION' | 'FAILED' | (string & {})
export interface MappingTaskResponse {
status?: MappingTaskStatus
message?: string
methodDescribe?: string
icdDocument?: IcdDocument
mappingDocument?: MappingDocument
mappingJson?: string
mappingXml?: string
xmlContent?: string
xmlText?: string
xmlFile?: XmlFileResponse
savedPath?: string
indexCandidates?: IndexCandidateGroup[]
problems?: string[]
}
export interface BaseRequestForm {
version: string
author: string
}
export interface DeviceType {
id?: string
name?: string
icdId?: string
icdName?: string
icdPath?: string
icdResult?: number
icdMsg?: string
reportName?: string
canCheckIcd?: boolean
canCheckPqdif?: boolean
}
export interface CreateDeviceTypeRequest {
name: string
icdId?: string
icdName?: string
icdPath?: string
reportName?: string
}
export interface SaveIcdCheckResultRequest {
mappingJson?: string
xml?: string
result: number
msg?: string
}
export interface PqdifCheckPlaceholder {
status?: string
message?: string
}
}