From 14c65e32bf1d013d38a803a5735a227c597a7a06 Mon Sep 17 00:00:00 2001 From: zhangminghua Date: Mon, 10 Apr 2023 17:36:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=9B=AE=E5=BD=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metadataManagement/containers/latestMetadata.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/client/src/sections/metadataManagement/containers/latestMetadata.js b/web/client/src/sections/metadataManagement/containers/latestMetadata.js index 336caa8..a801c5a 100644 --- a/web/client/src/sections/metadataManagement/containers/latestMetadata.js +++ b/web/client/src/sections/metadataManagement/containers/latestMetadata.js @@ -92,7 +92,7 @@ const LatestMetadata = (props) => { const renderTreeNode = (ds, dataSource) => { return
{setTreeNodeTitle(ds.name)} - { + { let record = JSON.parse(JSON.stringify(ds)); let parentData = dataSource.filter(rc => rc.id === record.parent); record.parentName = parentData.length ? parentData[0].name : ''; @@ -107,9 +107,9 @@ const LatestMetadata = (props) => { setModalVisible(false); }); }} okText="确定" cancelText="取消"> - + - { + { setEditData({ record: { parent: ds.id, parentName: ds.name }, title: '新建子类', child: true, add: true }); setModalVisible(true); }} />