Browse Source

feat: 增加设备类型并增加icon

main
betaqi 1 week ago
parent
commit
6537a9a8fd
  1. 8
      src/views/stationData/topology/components/Node.vue
  2. 3
      src/views/stationData/topology/utils/index.ts

8
src/views/stationData/topology/components/Node.vue

@ -68,10 +68,10 @@ const typeToIconMap: Record<string, Object> = { @@ -68,10 +68,10 @@ const typeToIconMap: Record<string, Object> = {
icon: PcsIcon,
bgColor: '#17BECF'
},
// [DeviceType.Em]: {
// icon: EmIcon,
// bgColor: '#2CA02C'
// },
[DeviceType.env]: {
icon: ThsIcon,
bgColor: '#2CA02C'
},
// [DeviceType.Cac]: {
// icon: CacIcon,
// bgColor: '#17BECF'

3
src/views/stationData/topology/utils/index.ts

@ -10,7 +10,8 @@ export enum DeviceType { @@ -10,7 +10,8 @@ export enum DeviceType {
bms_stack = "bms_stack",
pcs = "pcs",
bms_cluster = "bms_cluster",
bms_cell = "bms_cell"
bms_cell = "bms_cell",
env = "env"
}
export function flattenTree(tree: Device[], depth = 0): Device[] {

Loading…
Cancel
Save