稳态数据分析
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
:current-node-key="monitoringPoint.state.lineId"
|
||||
:show-checkbox="monitoringPoint.state.showCheckBox"
|
||||
:default-checked-keys="monitoringPoint.state.lineIds"
|
||||
@check-change="handleCheckChange"
|
||||
@check="handleCheckChange"
|
||||
@node-click="handleNodeClick"
|
||||
@init="handleNodeClick"
|
||||
></PointTree>
|
||||
@@ -39,7 +39,10 @@
|
||||
<Shishishuju />
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
<div class="monitoring-point" v-if="!monitoringPoint.state.showCheckBox && monitoringPoint.state.lineName">
|
||||
<div
|
||||
class="monitoring-point"
|
||||
v-if="!monitoringPoint.state.showCheckBox && monitoringPoint.state.lineName"
|
||||
>
|
||||
当前位置:{{ monitoringPoint.state.lineName }}
|
||||
</div>
|
||||
</div>
|
||||
@@ -72,7 +75,7 @@ const pointTree = ref()
|
||||
const size = ref(0)
|
||||
const isReload = ref(false)
|
||||
const height = mainHeight(40)
|
||||
const activeName = ref('1')
|
||||
const activeName = ref('4')
|
||||
onMounted(() => {
|
||||
const dom = document.getElementById('navigation-splitpanes')
|
||||
if (dom) {
|
||||
@@ -86,7 +89,10 @@ const handleNodeClick = (data: any, node: any) => {
|
||||
}
|
||||
}
|
||||
const handleCheckChange = (data: any, node: any) => {
|
||||
console.log(data)
|
||||
monitoringPoint.setValue(
|
||||
'lineIds',
|
||||
node.checkedNodes.filter((item: any) => item.level === 6).map((item: any) => item.id)
|
||||
)
|
||||
}
|
||||
watch(
|
||||
() => router.currentRoute.value.query.lineId,
|
||||
|
||||
Reference in New Issue
Block a user