Files
hb_pqs_web/src/views/Account-management/components/uploadGw/index.vue

78 lines
1.8 KiB
Vue
Raw Normal View History

2025-01-09 19:02:44 +08:00
<template>
<div class="pd10">
<el-row>
<el-col>
<el-tabs v-model.trim="activeName" @tab-click="handleClick" type="border-card">
2025-03-06 14:44:33 +08:00
<el-tab-pane label="主网用户台账" name="Typical" :style="'height:' + vh + ';'">
<Typical :flag="1" v-if="activeName == 'Typical'"></Typical>
</el-tab-pane>
<el-tab-pane label="主网用户台账统计" name="statistics" :style="'height:' + vh + ';'">
<statistics v-if="activeName == 'statistics'"></statistics>
</el-tab-pane>
2025-01-09 19:02:44 +08:00
</el-tabs>
</el-col>
</el-row>
</div>
</template>
<script>
2025-03-06 14:44:33 +08:00
import statistics from '@/views/Account-management/components/uploadGw/statistics'
import Typical from '@/views/Account-management/components/uploadGw/Monitoringpoint'
2025-01-09 19:02:44 +08:00
export default {
name: 'uploadGw',
components: {
2025-03-06 14:44:33 +08:00
Typical,
statistics
2025-01-09 19:02:44 +08:00
},
data() {
return {
vh: '',
2025-03-06 14:44:33 +08:00
activeName: 'Typical',
2025-01-09 19:02:44 +08:00
device: ''
}
},
created() {},
mounted() {
this.setHeight()
window.addEventListener('resize', this.setHeight)
},
computed: {
//计算表格高度
// height(){
// return '100vh'- this.$refs.form.offsetHeight +259;
// }
},
methods: {
setHeight() {
this.device = window.devicePixelRatio
this.vh = window.sessionStorage.getItem('appheight') - 80 + 'px'
},
handleClick(tab, event) {
// console.log(tab, event);
}
},
beforeDestroy() {
window.removeEventListener('resize', this.setHeight)
}
}
</script>
<style lang="less" scoped>
//@import url('@/styles/comStyle.less');
// ::v-deep .el-table .cell {
// text-align: center;
// }
::v-deep .el-tabs--border-card > .el-tabs__content {
padding: 10px;
}
.block {
position: absolute;
right: 10px;
bottom: 10px;
}
</style>