From 859d9114d6ece56ce06c246b8f1e6c8ca658e5c2 Mon Sep 17 00:00:00 2001 From: wenlele Date: Tue, 4 Jul 2023 11:01:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=AD=97=E6=AE=B5=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../metadataManagement/components/releaseModal.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/web/client/src/sections/metadataManagement/components/releaseModal.js b/web/client/src/sections/metadataManagement/components/releaseModal.js index 052211d..62a4f4f 100644 --- a/web/client/src/sections/metadataManagement/components/releaseModal.js +++ b/web/client/src/sections/metadataManagement/components/releaseModal.js @@ -13,7 +13,7 @@ const ReleaseModal = ({ actions, dispatch, onConfirm, onCancel, editData = {} }) const [fieldData, setFiedData] = useState([]) const [database, setDatabase] = useState({}) const [fieldValue, setFiedValue] = useState([]) - const [indeterminate, setIndeterminate] = useState(false) + const [checked, setChecked] = useState(false) const [fromData, setFromData] = useState([{ field: '', condition: '', value: '' }]) const [interfaceName, setInterfaceName] = useState('') const [interfaceUrl, setInterfaceUrl] = useState('') @@ -77,9 +77,9 @@ const ReleaseModal = ({ actions, dispatch, onConfirm, onCancel, editData = {} })
选择字段
{/*
*/} - { + { setFiedValue(e.target.checked ? fieldList : []); - setIndeterminate(e.target.checked); + setChecked(e.target.checked); }}> 全选 @@ -88,9 +88,9 @@ const ReleaseModal = ({ actions, dispatch, onConfirm, onCancel, editData = {} }) { setFiedValue(v) if (v?.length == fieldList?.length) { - setIndeterminate(true) + setChecked(true) } else { - setIndeterminate(false) + setChecked(false) } }} />