From 7339b8a9ccf09e6262cb71ac6c9b724cdfa6fe22 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期五, 15 八月 2025 16:43:32 +0800
Subject: [PATCH] 'pdf预览'’’

---
 src/views/system/dept/utils/hook.tsx |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/src/views/system/dept/utils/hook.tsx b/src/views/system/dept/utils/hook.tsx
index 01b6a0d..7e7a9d7 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;
 // });
@@ -286,9 +287,22 @@
   }
 
   function resetForm(formEl) {
-    if (!formEl) return;
-    formEl.resetFields();
-    onSearch();
+    // 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