Commit 7064ec18 by zhaochengxiang

资产打标签

parent ebde132a
......@@ -30,10 +30,6 @@ const AssetAction = (props) => {
const { assets, attributes, attributesFoldMap } = assetParams;
const [ assetTagModalVisible, setAssetTagModalVisible ] = useState(false);
const [ selectTag, setSelectTag ] = useState({});
const [tagListParams, setTagListParams] = useState({
type: 'dataAsset',
id: undefined
})
useEffect(() => {
if (action === 'add') {
......@@ -53,9 +49,6 @@ const AssetAction = (props) => {
} else {
setMetadataId('');
setAssetParams({...assetParams, ...{assets: {}, attributes: []}});
setTagListParams(prev => {
return {...prev, id: undefined}
})
getElements();
}
}
......@@ -189,9 +182,6 @@ const AssetAction = (props) => {
})
setAssetParams({ assets: data, attributes: _attributes, attributesFoldMap: newAttributesFoldMap });
setTagListParams(prev => {
return {...prev, id: data?.id}
})
let _fieldsValue = {};
(data.elements||[]).forEach(element => {
......@@ -396,7 +386,7 @@ const AssetAction = (props) => {
top: 0,
bottom: 0,
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