map/ui/dasadmin/src/views/backend/report/index.vue
2024-10-31 16:42:34 +08:00

69 lines
1.9 KiB
Vue

<template>
<div class="report">
<el-container class="mainContainer">
<el-tabs v-model="activeIndex" class="demo-tabs" @tab-click="handleClick">
<el-tab-pane label="运行报表" name="1" class="runningReport"> 运行报表 </el-tab-pane>
<el-tab-pane label="单机报表" name="2" class="singleReport">
<SingleReport v-if="activeIndex == '2'"></SingleReport>
</el-tab-pane>
<el-tab-pane label="多机报表" name="3" class="mltipleReport">
<MulipleReport v-if="activeIndex == '3'"></MulipleReport>
</el-tab-pane>
</el-tabs>
</el-container>
</div>
</template>
<script setup lang="ts">
import { ref } from 'vue'
import SingleReport from './SingleReport.vue'
import MulipleReport from './MulipleReport.vue'
import { useI18n } from 'vue-i18n'
const { t } = useI18n()
import { useAdminInfo } from '/@/stores/adminInfo'
const adminInfo = useAdminInfo()
const activeIndex = ref('2')
const handleClick = (val: any) => {
activeIndex.value = val.props.name
}
</script>
<style lang="scss" scoped>
.report {
position: relative;
width: 100%;
height: 100%;
.mainContainer {
width: 100%;
height: 100%;
padding: 0 20px;
.el-tabs {
width: 100%;
--el-tabs-header-height: 60px;
:deep(.el-tabs__content) {
height: calc(100% - 80px);
}
}
.runningReport {
.header {
width: 100%;
height: 60px;
}
}
.singleReport,
.mltipleReport {
width: 100%;
height: 100%;
}
}
.delete-icon {
cursor: pointer;
visibility: hidden;
}
.header-cell:hover .delete-icon {
visibility: visible;
}
}
</style>