Files
hb_pqs_web/src/views/govern/analyze/steady/index.vue
2025-01-09 19:02:44 +08:00

47 lines
978 B
Vue

<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>