index.vue 856 B

1234567891011121314151617181920212223242526272829
  1. <script setup lang="ts">
  2. import { PageContent } from "/@/components/PageContent";
  3. import contentConfig from "./config/content.config";
  4. import searchConfig from "./config/search.config";
  5. import { PageSearch, usePageSearch } from "/@/components/PageSearch";
  6. import { usePermission } from "/@/hooks/usePermission";
  7. const pageName = "logistics";
  8. const { pageContentRef, handleResetClick, handleSearchClick } = usePageSearch(
  9. undefined,
  10. undefined,
  11. searchConfig
  12. );
  13. const { permissions } = usePermission(pageName);
  14. </script>
  15. <template>
  16. <PageAuth :pageName="pageName">
  17. <PageSearch
  18. :form-config="searchConfig"
  19. @search-btn-click="handleSearchClick"
  20. @reset-btn-click="handleResetClick"
  21. />
  22. <PageContent
  23. :powers="permissions"
  24. ref="pageContentRef"
  25. :content-config="contentConfig"
  26. />
  27. </PageAuth>
  28. </template>