index.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <div class="ads-container">
  3. <div class="public-search">
  4. <DateRangePicker v-model="dateRange" timezone="America/Los_Angeles" ></DateRangePicker>
  5. </div>
  6. <fs-page class="fs-page-custom">
  7. <fs-crud ref="crudRef" v-bind="crudBinding">
  8. <template #header-middle>
  9. <el-card style="height: 500px;">此处用于显示可视化图形</el-card>
  10. </template>
  11. </fs-crud>
  12. </fs-page>
  13. </div>
  14. </template>
  15. <script lang="ts" setup name="Portfolios">
  16. import { ref, onMounted } from 'vue';
  17. import { useFs } from '@fast-crud/fast-crud';
  18. import { createCrudOptions } from './crud';
  19. import DateRangePicker from '/@/components/DateRangePicker/index.vue'
  20. const { crudBinding, crudRef, crudExpose } = useFs({ createCrudOptions, context: {} });
  21. // 页面打开后获取列表数据
  22. onMounted(() => {
  23. crudExpose.doRefresh();
  24. });
  25. const dateRange = ref([])
  26. </script>
  27. <style scoped>
  28. .public-search {
  29. display: flex;
  30. gap: 3px;
  31. padding-bottom: 3px;
  32. position: sticky;
  33. top: 0;
  34. z-index: 10;
  35. width: 100%;
  36. background-color: #f8f8f8;
  37. box-shadow: 0px 0px 0px rgba(51,89,181,0.16);
  38. }
  39. </style>