statistical.vue 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <template>
  2. <el-dialog
  3. :title="'统计'"
  4. width="80%"
  5. v-model="visible"
  6. :destroy-on-close="true"
  7. :close-on-click-modal="false"
  8. draggable>
  9. <div class="statistics-table-wrapper">
  10. <StatisticsIndex />
  11. </div>
  12. </el-dialog>
  13. </template>
  14. <script setup lang="ts">
  15. import { ref } from 'vue';
  16. import StatisticsIndex from '../statistics/index.vue';
  17. const visible = ref(false);
  18. // 打开弹窗
  19. const openDialog = async (row: any) => {
  20. visible.value = true;
  21. };
  22. // 暴露变量 只有暴漏出来的变量 父组件才能使用
  23. defineExpose({
  24. openDialog,
  25. });
  26. </script>
  27. <style>
  28. .config-container {
  29. display: flex;
  30. align-items: center;
  31. margin-bottom: 10px;
  32. font-size: 14px;
  33. font-weight: 400;
  34. width: 100%;
  35. justify-content: start;
  36. }
  37. .config-actions {
  38. width: 50px;
  39. display: flex;
  40. align-items: center;
  41. justify-content: space-between;
  42. }
  43. .apps-loadmore.el-select-dropdown .el-scrollbar__wrap {
  44. height: 330px !important;
  45. }
  46. .statistics-table-wrapper {
  47. height: 70vh;
  48. position: relative;
  49. }
  50. </style>