From 35cf8d289a09a6a4a34cf3d73fb41d84969ae4ee Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期一, 18 八月 2025 17:30:26 +0800 Subject: [PATCH] '注册修改' --- src/views/system/dept/utils/hook.tsx | 24 ++++++++++++++++++------ 1 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/views/system/dept/utils/hook.tsx b/src/views/system/dept/utils/hook.tsx index 01b6a0d..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) { @@ -331,8 +345,6 @@ } function openDialog(title = "鏂板", row?: FormItemProps) { - console.log(row, "-"); - addDialog({ title: `${title}椤圭洰`, props: { -- Gitblit v1.9.1