Commit 7064ec18 by zhaochengxiang

资产打标签

parent ebde132a
...@@ -30,10 +30,6 @@ const AssetAction = (props) => { ...@@ -30,10 +30,6 @@ const AssetAction = (props) => {
const { assets, attributes, attributesFoldMap } = assetParams; const { assets, attributes, attributesFoldMap } = assetParams;
const [ assetTagModalVisible, setAssetTagModalVisible ] = useState(false); const [ assetTagModalVisible, setAssetTagModalVisible ] = useState(false);
const [ selectTag, setSelectTag ] = useState({}); const [ selectTag, setSelectTag ] = useState({});
const [tagListParams, setTagListParams] = useState({
type: 'dataAsset',
id: undefined
})
useEffect(() => { useEffect(() => {
if (action === 'add') { if (action === 'add') {
...@@ -53,9 +49,6 @@ const AssetAction = (props) => { ...@@ -53,9 +49,6 @@ const AssetAction = (props) => {
} else { } else {
setMetadataId(''); setMetadataId('');
setAssetParams({...assetParams, ...{assets: {}, attributes: []}}); setAssetParams({...assetParams, ...{assets: {}, attributes: []}});
setTagListParams(prev => {
return {...prev, id: undefined}
})
getElements(); getElements();
} }
} }
...@@ -189,9 +182,6 @@ const AssetAction = (props) => { ...@@ -189,9 +182,6 @@ const AssetAction = (props) => {
}) })
setAssetParams({ assets: data, attributes: _attributes, attributesFoldMap: newAttributesFoldMap }); setAssetParams({ assets: data, attributes: _attributes, attributesFoldMap: newAttributesFoldMap });
setTagListParams(prev => {
return {...prev, id: data?.id}
})
let _fieldsValue = {}; let _fieldsValue = {};
(data.elements||[]).forEach(element => { (data.elements||[]).forEach(element => {
...@@ -396,7 +386,7 @@ const AssetAction = (props) => { ...@@ -396,7 +386,7 @@ const AssetAction = (props) => {
top: 0, top: 0,
bottom: 0, bottom: 0,
backgroundColor: '#fff', backgroundColor: '#fff',
// zIndex: fullScreen?100:0, zIndex: fullScreen?100:0,
}} }}
> >
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment