<template>
|
<!-- <el-row> 统计管理 </el-row> -->
|
<!-- <SelfInspection></SelfInspection> -->
|
<!-- <JointEnforcement></JointEnforcement> -->
|
<TaskStats></TaskStats>
|
<TaskSummary></TaskSummary>
|
<DustMonitor></DustMonitor>
|
</template>
|
|
<script>
|
import SelfInspection from '@/views/inspection/SelfInspection.vue'
|
import JointEnforcement from '@/views/inspection/JointEnforcement.vue'
|
import TaskSummary from '@/views/management/TaskSummary.vue'
|
import TaskStats from '@/views/management/TaskStats.vue'
|
import DustMonitor from '@/views/monitor/DustMonitor.vue'
|
import { vResize } from '@/utils/resize-observer'
|
|
export default {
|
components: { SelfInspection, JointEnforcement, TaskSummary, TaskStats, DustMonitor },
|
data() {
|
return {
|
// height: '500px',
|
statusHeight: 200,
|
summaryHeight: 200
|
}
|
},
|
computed: {
|
height() {
|
const h = this.statusHeight + this.summaryHeight
|
return `calc(var(--fy-body-height) - ${h}px)`
|
}
|
},
|
methods: {
|
calcHeight() {
|
const h1 = this.$refs.statusRef.$el.offsetHeight
|
const h2 = this.$refs.summaryRef.$el.offsetHeight
|
const h = h1 + h2
|
return `calc(var(--fy-body-height) - ${h}px)`
|
}
|
},
|
mounted() {
|
// vResize.mounted(this.$refs.statusRef.$el, ({ height }) => {
|
// this.statusHeight = height
|
// })
|
// vResize.mounted(this.$refs.summaryRef.$el, ({ height }) => {
|
// this.summaryHeight = height
|
// })
|
},
|
unmounted() {
|
// vResize.unmounted(this.$refs.statusRef.$el)
|
// vResize.unmounted(this.$refs.summaryRef.$el)
|
}
|
}
|
</script>
|
|
<style scoped></style>
|