From 1c4e88c1cb0639663f77a33dbab26c3cac71ad93 Mon Sep 17 00:00:00 2001
From: zhang_12370 <z2864490065@outlook.com>
Date: 星期四, 26 六月 2025 13:28:05 +0800
Subject: [PATCH] 开发通用 删除 优化文档管理模块

---
 src/views/archiveManagement/mould/archiveDialog.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/views/archiveManagement/mould/archiveDialog.vue b/src/views/archiveManagement/mould/archiveDialog.vue
index 55c359c..d60cd84 100644
--- a/src/views/archiveManagement/mould/archiveDialog.vue
+++ b/src/views/archiveManagement/mould/archiveDialog.vue
@@ -68,6 +68,7 @@
 };
 // 鍒濆鍖栬〃鍗曟暟鎹殑杈呭姪鍑芥暟
 const initFormData = (rowData) => {
+  console.log("rowData", rowData);
   if (rowData && rowData.id) {
     return copyFormData(rowData);
   }
@@ -97,9 +98,12 @@
   type: [{required: true, message: "璇烽�夋嫨鏂囨。绫诲瀷", trigger: "blur"}],
   status: [{required: true, message: "璇烽�夋嫨鏂囨。鐘舵��", trigger: "blur"}],
 };
+const initTreeDataId = ref(null);
 const fileUploadRef = ref(null);
-const initForm = () => {
+const initForm = (val) => {
+  initTreeDataId.value = val.id || null; // 纭繚 initTreeDataId 鍒濆鍖栦负 null
   ruleForm.value = {};
+  ruleForm.value.treeId = val.id || null; // 纭繚 treeId 鍒濆鍖栦负 null
   nextTick(() => {
     fileUploadRef.value.init();
   });
@@ -142,10 +146,6 @@
       });
       return;
     }
-    // 鍙戦�� emit 浜嬩欢
-
-    // 鍏抽棴瀵硅瘽妗�
-    ElMessage.success("鎿嶄綔鎴愬姛");
     centerDialogVisible.value = false;
   } catch (error) {
     ElMessage({

--
Gitblit v1.9.3