index.vue 750 B

12345678910111213141516171819202122232425262728293031
  1. <script setup lang="ts">
  2. import { shallowRef } from "vue";
  3. import All from "./components/all.vue";
  4. import Business from "./components/business.vue";
  5. const actived = shallowRef("1");
  6. </script>
  7. <template>
  8. <div class="report-container">
  9. <el-tabs v-model="actived" style="color: #fff">
  10. <el-tab-pane label="查看全部" name="1">
  11. <all v-if="actived === '1'" />
  12. </el-tab-pane>
  13. <el-tab-pane label="查看业务公司" name="2">
  14. <business v-if="actived === '2'" />
  15. </el-tab-pane>
  16. </el-tabs>
  17. </div>
  18. </template>
  19. <style scoped lang="scss">
  20. .report-container {
  21. height: calc(100vh - 48px);
  22. :deep(.el-tabs__header) {
  23. background-color: #fff;
  24. padding: 10px;
  25. padding-bottom: 0px;
  26. }
  27. }
  28. </style>