Commit 8a1ffa98 by zhaochengxiang

资产打标签

parent 881575c8
...@@ -155,13 +155,18 @@ const AssetTagModal = (props) => { ...@@ -155,13 +155,18 @@ const AssetTagModal = (props) => {
params, params,
data: { ...asset, elements: newElements } data: { ...asset, elements: newElements }
}, },
callback: () => { callback: data => {
const ids = [id];
if (data && ((data?.id||'')!=='') && (data?.id!==id)) {
ids.push(data?.id);
}
dispatch({ dispatch({
type: 'tag.batchAddTagResource', type: 'tag.batchAddTagResourceByTagList',
payload: { payload: {
params: { params: {
tagId: tag?.tagId, tagIds: tag?.tagId,
resourceIds: id, resourceIds: ids.join(','),
type: 'dataAsset', type: 'dataAsset',
creator creator
} }
......
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