This commit is contained in:
GGJ
2025-01-09 19:02:44 +08:00
commit 92e7a7a5eb
2943 changed files with 1152283 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
<template>
<Page>
<div class="steady device-manage">
<DeviceTree @selectDevice="selectDevice" :devId="devId" />
<Detail ref="detail" :devId="devId" />
</div>
</Page>
</template>
<script>
import Detail from './detail'
import DeviceTree from '../../components/deviceTree'
export default {
name: 'GovernAnalyzeSteady',
components: { Detail, DeviceTree },
data() {
return {
devId: null
}
},
created() {},
mounted() {},
methods: {
selectDevice({ id }) {
// console.log(id)
if (!id) return
this.devId = id
this.$refs.detail.activeName = 'one'
this.$refs.detail.handleClick()
}
}
}
</script>
<style lang="scss">
.steady {
display: flex;
width: 100%;
height: 100%;
padding: 0;
.el-tree {
font-size: 14px;
//height: calc(100vh - 168px) !important;
}
}
</style>