- 统一数据库监控菜单路径到 /system-ops/dbms 入口 - 添加 isDbmsMenu 函数处理多种数据库菜单路径匹配 - 在动态路由中增加多个数据库监控路径的重定向规则 - 添加设备单位配置功能包括新增 EquipmentUnitForm 接口定义 - 添加监测点限值配置功能包括新增 OverlimitDetail 接口定义 - 在装置表单中添加单位配置按钮并集成单位调试功能 - 在监测点表单中添加限值配置按钮并集成限值调试功能 - 添加电压等级变更时的默认容量和变比同步逻辑 - 配置监测点表单中的线路类型选择选项 - 添加装置表单中比率输入组的高度紧凑样式 - 新增数据库运维静态路由配置和别名支持
185 lines
4.2 KiB
TypeScript
185 lines
4.2 KiB
TypeScript
export namespace AddLedger {
|
|
export type NodeLevel = 0 | 1 | 2 | 3
|
|
|
|
export interface LedgerTreeNode {
|
|
id?: string
|
|
Id?: string
|
|
pid?: string
|
|
Pid?: string
|
|
pids?: string
|
|
Pids?: string
|
|
parentId?: string
|
|
parentIds?: string
|
|
name?: string
|
|
Name?: string
|
|
level?: NodeLevel
|
|
Level?: NodeLevel
|
|
state?: number
|
|
State?: number
|
|
children?: LedgerTreeNode[]
|
|
}
|
|
|
|
export interface NormalizedTreeNode {
|
|
id: string
|
|
pid: string
|
|
pids: string
|
|
name: string
|
|
level: NodeLevel
|
|
children: NormalizedTreeNode[]
|
|
raw: LedgerTreeNode
|
|
}
|
|
|
|
export interface DetailParams {
|
|
id: string
|
|
level: NodeLevel
|
|
}
|
|
|
|
export interface EngineeringForm {
|
|
id?: string
|
|
name: string
|
|
province?: string
|
|
city?: string
|
|
description?: string
|
|
}
|
|
|
|
export interface ProjectForm {
|
|
id?: string
|
|
engineeringId?: string
|
|
parentId?: string
|
|
name: string
|
|
area?: string
|
|
description?: string
|
|
}
|
|
|
|
export interface EquipmentForm {
|
|
id?: string
|
|
engineeringId?: string
|
|
projectId?: string
|
|
parentId?: string
|
|
name: string
|
|
ndid: string
|
|
mac: string
|
|
dev_type?: string
|
|
dev_model: string
|
|
dev_access_method?: string
|
|
node_id?: string
|
|
node_process?: string
|
|
upgrade?: number
|
|
}
|
|
|
|
export interface EquipmentUnitForm {
|
|
devId: string
|
|
unitFrequency?: string
|
|
unitFrequencyDev?: string
|
|
phaseVoltage?: string
|
|
lineVoltage?: string
|
|
voltageDev?: string
|
|
uvoltageDev?: string
|
|
ieffective?: string
|
|
singleP?: string
|
|
singleViewP?: string
|
|
singleNoP?: string
|
|
totalActiveP?: string
|
|
totalViewP?: string
|
|
totalNoP?: string
|
|
vfundEffective?: string
|
|
ifund?: string
|
|
fundActiveP?: string
|
|
fundNoP?: string
|
|
vdistortion?: string
|
|
vharmonicRate?: string
|
|
iharmonic?: string
|
|
pharmonic?: string
|
|
iiharmonic?: string
|
|
positiveV?: string
|
|
noPositiveV?: string
|
|
}
|
|
|
|
export interface OverlimitDetail {
|
|
id?: string
|
|
freqDev?: number
|
|
voltageFluctuation?: number
|
|
voltageDev?: number
|
|
uvoltageDev?: number
|
|
ubalance?: number
|
|
shortUbalance?: number
|
|
flicker?: number
|
|
uaberrance?: number
|
|
iNeg?: number
|
|
[key: string]: string | number | undefined
|
|
}
|
|
|
|
export interface LineForm {
|
|
id?: string
|
|
line_id?: string
|
|
deviceId?: string
|
|
parentId?: string
|
|
name: string
|
|
line_no?: number
|
|
conType?: number
|
|
vol_grade?: number
|
|
position?: string
|
|
ct_ratio?: number
|
|
ct2_ratio?: number
|
|
pt_ratio?: number
|
|
pt2_ratio?: number
|
|
short_circuit_capacity?: number
|
|
basic_capacity?: number
|
|
protocol_capacity?: number
|
|
dev_capacity?: number
|
|
lineType?: number
|
|
monitor_obj?: string
|
|
is_govern?: number
|
|
monitor_user?: string
|
|
is_important?: number
|
|
overlimit?: OverlimitDetail
|
|
}
|
|
|
|
export type NodeDetail = EngineeringForm | ProjectForm | EquipmentForm | LineForm
|
|
|
|
export interface AvailableLineNoParams {
|
|
deviceId: string
|
|
lineId?: string
|
|
}
|
|
|
|
export interface DeleteNodeParams {
|
|
id: string
|
|
level: NodeLevel
|
|
}
|
|
|
|
export interface SelectOption<T = string | number> {
|
|
label: string
|
|
value: T
|
|
}
|
|
|
|
export interface PageResult<T> {
|
|
records?: T[]
|
|
}
|
|
|
|
export interface DictTypeListParams {
|
|
code: string
|
|
pageNum: number
|
|
pageSize: number
|
|
}
|
|
|
|
export interface DictTypeRecord {
|
|
id?: string
|
|
name?: string
|
|
code?: string
|
|
state?: number
|
|
}
|
|
|
|
export interface DictDataListParams {
|
|
typeId: string
|
|
pageNum: number
|
|
pageSize: number
|
|
}
|
|
|
|
export interface DictDataRecord {
|
|
id?: string
|
|
name?: string
|
|
code?: string
|
|
state?: number
|
|
}
|
|
}
|