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/index.vue | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/views/archiveManagement/index.vue b/src/views/archiveManagement/index.vue index f1fb1e2..7bcbed9 100644 --- a/src/views/archiveManagement/index.vue +++ b/src/views/archiveManagement/index.vue @@ -208,13 +208,14 @@ const tableSwitch = ref(false); // 澶勭悊鑺傜偣鐐瑰嚮 const handleNodeClick = (data) => { - console.log("鐐瑰嚮鑺傜偣", data); + rowClickData.value = data; // 瀛樺偍褰撳墠鐐瑰嚮鐨勮妭鐐规暟鎹� tableSwitch.value = true; // 鍒囨崲鑺傜偣鏃堕噸缃埌绗竴椤� queryParams.current = 1; queryParams.treeId = data.id; getArchiveListData(); }; +const rowClickData = ref({}); // 瀛樺偍褰撳墠鐐瑰嚮鐨勮妭鐐规暟鎹� const archiveDialogs = ref(null); // 琛ㄦ牸缁勪欢寮曠敤 // 鏂板褰掓。 const add = () => { @@ -226,7 +227,7 @@ // 纭繚缁勪欢寮曠敤瀛樺湪鍚庡啀璋冪敤鏂规硶 nextTick(() => { if (archiveDialogs.value && typeof archiveDialogs.value.initForm === 'function') { - archiveDialogs.value.initForm(); // 閲嶇疆琛ㄥ崟 + archiveDialogs.value.initForm(rowClickData.value); // 閲嶇疆琛ㄥ崟 } }); } catch (error) { -- Gitblit v1.9.3