12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <script setup lang="ts">
- import { ref } from "vue";
- import { PageSearch, usePageSearch } from "/@/components/PageSearch";
- import searchConfig from "./config/search.config";
- import contentConfig from "./config/content.config";
- import modalConfig from "./config/modal.config";
- import { PageModal, usePageModal } from "/@/components/PageModal";
- import { PageContent } from "/@/components/PageContent";
- const { pageContentRef, handleResetClick, handleSearchClick } = usePageSearch(
- undefined,
- undefined,
- searchConfig
- );
- const pageName = "setUserVideo";
- const {
- pageModalRef,
- handleUpdateData,
- handleCreateData,
- handlePreviewData,
- handleConfrim,
- defaultInfo
- } = usePageModal({
- pageContentRef
- });
- </script>
- <template>
- <!-- <PageAuth :pageName="pageName"> -->
- <PageSearch
- :form-config="searchConfig"
- @search-btn-click="handleSearchClick"
- @reset-btn-click="handleResetClick"
- />
- <PageContent
- ref="pageContentRef"
- :content-config="contentConfig"
- @create-btn-click="handleCreateData"
- @preview-btn-click="row => handlePreviewData(row)"
- @update-btn-click="row => handleUpdateData(row)"
- />
- <PageModal
- ref="pageModalRef"
- :modal-config="modalConfig"
- :default-info="defaultInfo"
- @confirm-btn-click="handleConfrim"
- />
- <!-- </PageAuth> -->
- </template>
|