From 115769e9ad3ddc64e21ad7285450c4c563c745ed Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期三, 20 八月 2025 17:20:29 +0800 Subject: [PATCH] 用户管理页面 --- src/views/system/dept/utils/hook.tsx | 22 ++++++++++++++++++---- 1 files changed, 18 insertions(+), 4 deletions(-) diff --git a/src/views/system/dept/utils/hook.tsx b/src/views/system/dept/utils/hook.tsx index 6e41864..51e812e 100644 --- a/src/views/system/dept/utils/hook.tsx +++ b/src/views/system/dept/utils/hook.tsx @@ -23,6 +23,7 @@ // import { useUserStoreHook } from "@/store/modules/user"; import type { PaginationProps } from "@pureadmin/table"; +import pdfPreview from "../../component/pdfPreview.vue"; // const nowRole = computed(() => { // return useUserStoreHook().nowRole; // }); @@ -285,10 +286,23 @@ console.log(`current page: ${val}`); } - function resetForm(formEl) { - if (!formEl) return; - formEl.resetFields(); - onSearch(); + function resetForm() { + // if (!formEl) return; + // formEl.resetFields(); + // onSearch(); + + addDialog({ + title: `棰勮pdf`, + props: {}, + width: "60%", + draggable: true, + fullscreen: deviceDetection(), + fullscreenIcon: true, + sureBtnLoading: true, + closeOnClickModal: false, + contentRenderer: () => h(pdfPreview, { ref: formRef, formInline: null }) + // jsx 璇硶 锛堟敞鎰忓湪.vue鏂囦欢鍚敤jsx璇硶锛岄渶瑕佸湪script寮�鍚痩ang="tsx"锛� + }); } const checkboxAsRadio = data => { if (data.length > 1) { -- Gitblit v1.9.1