1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <script setup lang="ts">
- // import { ref } from "vue";
- import { PageSearch, usePageSearch } from "/@/components/PageSearch";
- import { PageContent } from "/@/components/PageContent";
- import searchFormConfig from "./config/search.config";
- import contentConfig from "./config/content.config";
- // import OpenDialog from "./components/open-dialog.vue";
- import { usePermission } from "/@/hooks/core/usePermission";
- const { pageContentRef, handleResetClick, handleSearchClick } = usePageSearch();
- // const openDialogRef = ref<InstanceType<typeof OpenDialog>>(null);
- const { hasPermissionWithCode, permissions } = usePermission("redInk");
- </script>
- <template>
- <div class="main role">
- <PagePower :is-show="hasPermissionWithCode('001')">
- <div w-full>
- <PageSearch
- :form-config="searchFormConfig"
- @search-btn-click="handleSearchClick"
- @reset-btn-click="handleResetClick"
- />
- <PageContent
- ref="pageContentRef"
- :content-config="contentConfig"
- :powers="permissions"
- />
- </div>
- </PagePower>
- <!-- <OpenDialog ref="openDialogRef" /> -->
- </div>
- </template>
- <style scoped lang="scss">
- :deep(.el-dropdown-menu__item i) {
- margin: 0;
- }
- </style>
|