From 65b04f2b51929879b15182c79f348804a369694d Mon Sep 17 00:00:00 2001 From: zhangminghua Date: Wed, 15 Mar 2023 14:26:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E7=AD=BE=E9=9B=86=E3=80=81=E6=A0=87?= =?UTF-8?q?=E7=AD=BE-=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/tagSetModal.js | 4 ++-- .../containers/tagManagement.js | 19 +++++++++++-------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/web/client/src/sections/metadataManagement/components/tagSetModal.js b/web/client/src/sections/metadataManagement/components/tagSetModal.js index e9d06eb..6ccc794 100644 --- a/web/client/src/sections/metadataManagement/components/tagSetModal.js +++ b/web/client/src/sections/metadataManagement/components/tagSetModal.js @@ -50,14 +50,14 @@ const TagSetModal = (props) => { } return ( handleOk(null)} onCancel={onCancel}>
({ validator(_, value) { return validatorNull(_, value, getFieldValue, validateFields) } })]}> diff --git a/web/client/src/sections/metadataManagement/containers/tagManagement.js b/web/client/src/sections/metadataManagement/containers/tagManagement.js index 26f74e0..3fe187c 100644 --- a/web/client/src/sections/metadataManagement/containers/tagManagement.js +++ b/web/client/src/sections/metadataManagement/containers/tagManagement.js @@ -41,10 +41,12 @@ const TagManagement = (props) => { setEditData({ setEditData: true, title: '编辑标签集', label: '标签集名称', name: ts.tagSetName, id: ts.tagSetId }); setModalVisible(true); }} /> - { }} okText="确定" cancelText="取消"> + { + dispatch(metadataManagement.delTagSets(ts.tagSetId)).then(() => { initData(true); }); + }} okText="确定" cancelText="取消"> - + } const tag = (t, tagSetId) => { if (t) @@ -53,7 +55,9 @@ const TagManagement = (props) => { setEditData({ setEditData: false, title: '编辑标签', label: '标签名称', name: t.name, id: t.id }); setModalVisible(true); }} /> - { }} okText="确定" cancelText="取消"> + { + dispatch(metadataManagement.delTags(t.id)).then(() => { initData(true); }); + }} okText="确定" cancelText="取消"> @@ -61,7 +65,7 @@ const TagManagement = (props) => { return
{ setEditData({ setEditData: false, title: '新建标签', label: '标签名称', tagSetId: tagSetId }); setModalVisible(true); - }}>
+ }}> } const onSearch = () => { let data = []; @@ -110,13 +114,12 @@ const TagManagement = (props) => { } } return -
- {/* */} - - + setKeywords(e.target.value || '')} />