2026-05-09 07:53:32 +08:00
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-29 15:10:14 +08:00
|
|
|
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
|
|
|
|
|
}
|
|
|
|
|
|
2026-05-09 07:53:32 +08:00
|
|
|
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
|
2026-05-29 15:10:14 +08:00
|
|
|
lineType?: number
|
2026-05-09 07:53:32 +08:00
|
|
|
monitor_obj?: string
|
|
|
|
|
is_govern?: number
|
|
|
|
|
monitor_user?: string
|
|
|
|
|
is_important?: number
|
2026-05-29 15:10:14 +08:00
|
|
|
overlimit?: OverlimitDetail
|
2026-05-09 07:53:32 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
2026-05-11 16:29:55 +08:00
|
|
|
|
|
|
|
|
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
|
|
|
|
|
}
|
2026-05-09 07:53:32 +08:00
|
|
|
}
|