优化暂态事件列表
This commit is contained in:
@@ -12,7 +12,7 @@ export interface LineTreeDecorators {
|
||||
statusColor: (comFlag: number) => string
|
||||
applyMeta: (
|
||||
node: any,
|
||||
meta: { icon: string; color?: string; level?: number; disabled?: boolean }
|
||||
meta: { icon: string; color?: string; level?: number; disabled?: boolean; pname?: string }
|
||||
) => void
|
||||
}
|
||||
|
||||
@@ -88,8 +88,10 @@ export function decorateLineTree(
|
||||
applyMeta(leaf, {
|
||||
icon: 'local-监测点',
|
||||
color: statusColor(leaf.comFlag),
|
||||
|
||||
...LINE_LEAF_META
|
||||
})
|
||||
leaf.pname=item.name,
|
||||
leaves.engineering.push(leaf)
|
||||
})
|
||||
})
|
||||
@@ -113,8 +115,10 @@ export function decorateLineTree(
|
||||
applyMeta(l4, {
|
||||
icon: 'local-监测点',
|
||||
color: statusColor(l4.comFlag),
|
||||
|
||||
...LINE_LEAF_META
|
||||
})
|
||||
l4.pname=item.name,
|
||||
leaves.govern.push(l4)
|
||||
})
|
||||
})
|
||||
@@ -127,8 +131,10 @@ export function decorateLineTree(
|
||||
applyMeta(l2, {
|
||||
icon: 'local-监测点',
|
||||
color: statusColor(l2.comFlag),
|
||||
|
||||
...LINE_LEAF_META
|
||||
})
|
||||
l2.pname=item.name,
|
||||
leaves.portable.push(l2)
|
||||
})
|
||||
})
|
||||
@@ -148,8 +154,10 @@ export function decorateLineTree(
|
||||
applyMeta(l4, {
|
||||
icon: 'local-监测点',
|
||||
color: statusColor(l4.comFlag),
|
||||
|
||||
...LINE_LEAF_META
|
||||
})
|
||||
l4.pname=item.name,
|
||||
leaves.monitor.push(l4)
|
||||
})
|
||||
})
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
default-expand-all
|
||||
@changePointType="changePointType"
|
||||
@changeTreeType="loadTree"
|
||||
:height="height"
|
||||
/>
|
||||
</template>
|
||||
|
||||
@@ -25,10 +26,12 @@ import {
|
||||
|
||||
interface Props {
|
||||
template?: boolean
|
||||
height?: number
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
template: false
|
||||
template: false,
|
||||
height: 0
|
||||
})
|
||||
|
||||
defineOptions({
|
||||
|
||||
Reference in New Issue
Block a user