From 18238d4e28b263e5b0d0b1ba48c29703b79f1078 Mon Sep 17 00:00:00 2001
From: zhang_12370 <z2864490065@outlook.com>
Date: 星期三, 25 六月 2025 13:22:59 +0800
Subject: [PATCH] 优化文档管理树形菜单 以及表格匹配问题

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

diff --git a/src/views/archiveManagement/mould/archiveDialog.vue b/src/views/archiveManagement/mould/archiveDialog.vue
index 55c359c..18014fe 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.value.id || null; // 纭繚 initTreeDataId 鍒濆鍖栦负 null
   ruleForm.value = {};
+  ruleForm.value.treeId = val.value.id || null; // 纭繚 treeId 鍒濆鍖栦负 null
   nextTick(() => {
     fileUploadRef.value.init();
   });

--
Gitblit v1.9.3