index.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <script setup lang="ts">
  2. import { ref } from "vue";
  3. import { PageSearch, usePageSearch } from "/@/components/PageSearch";
  4. import searchConfig from "./config/search.config";
  5. import contentConfig from "./config/content.config";
  6. import modalConfig from "./config/modal.config";
  7. import { PageModal, usePageModal } from "/@/components/PageModal";
  8. import { PageContent } from "/@/components/PageContent";
  9. const { pageContentRef, handleResetClick, handleSearchClick } = usePageSearch(
  10. undefined,
  11. undefined,
  12. searchConfig
  13. );
  14. const pageName = "setUserVideo";
  15. const {
  16. pageModalRef,
  17. handleUpdateData,
  18. handleCreateData,
  19. handlePreviewData,
  20. handleConfrim,
  21. defaultInfo
  22. } = usePageModal({
  23. pageContentRef
  24. });
  25. </script>
  26. <template>
  27. <!-- <PageAuth :pageName="pageName"> -->
  28. <PageSearch
  29. :form-config="searchConfig"
  30. @search-btn-click="handleSearchClick"
  31. @reset-btn-click="handleResetClick"
  32. />
  33. <PageContent
  34. ref="pageContentRef"
  35. :content-config="contentConfig"
  36. @create-btn-click="handleCreateData"
  37. @preview-btn-click="row => handlePreviewData(row)"
  38. @update-btn-click="row => handleUpdateData(row)"
  39. />
  40. <PageModal
  41. ref="pageModalRef"
  42. :modal-config="modalConfig"
  43. :default-info="defaultInfo"
  44. @confirm-btn-click="handleConfrim"
  45. />
  46. <!-- </PageAuth> -->
  47. </template>